101-500 Practice Test Free – 50 Real Exam Questions to Boost Your Confidence
Preparing for the 101-500 exam? Start with our 101-500 Practice Test Free – a set of 50 high-quality, exam-style questions crafted to help you assess your knowledge and improve your chances of passing on the first try.
Taking a 101-500 practice test free is one of the smartest ways to:
- Get familiar with the real exam format and question types
- Evaluate your strengths and spot knowledge gaps
- Gain the confidence you need to succeed on exam day
Below, you will find 50 free 101-500 practice questions to help you prepare for the exam. These questions are designed to reflect the real exam structure and difficulty level. You can click on each Question to explore the details.
FILL BLANK -
Which file from the /proc/ file system contains a list of all currently mounted devices? (Specify the full name of the file, including path.)
/proc/mounts
Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?A. systemd ignores any manual mounts which are not done using the systemctl mount command
B. The command systemctl mountsync can be used to create a mount unit based on the existing mount
C. systemd automatically generates a mount unit and monitors the mount point without changing it
D. Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time
E. systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?A. By using the command :repeat followed by the number and the command
B. By specifying the number right in front of a command such as 41 or 2yj.
C. By selecting all affected lines using the shit and cursor keys before applying the command.
D. By issuing a command such as :set repetition=4 with repeats every subsequent command 4 times.
E. By specifying the number after a command such as 14 or yj2 followed by escape.
Which of the following commands creates or, in case it already exists, overwrites a file called data with the output of ls?A. ls 3> data
B. ls >& data
C. ls > data
D. ls >> data
E. ls >>> data
FILL BLANK -
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
jobs
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?A. 9
B. 15
C. 19
D. 49
E. 99
Which of the following commands outputs test to the shell?A. cat <!EOT test EOT
B. cat <|EOT test EOT
C. cat !<EOT test EOT
D. cat &<EOT test EOT
E. cat <<EOT test EOT
Which of the following commands print the current working directory when using a Bash shell? (Choose two.)A. echo ${PWD}
B. echo ${WD}
C. printwd
D. pwd
E. echo ${pwd}
FILL BLANK -
Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system? (Specify the full path to the directory.)
When in Normal mode in vi, which character can be used to begin a reverse search of the text?A. r
B. /
C. F
D. ?
E. s
What is true regarding UEFI firmware? (Choose two.)A. It can read and interpret partition tables
B. It can use and read certain file systems
C. It stores its entire configuration on the /boot/ partition
D. It is stored in a special area within the GPT metadata
E. It is loaded from a fixed boot disk position
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?A. apt-get search /etc/debian_version
B. apt -r /etc/debian_version
C. find /etc/debian_version -dpkg
D. dpkg -S /etc/debian_version
E. apt- file /etc/debian_version
What is the output when the regular expression s/[ABC] [abc]/xx/ is applied to the following string?
ABCabc -A. ABxxbc
B. xxCxxc
C. xxxxxx
D. ABCabc
E. Axxaxx
Which of the following commands can perform searches on file contents using regular expressions?A. find
B. locate
C. grep
D. reggrep
E. pgrep
FILL BLANK -
Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)
What is the effect of the -v option for the grep command?A. It enables color to highlight matching parts.
B. It shows the command's version information.
C. It only outputs non-matching lines.
D. It changes the output order showing the last matching line first.
E. It outputs all lines and pre xes matching lines with a+.
Which of the following files are found in the /boot/ file system? (Choose two.)A. Linux kernel images
B. Bash shell binaries
C. systemd target and service units
D. Initial ramdisk images
E. fsck binaries
When booting from the hard disk, a computer successfully loads the Linux kernel and initramfs but hangs during the subsequent startup tasks. The system is booted using a Linux based rescue CD to investigate the problem. Which of the following methods helps to identify the root cause of the problem?A. Using the dmesg command from the rescue CD's shell to view the original system's boot logs.
B. Investigating the file /proc/kmsg on the computer's hard disk for possible errors.
C. Investigating the file /var/log on the computer's hard disk for possible errors.
D. Using chroot to switch to the file system on the hard disk and use dmesg to view the logs.
E. Rebooting again from the hard drive since the system successfully booted from the rescue C
F.
Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?A. 0750
B. 0027
C. 0036
D. 7640
E. 0029
What is the default nice level when a process is started using the nice command?A. -10
B. 0
C. 10
D. 15
E. 20
When removing a package on a system using dpkg package management, which dpkg option ensures configuration files are removed as well?A. --clean
B. --purge
C. --vacuum
D. --remove
E. --declare
Which of the following files, located in a user's home directory, contains the Bash history?A. .bashrc_history
B. .bash_hist file
C. .history
D. .bash_history
E. .history_bash
Which of the following commands installs all packages with a name ending with the string foo?A. zypper get '*foo'
B. zypper update 'foo?'
C. zypper force 'foo*'
D. zypper install '*foo'
E. zypper add '.*foo'
Which of the following commands is used to change options and positional parameters within a running Bash shell?A. history
B. setsh
C. bashconf
D. set
E. envsetup
A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?A. Using lsmod --remove --autoclean without specifying the name of a specific module
B. Using modinfo -k followed by the name of the offending module
C. Using modprobe -r followed by the name of the offending module
D. Adding a blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf
E. Deleting the kernel module's directory from the file system and recompiling the kernel, including its modules
FILL BLANK -
Which command is used to change the priority of an already running process? (Specify ONLY the command without any path or parameters.)
Which of the following files exist in a standard GRUB 2 installation? (Choose two.)A. /boot/grub/stages/stage0
B. /boot/grub/i386-pc/lvm.mod
C. /boot/grub/fstab
D. /boot/grub/grub.cfg
E. /boot/grub/linux/vmlinuz
Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?A. lsattr foo
B. apropos foo
C. locate foo
D. whatis foo
E. which foo
Which is the default percentage of reserved space for the root user on new ext4 lesystems?
Which of the following statements are correct about the initial RAM disk involved in the boot process of Linux? (Choose two.)A. An initramfs is a compressed file system archive, which can be unpacked to examine its contents.
B. An initramfs file contains the MBR, the bootloader and the Linux kernel.
C. After a successful boot, the initramfs contents are available in /run/initramfs/.
D. The kernel uses the initramfs temporarily before accessing the real root file system.
E. An initramfs does not depend on a specific kernel version and is not changed after the initial installation.
Which of the following statements are correct when comparing Linux containers with traditional virtual machines (e.g. LXC vs. KVM)? (Choose three.)A. Containers are a lightweight virtualization method where the kernel controls process isolation and resource management.
B. Fully virtualized machines can run any operating system for a specific hardware architecture within the virtual machine.
C. Containers are completely decoupled from the host system's physical hardware and can only use emulated virtual hardware devices.
D. The guest environment for fully virtualized machines is created by a hypervisor which provides virtual and emulated hardware devices.
E. Containers on the same host can use different operating systems, as the container hypervisor creates separate kernel execution.
Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)A. The partitioning scheme
B. The file system
C. The D-Bus Machine ID
D. The permissions of /root/
E. The SSH host keys
Which of the following commands prints a list of usernames ( first column) and their primary group (fourth column) from the /etc/passwd file?A. fmt "f 1,4 /etc/passwd
B. cut "d : -f 1,4 /etc/passwd
C. sort "t : -k 1,4 /etc/passwd
D. paste "f 1,4 /etc/passwd
E. split "c 1,4 /etc/passwd
Which chown command changes the ownership to dave and the group to staff on a file named data.txt?A. chown dave/staff data.txt
B. chown -u dave -g staff data.txt
C. chown --user dave --group staff data.txt
D. chown dave+staff data.txt
E. chown dave:staff data.txt
Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command lters out all log entries in the time period between 8:00 am and 8:59 am?A. grep "E ':08:[09]+:[09]+' loga.log
B. grep "E ':08:[00]+' loga.log
C. grep "E loga.log ':08:[0-9]+:[0-9]+'
D. grep loga.log ':08:[0-9]:[0-9]'
E. grep "E ':08:[0-9]+:[0-9]+' loga.log
Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)A. ~/.lib64/
B. /usr/lib64/
C. /var/lib64/
D. /lib64/
E. /opt/lib64/
Which of the following commands show how the shell handles a specific command?A. where
B. type
C. stat
D. case
E. leinfo
Which wildcards will match the following lenames? (Choose two.) ttyS0 ttyS1 ttyS2A. ttyS[1-5]
B. tty?[0-5]
C. tty*2
D. tty[A-Z][012]
E. tty[Ss][02]
Which of the following apt-get subcommands installs the newest versions of all currently installed packages?A. auto-update
B. dist-upgrade
C. full-upgrade
D. install
E. update
Which of the following commands loads a kernel module along with any required dependency modules?A. depmod
B. modprobe
C. module_install
D. insmod
E. loadmod
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose two.)A. Ctrl XX
B. Ctrl :W
C. Esc zz
D. Esc :wq
E. Esc ZZ
Which of the following commands reads a file and creates separate chunks of a given size from the file's contents?A. ar
B. cat
C. break
D. split
E. parted
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?A. tune2fs -d 200 /dev/sda1
B. tune2fs -i 200 /dev/sda1
C. tune2fs -c 200 /dev/sda1
D. tune2fs -n 200 /dev/sda1
E. tune2fs --days 200 /dev/sda1
Which of the following commands can be used to display the inode number of a given file? (Choose two.)A. inode
B. ln
C. ls
D. cp
E. stat
Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?A. tr "d 'r' userlist.txt newlist.txt
B. tr "c 'nr' '' newlist.txt userlist.txt
C. tr 'rn' '' userlist.txt newlist.txt
D. tr 'r' 'n' userlist.txt newlist.txt
E. tr "s '/^M/^J/' userlist.txt newlist.txt
Given the following input stream:
txt1.txt
atxt.txt
txtA. txt
Which of the following regular expressions turns this input stream into the following output stream? txt1.bak.txt atxt.bak.txt txtB. bak.txt
C. s/^.txt/.bak/
D. s/txt/bak.txt/
E. s/txt$/bak.txt/
F. s/^txt$/.bak^/
G. s/[.txt]/.bak$1/
Which of the following commands generates a list of user names from /etc/passwd along with their login shell?A. column -s : 1,7 /etc/passwd
B. chop -c 1,7 /etc/passwd
C. colrm 1,7 /etc/passwd
D. sort -t: -k1,7 /etc/passwd
E. cut -d: -f1,7 /etc/passwd
Which of the following vi commands deletes two lines, the current and the following line?A. d2
B. 2d
C. 2dd
D. dd2
E. de12
What is the process ID number of the init process on a System V init based system?A. -1
B. 0
C. 1
D. It is different with each reboot
E. It is set to the current run level
What is the purpose of the xargs command?A. It passes arguments to an X server.
B. It repeats the execution of a command using different parameters for each invocation.
C. It reads standard input and builds up commands to execute.
D. It asks a question, graphically, and returns the answer to the shell.
E. It allows specifying long options (like --help) for commands that normally only accept short options (like -h) C
Free Access Full 101-500 Practice Test Free Questions
If you're looking for more 101-500 practice test free questions, click here to access the full 101-500 practice test.
We regularly update this page with new practice questions, so be sure to check back frequently.
Good luck with your 101-500 certification journey!