Unix/Linux Commands and System Administration

Test your knowledge of Unix/Linux commands, process management, file systems, permissions, and system administration utilities

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

what is the command to view the last 20 command issued?

  1. View
  2. history -20
  3. Prev 20
  4. Last 20
  5. None of the above
Question 2 Multiple Choice (Single Answer)

Users on your network cannot print to a Linux printer. You decide to restart the printer daemon, which command would achieve that?

  1. topq printer-name
  2. enable printer-name
  3. restart printer-name
  4. up printer-name
  5. None of the above
Question 3 Multiple Choice (Single Answer)

What is "tin"?

  1. Terminal Interpreter
  2. The command is to change the time
  3. The command to compare text files
  4. A newsreader
  5. The command to compile
Question 4 Multiple Choice (Single Answer)

What are the file attributes for executing Perl programs?

  1. 666
  2. 755
  3. 766
  4. 777
Question 5 Multiple Choice (Single Answer)

lets you connect to a remote host

  1. rlogin
  2. remote
  3. login
  4. ftp
Question 6 Multiple Choice (Single Answer)

returns your username

  1. whoru
  2. username
  3. whoami
  4. none
Question 7 Multiple Choice (Single Answer)

a textual World Wide Web browser

  1. link
  2. lynx
  3. web
  4. emacs
Question 8 Multiple Choice (Single Answer)

best compression for UNIX files

  1. zipplus
  2. winrar
  3. winzip
  4. gzip
Question 9 Multiple Choice (Single Answer)

what is the command use to send email with subject?

  1. mail -sub "subname"
  2. mail -s "subname" "emailid"
  3. mail "emailid" (sends an email with default sub line))
  4. none
Question 10 Multiple Choice (Single Answer)

display last part of file

  1. less
  2. last
  3. tail
  4. more
Question 11 Multiple Choice (Single Answer)

Use this command to count the number of characters, words, and lines in a file

  1. wc
  2. count
  3. cant count words in a file
  4. number
Question 12 Multiple Choice (Single Answer)

It reads the standard input and sends it to the standard output while redirecting a copy of what it has read to the file specified by the user.

  1. tee
  2. foo
  3. log
  4. emacs
Question 13 Multiple Choice (Single Answer)

Which of the following commands is not a filter?

  1. cat
  2. man
  3. pg
  4. head
Question 14 Multiple Choice (Single Answer)

Which of the following is true?

  1. UNIX is a widely used mail system
  2. UNIX is case sensitive
  3. UNIX has a graphical user interface
  4. All of the above are true
Question 15 Multiple Choice (Single Answer)

What is inode?

  1. File status indicator
  2. It is stored in both disk and memory and tracts file status
  3. There is one inode for each file on the system
  4. All the above
  5. None of the above
Question 16 Multiple Choice (Single Answer)

Output of below code is: main() { fork(); fork(); fork(); printf("Hello"); }

  1. "Hello" will be printed 3 times
  2. "Hello" will be printed 4 times
  3. "Hello" will be printed 8 times
  4. Error
Question 17 Multiple Choice (Single Answer)

Which is the not valid state of Unix process?

  1. Waiting
  2. stopped
  3. Zombie
  4. None
Question 18 Multiple Choice (Single Answer)

Which command is used to change your password?

  1. password
  2. pass
  3. passwd
  4. pwd
Question 19 Multiple Choice (Single Answer)

Which command allows you to determine if a host is connected to the Internet?

  1. ping
  2. cmd
  3. nalookup
  4. ls-la
Question 20 True/False

The fork() function is used to create a new process from an existing process.

  1. True
  2. False