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.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

MBR having primary partitons limitations of...???

  1. 2
  2. 3
  3. 4
  4. 5
Question 2 Multiple Choice (Single Answer)

GPT allows maximium partiotons...??

  1. 24
  2. 64
  3. 12
  4. 4
  5. 128
Question 3 True/False

Is bootstrap and bootloader are the same thing and place at same location....????

  1. True
  2. False
Question 4 Multiple Choice (Multiple Answers)

Types Of HardDisk..????

  1. SATA
  2. PRIMARY
  3. PATA
  4. NT
  5. FireWire
  6. iLink
Question 5 Multiple Choice (Single Answer)

what is the difference between KILL and KILL -9?

  1. Kill -9 allows the child processes to be killed before parent process is killed and Kill forcefully kills the process without giving time to
  2. Kill allows the child processes to be killed before parent process is killed and Kill -9 forcefully kills the process without giving time to
  3. None of the above
  4. both are same
Question 6 Multiple Choice (Single Answer)

How to remove a crontab file?

  1. crontab -t
  2. crontab -l
  3. crontab -e
  4. crontab -r
Question 7 Multiple Choice (Single Answer)

chmod 644 file.htm

  1. This gives the file read/write by the owner and only read by everyone else
  2. This gives the file read/execute by the owner and only read by everyone else
  3. This gives the file read/write by the owner and only execute by everyone else
  4. This gives the file read/write/execute by the owner and only execute by everyone else
Question 8 Multiple Choice (Single Answer)

Syntax for ssh command

  1. ssh hostname
  2. ssh user@hostname
  3. ssh user hostname
  4. None of the above
Question 9 Multiple Choice (Single Answer)

0 12 14 2 * mailx john%Happy Birthday!%Time for lunch. 14 in the above crontab file specifies

  1. hour
  2. minutes
  3. month of year
  4. None of the above
Question 10 Multiple Choice (Single Answer)

gunzip -f myfile.gz

  1. Uncompress the file myfile.gz
  2. compress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite
  3. Uncompress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite
  4. compress the file myfile.gz
Question 11 Multiple Choice (Single Answer)

Which command is used to delete all files in the current directory and all its sub-directories?

  1. rm <dir name>
  2. rm -rf
  3. rm*
  4. rm -r *
Question 12 True/False

A symbolic link has the same permissions as the original file.

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

how will u execute a file in unix?

  1. . filename
  2. ./<filename>
  3. . &lt;filename>
  4. / filename
Question 14 Multiple Choice (Single Answer)

How do you move a process which is running background to foreground?

  1. fg pid
  2. bg pid
  3. mv pid
  4. none of the above
Question 15 Multiple Choice (Single Answer)

Which comman can be used to find the user with which you are logged in the UNIX session

  1. "who am I" and "id"
  2. "who" and "who am I"
  3. "who" and "id"
  4. "who", "who am I", "id"
Question 16 Multiple Choice (Single Answer)

Command to get the list of files/directories with name containing "UniVar" under the root directory excluding errors.

  1. find / -name "*UniVar*" $1>list
  2. find / -name "UniVar" $0>list
  3. find . -name "*UniVar*" $1>list
  4. find . -name "UniVar"
Question 17 Multiple Choice (Single Answer)

Command used to replace all space with | and create another output file

  1. cat test1 | tr ' ' '|' > test2
  2. cat test1 | cut-d ' ' ' |' > test2
  3. cat test1 | tr '|' ' ' > test2
  4. cat test1
Question 18 Multiple Choice (Single Answer)

Command used to supress all spaces from a given file named test.

  1. cat test | cut ' '
  2. cat test | tr -s ' '
  3. cat test | tr ' ' ''
  4. cat test > test 1
Question 19 Multiple Choice (Single Answer)

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

  1. cat test | cut -d ' ' -f1
  2. cat test | cut -d ' ' -f2
  3. cat test | cut -f2
  4. None
Question 20 Multiple Choice (Single Answer)

Why is VI not recommended for viewing log files ?

  1. Complex
  2. Occupies more memory
  3. Not available in all UNIX servers
  4. Too many commands to remember