Linux Quiz

Linux Quiz

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

You forget the root password. You decide to reboot using a boot disk floppy. What do you need to do to recover the root password?

  1. Mount the main partition, edit the /etc/passwd file to remove the root password, reboot.
  2. Mount the root partition, edit the /etc/passwd file to remove the root password, reboot.
  3. Mount the main partition, edit the /tmp/passwd file to remove the root password, reboot
  4. Mount the root partition, edit the /etc/passwds file to remove the root password, reboot
  5. none of the above
Question 2 Multiple Choice (Single Answer)

The previous system administrator put useless messages at login, what file do you edit to change the system message?

  1. /etc/motd
  2. /etc/str
  3. /etc/strtms
  4. /etc/.conf
Question 3 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
Question 4 Multiple Choice (Single Answer)

Which file does Linux use to resolve hostnames?

  1. /etc/hostname.conf
  2. /etc/dns.conf
  3. /etc/host.conf
  4. /etc/resolve.conf
Question 5 Multiple Choice (Single Answer)

What is "tin"?

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

What are the file attributes for executing Perl programs?

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

What is bash?

  1. Something you do to a watermelon
  2. A command to delete multiple files
  3. A network bit format
  4. A command shell
Question 8 Multiple Choice (Single Answer)

What is the DOS LPT1 port in Linux?

  1. /dev/lpt0
  2. /dev/lpt1
  3. /dev/lp0
  4. /dev/lp1
  5. DOSLPT1
Question 9 Multiple Choice (Single Answer)

What is the minimum memory requirements for XFree86?

  1. 640K
  2. 2MB
  3. 4MB
  4. 8MB
  5. 16MB
Question 10 Multiple Choice (Single Answer)

You attempt to remove a directory, but Linux won't allow you, what is the most likely problem?

  1. The directory name contains illegal characters
  2. You are not logged in as root
  3. The hard disk is full
  4. The directory is not empty
  5. None are likely problems
Question 11 Multiple Choice (Single Answer)

From a command prompt, what does the command "ls" do?

  1. Lists the settings of the OS
  2. Lists the contents of the directory
  3. List command to list contents of files
  4. Finnish words, means to direct a file to a port
  5. None of the Above
Question 12 Multiple Choice (Single Answer)

Which command creates a file system?

  1. fdisk
  2. crfs
  3. mkfs
  4. fs
Question 13 Multiple Choice (Single Answer)

What is the default administrator username?

  1. administrator
  2. admin
  3. superuser
  4. root
  5. head
Question 14 Multiple Choice (Single Answer)

Which of the following are valid Linux wildcards? (Choose all that apply)

  1. * and ?
  2. /
  3. ?
  4. &
  5. Z
Question 15 Multiple Choice (Single Answer)

What does the command "ps" do?

  1. Prints the directory
  2. Shows what processes are running
  3. Print status of LPT1
  4. Produces system statistics
  5. None of the above
Question 16 Multiple Choice (Single Answer)

You are working in Linux when a program hits a flaw and stops running. Which command can be used to end the process?

  1. kill
  2. stop
  3. end
  4. wait
  5. CTL-ALT-DEL
Question 17 Multiple Choice (Single Answer)

A user is logged into the Linux workstation, what is the best way to login to root from a shell prompt?

  1. login root
  2. chuser root
  3. su
  4. root
Question 18 Multiple Choice (Single Answer)

Linux allows filenames up to what number of characters?

  1. 8
  2. 11
  3. 256
  4. 512
  5. Unlimited
Question 19 Multiple Choice (Single Answer)

T/F: The command "pwd" displays the directory

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

T/F: To move files, use the "move" command.

  1. True
  2. False