Alien head

Linux Quiz

Description: Linux Quiz
Number of Questions: 20
Created by:
Tags: linux

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

Answer: 2

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

Answer: 1

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

Answer: 3

Which file does Linux use to resolve hostnames?

  1. /etc/hostname.conf

  2. /etc/dns.conf

  3. /etc/host.conf

  4. /etc/resolve.conf

Answer: 3

What is "tin"?

  1. Terminal Interpreter

  2. The command to change the time

  3. The command to compare text files

  4. A newsreader

Answer: 4

What are the file attributes for executing Perl programs?

  1. 666

  2. 755

  3. 766

  4. 777

Answer: 2

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

Answer: 4

What is the DOS LPT1 port in Linux?

  1. /dev/lpt0

  2. /dev/lpt1

  3. /dev/lp0

  4. /dev/lp1

  5. DOSLPT1

Answer: 3

What is the minimum memory requirements for XFree86?

  1. 640K

  2. 2MB

  3. 4MB

  4. 8MB

  5. 16MB

Answer: 4

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

Answer: 4

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

Answer: 2

Which command creates a file system?

  1. fdisk

  2. crfs

  3. mkfs

  4. fs

Answer: 3

What is the default administrator username?

  1. administrator

  2. admin

  3. superuser

  4. root

  5. head

Answer: 4

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

    • and ?
  1. /

  2. ?

  3. &

  4. Z

Answer: 1

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

Answer: 2

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

Answer: 1

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

Answer: 3

Linux allows filenames up to what number of characters?

  1. 8

  2. 11

  3. 256

  4. 512

  5. Unlimited

Answer: 3

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

  1. True

  2. False

Answer: 1

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

  1. True

  2. False

Answer: 2
+ View questions