These Linux multiple-choice questions and their answers will help you strengthen your grip on the subject of Linux. You can prepare for an upcoming exam or job interview with these Linux MCQs.
So scroll down and start answering.
A. Penguin
B. Gecko
C. Elephant
D. Hat
A. Nothing.
B. An error (/dev/null can only be written to, not read from).
C. An infinite string of zeroes ('0', ASCII 0x30).
D. An infinite string of nulls ('\0', ASCII 0x00).
A. It checks to see if the bash shell exists on the machine.
B. It makes sure that the script runs in the bash shell.
C. all of these
A. /etc/passwd
B. /etc/master.passwd
C. /etc/shadow
D. /etc/passwdinfo
E. /etc/password
A. a certain machine
B. a certain date
C. a certain network
D. a certain holiday
A. Grand Unified Bootloader
B. Gum Removal Under Boot
C. Great Ultimate Bootloader
D. Great Unique Bootloader
E. Grand Unification Bootloader
A. lists background jobs
B. provides basic accounting information for all current jobs
C. halts all foreground jobs
D. prints a dedication to Steve Jobs
E. puts all foreground jobs in the background
A. -c
B. #NAME?
C. -r
D. -R
A. //mkdir text
B. mkdir text # make a directory
C. mkdir text //make a directory
A. /bin/runlev
B. /etc/inittab
C. /bin/rlev
D. /sys/rinit
E. /etc/syslev
A. /etc/rlevel
B. /etc/hosts
C. /etc/mtab
D. /etc/crontab
E. /etc/inittab
A. topf
B. start
C. head
D. ftop
A. date where the kernel was built
B. cpu info
C. All of the answers are correct.
D. kernel info
E. architecture
A. nothing
B. moves the root home directory
C. moves the current home directory
D. Traverse two directories up the directory tree.
E. wil be error
A. Minix
B. System V
C. Hurd
D. GNU
E. BSD
A. routing tables
B. all are correct
C. active sockets
D. open sockets
A. bash
B. sh
C. All of these
D. csh
A. modules
B. lsattr
C. lsmod
D. listmodules
A. all are correct
B. character file
C. fifo (pipe) file
D. block file
A. Security Shell
B. Synchronous Shell
C. Secure Shell
D. Super Shell
E. System Shell
A. &
B. ;
C. :
A. It is the synchronous shell: all commands are performed in real-time.
B. It is the secure shell; it is used to connect to remote hosts via an authenticated and encrypted channel.
C. It is the secure shell; it is used to restrict actions available to users.
D. It is the standard shell: it has a restricted set of commands, but those are portable across different Linux distributions.
E. It is the synchronous shell: all commands are performed in a synchrous way.
A. It asks the password of the current user, and the prompts for a new password.
B. It launches the power management daemon.
C. It prints the path of the current working directory
D. It saves the current working directory, so that you can return there with the popd command.
A. move to root directory
B. move to home directory
C. nothing
D. one level up from the current directory
A. Richard Stallman
B. Brian Kernighan
C. Linus Torvalds
D. Dennis Ritchie
A. rm
B. cd
C. cp
D. ls
A. /boot
B. /bin
C. /dev
A. kernel modules
B. base kernel
C. all of these
A. create a named pipe (fifo) on a device
B. create a filesystem on a device (such as a hard disk partition)
C. create a fast changing section on a hard disk
D. format a floppy disk
A. set -o noclobber
B. noclobber
C. #NAME?
A. None of these
B. Your password
C. There is no such command
D. Current directory
A. deb_src
B. rpm
C. deb
D. ebuild
A. None of these
B. Slackware
C. Gentoo
D. Debian
E. Fedora
A. nslookup
B. dns
C. lsrouted
D. dnsquery
A. All of these
B. XFCe
C. Gnome
D. KDE
A. :q!
B. :w 'file name'
C. :q
D. :a
E. :wq
A. iptables
B. ipfw
C. ipchains
D. pf
A. The directory one level up from the current directory
B. Listing all LISTENING Connections
C. Change into the root directory
A. A computer software system and network protocol that provides a basis for graphical user interfaces (GUIs) and rich input device capability for networked computers.
B. A linux distribution
C. A desktop environment and graphical user interface that runs on top of a computer operating system.
A. The process is running at low priority.
B. The process is a zombie process.
C. The process is in sleep mode.
D. The process is running at top priority.
A. $HISTFILE
B. !6
C. !!
A. man whois
B. none of these
C. help whois
D. man help whois
A. Swap is the cache of your Physical Memory (RAM)
B. Swap is the ability to switch between users in one terminal session
C. Swap is the cache of your HDD
D. Swap space is the area on a hard disk which is part of the Virtual Memory of your machine (Swap+RAM)
A. host
B. name
C. hn
D. hostname
A. stands for "Light Loader"
B. is a type of Linux Distro
C. is a boot loader that can boot Linux
D. stands for "Lannister-In-Lannister-Out"
E. is only used by Slackware
A. cat /etc/docs/kill | less
B. kill --help
C. man kill
D. doc kill
E. kill -help
A. 2
B. $
C. *
D. &
E. ?
A. ls
B. sys
C. pkg
D. query-pkg
E. rpm -qa
A. type
B. cat
C. biff
D. ls
A. rm -d
B. rd
C. deltree
D. rmdir
E. rm -r