UNIX/Linux Command Line and System Administration
Test your knowledge of UNIX/Linux command line operations including file management, process control, permissions, scheduling, and disk partitioning.
Questions
MBR having primary partitons limitations of...???
- 2
- 3
- 4
- 5
GPT allows maximium partiotons...??
- 24
- 64
- 12
- 4
- 128
Is bootstrap and bootloader are the same thing and place at same location....????
- True
- False
Types Of HardDisk..????
- SATA
- PRIMARY
- PATA
- NT
- FireWire
- iLink
what is the difference between KILL and KILL -9?
- Kill -9 allows the child processes to be killed before parent process is killed and Kill forcefully kills the process without giving time to
- Kill allows the child processes to be killed before parent process is killed and Kill -9 forcefully kills the process without giving time to
- None of the above
- both are same
How to remove a crontab file?
- crontab -t
- crontab -l
- crontab -e
- crontab -r
chmod 644 file.htm
- This gives the file read/write by the owner and only read by everyone else
- This gives the file read/execute by the owner and only read by everyone else
- This gives the file read/write by the owner and only execute by everyone else
- This gives the file read/write/execute by the owner and only execute by everyone else
Syntax for ssh command
- ssh hostname
- ssh user@hostname
- ssh user hostname
- None of the above
0 12 14 2 * mailx john%Happy Birthday!%Time for lunch. 14 in the above crontab file specifies
- hour
- minutes
- month of year
- None of the above
gunzip -f myfile.gz
- Uncompress the file myfile.gz
- compress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite
- Uncompress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite
- compress the file myfile.gz
Which command is used to delete all files in the current directory and all its sub-directories?
- rm <dir name>
- rm -rf
- rm*
- rm -r *
A symbolic link has the same permissions as the original file.
- True
- False
how will u execute a file in unix?
- . filename
- ./<filename>
- . <filename>
- / filename
How do you move a process which is running background to foreground?
- fg pid
- bg pid
- mv pid
- none of the above
Which comman can be used to find the user with which you are logged in the UNIX session
- "who am I" and "id"
- "who" and "who am I"
- "who" and "id"
- "who", "who am I", "id"
Command to get the list of files/directories with name containing "UniVar" under the root directory excluding errors.
- find / -name "*UniVar*" $1>list
- find / -name "UniVar" $0>list
- find . -name "*UniVar*" $1>list
- find . -name "UniVar"
Command used to replace all space with | and create another output file
- cat test1 | tr ' ' '|' > test2
- cat test1 | cut-d ' ' ' |' > test2
- cat test1 | tr '|' ' ' > test2
- cat test1
Command used to supress all spaces from a given file named test.
- cat test | cut ' '
- cat test | tr -s ' '
- cat test | tr ' ' ''
- cat test > test 1
A file contains data as given below, Line 1 Line 2 Line 3 Line 4 Line 5 A command which can be used to get the second column from this file is
- cat test | cut -d ' ' -f1
- cat test | cut -d ' ' -f2
- cat test | cut -f2
- None
Why is VI not recommended for viewing log files ?
- Complex
- Occupies more memory
- Not available in all UNIX servers
- Too many commands to remember