225 questions · instant answer feedback · concise explanations · free
Question 1 of 225Which of the following is the act of creating a virtual version of components such as storage devices and computer network resources called?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Virtualization
Virtualization is the process of creating virtual representations of physical resources, such as storage or networks. On the exam, expect virtualization to map directly to hypervisor concepts and resource abstraction.
Question 2 of 225What does GUI stand for?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Graphical User Interface
GUI stands for Graphical User Interface, allowing users to interact with a system using visual icons and windows. Do not confuse this with a command line interface, which relies entirely on typed text commands.
Question 3 of 225What directly controls hardware and translates the commands from a piece of software into something the hardware can understand and act upon?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Kernel
The kernel acts as the core bridge between software and physical hardware, managing all system resources directly. Finder and Explorer are graphical file managers, not core system components managing hardware.
Question 4 of 225Which of the following is an American non-profit organization devoted to expanding the range of creative works available for others to build upon legally and to share?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Creative Commons
Creative Commons provides standardized copyright licenses that allow creators to specify how others can legally share and build upon their work. Remember this for open source licensing objectives alongside GPL and MIT.
Question 5 of 225What is the generic name given to the action of protecting shell meta-characters from being treated specially by the shell?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Quoting
Quoting prevents the shell from interpreting special metacharacters, treating them as standard text instead. Use backslashes for single characters or quotes for longer strings to avoid unwanted globbing or expansion.
Question 6 of 225Which option will cause the echo command NOT to output a trailing newline?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. -n
The -n option suppresses the trailing newline, modifying the default behavior of the echo command. On the exam, associate -n with no newline, while the printf command handles formatting.
Question 7 of 225Which of the following commands will output a list of all of the file names under your home directory and all subdirectories with file names ending with .pdf?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. find ~ -name '*.pdf'
Using find with the tilde searches the home directory, and the -name flag matches the pdf pattern recursively. Remember that ls lacks this recursive name matching capability.
Question 8 of 225What is the set of pages that explains every command available on the system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Man pages
Manual pages provide comprehensive documentation for commands, configuration files, and system calls. If you need detailed command syntax, man is the standard utility to use.
Question 9 of 225Your current working directory is /home/jason/documents/. You just entered cd .. into the command line and then entered pwd. What output do you receive?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /home/jason
The double dot represents the parent directory, so cd .. moves up one level to the jason folder. Printing the working directory then outputs the absolute path of that location.
Question 10 of 225Which of the following options must be used to remove a directory and its subdirectories?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. rm -r
The rm command with the recursive flag deletes both the directory and its contents completely. Remember that rmdir only works on directories that are already empty.
Question 11 of 225Which of the following is NOT a valid rule in naming a variable?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Variable names must start with numbers
Variables cannot start with a number, though numbers are allowed elsewhere in the name. They must begin with a letter or an underscore, making this the correct choice.
Question 12 of 225What is the proper command to compress the file filename.txt into a zip archive called myfile.zip?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. zip myfile.zip filename.txt
The correct syntax places the intended output archive name before the source file name. The unzip command extracts archives, so it is the wrong utility for compression.
Question 13 of 225What statement is used to get input from the terminal when a shell script is being run?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. read
The read command captures standard input from the terminal during script execution, assigning it to a variable. Commands like input or scan are not built-in shell commands.
Question 14 of 225Which option can be used with tail to print the last 10 lines of a file and then keep printing any new lines that may be added continuously?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. -f
The follow option keeps the file open and continuously displays new lines as they are appended. This is heavily used for monitoring active system logs in real time.
Question 15 of 225Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. tar -cf backup.tar /home
The -c flag creates a new archive and the -f flag specifies the archive file name, placing the filename immediately after. Using -x extracts files instead of creating them, making the other options fail.
Question 16 of 225Which command is used to print the first 10 lines of a file to the display?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. head
The head command prints the first ten lines of a file by default. The tail command outputs the last ten lines, while cat outputs the entire file.
Question 17 of 225After installing a new package, in which directory are you most likely to find its configuration file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /etc
The /etc directory specifically stores system and application configuration files. The /lib directory holds shared libraries, while /usr contains user utilities and programs.
Question 18 of 225Which of the following directories is often used to store log files?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. /var
The /var directory contains variable data like system logs, specifically within /var/log. The /usr directory holds static application data, while /temp is incorrect.
Question 19 of 225Which of the following is used as a virtual or pseudo filesystem to provide a tree of all of the device nodes and drivers in the running kernel?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. /dev
The /dev directory contains device nodes that provide user space access to the device drivers running in the kernel. Do not confuse this with /sys, which exposes kernel subsystem information and hardware topology, or /proc, which contains process and memory data.
Question 20 of 225Which type of link points to another file like a shortcut in Windows or a Macintosh alias?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Symbolic link
A symbolic link acts as a pointer to another file path, similar to a Windows shortcut. A hard link points directly to the data on the disk, so deleting the original file does not break a hard link.
Question 21 of 225Which type of link contains the data in the target file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Hard link
A hard link points directly to the inode data on the disk rather than just referencing a file path. Symbolic links act as mere shortcuts, which break entirely if the original target file is deleted.
Question 22 of 225Which of the following tasks is not performed automatically for a user account when it is created using the useradd command?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Create the user's home directory
The useradd command does not automatically create the home directory unless the capital M option is supplied. Note that without configuration changes, assigning the home path and creating the directory can be ambiguous on some distributions.
Question 23 of 225Which of the following does Raspberry Pi OS run on?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Raspberry Pi
Raspberry Pi OS, formerly known as Raspbian, is a Debian-based distribution specifically optimized to run on Raspberry Pi hardware. For the exam, associate SBCs like the Raspberry Pi with low-cost embedded deployments.
Question 24 of 225Which of the following programs on a Linux system could you use as a replacement for Microsoft Word?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Writer
Writer is the word processing application included in the LibreOffice suite, serving as a standard alternative to Microsoft Word. Note that Pico and Nano are plain text editors used in terminals, not full word processors.
Question 25 of 225Which of the following can be used to represent a single number from 3 to 9?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. [3-9]
The bracket range [3-9] tells the shell to match exactly one character from three through nine. Remember that ranges must be specified in ascending order and match individual characters, not multi-digit numbers.
Question 26 of 225Which of the following is a valid option for a typical command to get its built-in usage information?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. –help
The long option –help is universally recognized by most command line utilities to display quick usage information. While man pages provide comprehensive manuals, –help gives a rapid summary directly in the terminal.
Question 27 of 225Which command is used to make a shell variable known to subsequently executed programs?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. export
The export command makes a shell variable available to subsequently executed programs by placing it into the environment. The env command only displays the current environment or runs a command in a modified one without exporting variables.
Question 28 of 225What option can be used with cat to display line numbers with the text of a file to the screen?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. -n
The -n option displays line numbers next to a file's contents when viewed with cat. The -x flag is not used here, and the pound sign is purely a comment indicator in shell scripts.
Question 29 of 225Which of the following is a requirement of the GPL license but not the BSD license?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Users who modify and distribute the software under the GPL license must make the modifications they made available to the recipients under the same license
The GPL license is copyleft, meaning modified versions must be distributed under the exact same license. The BSD license is permissive and allows code modifications without requiring derivative works to remain open source.
Question 30 of 225Which of the following files holds the definition of the local user accounts?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /etc/passwd
The /etc/passwd file stores the basic attributes and definitions for local user accounts on the system. The other options resemble Windows paths and are entirely invalid in standard Linux account management.
Question 31 of 225Which of the following commands is used to show the information about a directory or a symbolic link?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. ls -d
The ls -d command displays information about a directory or symbolic link itself, rather than listing its internal contents. The -s flag prints file sizes, while ln is used to create links instead of listing them.
Question 32 of 225Which of the following is an example of embedded Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Android
Android is built on the Linux kernel and is designed for embedded systems like smartphones and tablets. Traditional desktop or server distributions like Fedora are not typically categorized as embedded operating systems.
Question 33 of 225Which of the following is the correct order of a computer's operation?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. (1) The computer waits for user input, (2) The user selects a command and enters it via the keyboard or mouse, (3) The computer executes the command
The basic computer operation cycle involves waiting for user input, receiving a command, and executing it. The computer cannot execute the command before the user inputs it.
Question 34 of 225What permissions does foo1.txt have after running chmod 644 foo1.txt?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. foo1.txt is readable/writeable by the owner
Octal mode 644 grants read and write permissions to the owner, and read-only permissions to the group and everyone else. Watch for options like writeable by everyone, which would require a 6 or 7 in the last octet.
Question 35 of 225A file currently has permissions of 755. Which of the following commands would change file permissions to r-xr–r–?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. chmod 544 filename
The octal value 544 directly translates to read and execute for the owner, and read-only for the group and others. Remember that execute is one, write is two, and read is four when calculating these permissions.
Question 36 of 225What is one of the most basic features of a shell script?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. The ability to run commands
A shell script is fundamentally designed to execute commands in sequence. While scripts can accept input or display output, the most basic function is running standard utilities, which entirely rules out compiling programs.
Question 37 of 225Which of the following displays network connections for Transmission Control Protocol, routing tables, and a number of network interface and network protocol statistics?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. netstat
The netstat command displays network connections, routing tables, and protocol statistics. The ping utility tests reachability, and traceroute maps the network path packets take.
Question 38 of 225Which command-line tool will create a filename that ends in .gz?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. gzip
The gzip command compresses files and appends the dot g z extension to the resulting archive. Note that bzip two and x z create dot b z two and dot x z files respectively.
Question 39 of 225You are in a directory that contains several hidden files. Which command should you use to display hidden files in the current directory?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. ls -a
Using the l s dash a flag lists all files, including hidden configuration files that start with a dot. Standard l s only displays non hidden files, ignoring essential dot files.
Question 40 of 225What is defined by a Free Software license?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. The conditions for modifying and distributing the licensed software
A Free Software license defines how users can legally modify and distribute the software. Remember that true free software focuses on user liberties rather than restricting the context of its execution.
Question 41 of 225What command would a user enter to delete a directory containing no other files or directories within it?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. rmdir
The rmdir command is specifically used to remove empty directories from the file system. If you need to delete a directory that contains files or other directories, you must use rm with the recursive flag.
Question 42 of 225What must the user do to run a program that is not within a directory located in the PATH variable?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. include the file path to the program
If an executable is not in a directory listed in your PATH variable, you must provide its explicit file path to run it. A common shortcut for this is using dot slash to execute a script in your current directory.
Question 43 of 225Which command line can be used to search help files that mention the word 'copy'?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. man -k copy
The dash k option for the man command acts exactly like the apropos command. It searches short manual page descriptions for keywords and displays any matches.
Question 44 of 225Which of the following information can be displayed by top?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Running processes, ordered by CPU or RAM consumption
The top command displays running system processes and their resource usage, like CPU and RAM. For the exam, remember that top provides a real time dynamic view of your system, whereas other tools only display user or hardware summaries.
Question 45 of 225Which of the following options is used with tar to create a new .tar archive file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. -c
The dash c option tells tar to create a new archive file. For the exam, pair dash c with dash f to specify the output filename, such as tar dash c f archive dot tar.
Question 46 of 225Which of the following programs on a Linux system could you use instead of Windows Media Player?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. VLC
VLC is a highly popular cross-platform media player that runs on Linux. For the exam, remember that Linux relies on open-source applications for multimedia tasks, unlike proprietary options limited to their native operating systems.
Question 47 of 225What is the main difference between Linux and Windows or macOS?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Linux is open source software while the other two are closed source operating systems
Linux is an open-source operating system, whereas Windows and macOS are proprietary, closed-source systems. While cost and installation methods vary, the underlying licensing and source code availability remain the key distinctions.
Question 48 of 225What is the practice of offering people the right to freely distribute copies and modified versions of a work with the stipulation that the same rights be preserved in derivative works created later called?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Copyleft
Copyleft is the practice of allowing free distribution and modification while requiring the same rights for derivative works. Copyright is the default legal framework, but copyleft uses it to enforce open sharing.
Question 49 of 225Which of the following is NOT a heightened value proposition of Open Source Software compared to proprietary software?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Popularity
While open-source software can be highly popular, popularity itself is not an inherent value proposition. The key benefits tested are transparency, interoperability, security, and the ability to localize the software for specific needs.
Question 50 of 225When using a web browser, what should a user do to prevent private data from being stored locally?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Browsers can be configured to use a private mode that does not store any data locally
Most modern browsers feature a private browsing mode that prevents history and local data from being saved. You do not need to delete profiles or seek special secure versions to achieve this basic privacy function.
Question 51 of 225Which of the following commands can search for executable programs or scripts located in the PATH variable?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. which
The which command searches the directories listed in your PATH variable to locate executable programs. If the program exists in your path, this command displays its exact location.
Question 52 of 225Which keyboard shortcut allows copying highlighted text while working in the command line terminal?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. CTRL + SHIFT + C
Pressing Control, Shift, and C copies highlighted text within a Linux terminal. Standard Control plus C will not copy text, because that combination is reserved for sending an interrupt signal to stop a running process.
Question 53 of 225Which command can be used to search help files that mention the word "copy"?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. man –k copy
The man command with the dash k option searches the manual page names and short descriptions for a given keyword. Be careful, because the regular man command only opens a specific manual page if you already know its exact name.
Question 54 of 225Your current present working directory is /home/jason/documents/. You just entered cd . into the command line and then enter pwd. What output do you receive?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. /home/jason/documents/
The single dot represents the current working directory, so changing to it leaves you exactly where you started. The pwd command simply prints that original path, meaning you never actually move up or down the tree.
Question 55 of 225Which option can be used with tail to print the last X bytes of a file to the screen?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. -c
The dash c option tells the tail command to output a specific number of bytes from the end of a file. The dash n option is used when you want to print a specific number of lines instead.
Question 56 of 225Which of the following is the file descriptor number used to represent Standard In (STDIN)?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. 0
Standard input is always assigned file descriptor zero by the Linux kernel. For quick recall, just remember the numerical order starting with zero.
Question 57 of 225Which of the following is the file descriptor number used to represent Standard Out (STDOUT)?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. 1
Standard output is always assigned file descriptor one by the system. Standard input is zero, standard output is one, and standard error is two.
Question 58 of 225Which command is used to print the full contents of a file to the screen at once?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. cat
The cat command reads files sequentially and writes them to standard output. While less also displays file contents, cat dumps the entire file at once instead of opening an interactive pager.
Question 59 of 225Which redirection operator accepts text on the following lines as standard input?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. <<
The double less than operator is a here document that passes subsequent lines as standard input. This differs from the single less than operator, which redirects input from an existing file.
Question 60 of 225Which of the following is used as a virtual or pseudo filesystem used to interface with the kernel and processes?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /proc
The proc virtual filesystem provides an interface to kernel data structures and running processes. The sys filesystem also handles kernel data, but proc specifically maps process directories by their P I D.
Question 61 of 225You have just created a text file called password.txt containing a secret password. You want to ensure that the file is not seen when the ls command is run within the current directory. What command should you use to hide the text file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. mv password.txt .password.txt
The move command is used to rename files, and adding a leading dot to the new name makes it hidden in Linux. Using the hidden extension does nothing, because Linux only cares about that leading dot.
Question 62 of 225Which of the following commands will create a single directory named dir1 dir2?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. mkdir "dir1 dir2"
Putting quotes around the name forces the system to treat the space as part of a single string. Without quotes, the command would fail or try to create two separate directories.
Question 63 of 225Which of the following would properly identify the device associated with the second partition on the first hard disk on the first IDE controller of a system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. /dev/hda2
Legacy IDE drives use the naming convention where the first drive is hda and its second partition is hda2. Modern SATA drives use sda, but knowing legacy naming remains highly relevant for foundation exams.
Question 64 of 225What column tells the "w" program which session is running?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. WHAT
The WHAT column in the w command output displays the specific process or program currently running in that user session. Do not confuse this with the USER or TTY columns, which only show login details.
Question 65 of 225Which UID is usually used to represent the first regular user on a Linux system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. 1000
Modern Linux distributions typically reserve identifiers starting from one thousand for regular user accounts. Lower numbers are designated for system processes and core services.
Question 66 of 225Which command would be used to change the owner of foo1.txt from jasondion to administrator?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. chown
The chown command modifies file and directory ownership, requiring administrative privileges. Remember that chmod is used separately when you need to adjust file permissions rather than ownership.
Question 67 of 225Which of the following is NOT contained in the /etc/passwd file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. The password of the user's account
The passwd file contains account information but holds only a placeholder in the password field. Actual encrypted passwords are securely stored in the restricted shadow file instead.
Question 68 of 225Which command is used to change the password of a user's account?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. passwd
The passwd utility updates a user authentication tokens and changes account passwords. Be careful not to confuse this command with pwd, which simply displays your current directory path.
Question 69 of 225Which option can be used with useradd to specify the home directory for a user?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. -d
The dash d flag sets a specific home directory path when creating a new user account. In contrast, the dash c flag only adds descriptive comment fields like the user full name.
Question 70 of 225Where should temporary files be stored on a Linux system that can be safely deleted during a reboot?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. /tmp
The root level temporary directory is explicitly designed to be cleared during system reboots. Conversely, temporary files kept in the var directory are preserved across system restarts.
Question 71 of 225Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. grep '[Ff]red' data_file
Using bracket notation with uppercase and lowercase characters directly inside the search pattern catches both variations. Relying on basic flag searches without this notation misses the uppercase spelling.
Question 72 of 225Which of the following regular expressions matches lines beginning with the given pattern using the grep command?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. ^pattern
The caret symbol anchors the search to the start of a line, ensuring it only matches text that begins with your pattern. The dollar sign anchors to the end of a line instead.
Question 73 of 225Which version of Linux should be installed on a system with a 32-bit processor?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. x86
A system with a 32 bit processor requires an operating system compiled for the x86 architecture. The x64 architecture is strictly for 64 bit processors and cannot run on older 32 bit hardware.
Question 74 of 225Which of the following directories contains all of the installed kernels on your system and their needed drivers?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. /boot
The boot directory contains the Linux kernel images and files needed during the startup process. The actual driver modules are stored separately under lib modules, making this option slightly imprecise.
Question 75 of 225Which file on a Linux system contains the passwords for each user on the system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /etc/shadow
Encrypted user passwords are stored in the highly restricted shadow file. The passwd file contains basic account details but only holds a placeholder character where the password used to be.
Question 76 of 225How is it possible to determine if an executable file is a shell script read by Bash?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. The first line starts with #!/bin/bash.
A bash script is identified by its shebang line, which starts with hash exclamation slash bin slash bash. Linux ignores file extensions, so the dot s h suffix is just a human convention and not required by the system.
Question 77 of 225Which of the following programs on a Linux system could you use as a replacement for Adobe Photoshop?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Gimp
GIMP is the correct answer because it is a widely used open source graphics editor that competes with Adobe Photoshop. For the exam, remember that common Linux desktop applications often mirror proprietary software, such as using LibreOffice for word processing.
Question 78 of 225Which is NOT a Linux distribution?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Torvalds
Torvalds is correct because it refers to Linus Torvalds, the creator of the Linux kernel, rather than an actual operating system distribution. Knowing the major distributions, such as Debian, openSUSE, and CentOS, is essential for exam success.
Question 79 of 225Which of the following programs on a Linux system could you use as a replacement for Microsoft PowerPoint?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Impress
LibreOffice Impress is the correct answer because it is the standard open source presentation software used as a replacement for Microsoft PowerPoint. For the exam, familiarize yourself with the LibreOffice suite equivalents for common proprietary applications.
Question 80 of 225Which Linux distribution is used as a basis for the creation of Ubuntu Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Debian
Debian is the correct answer because Ubuntu is a popular Linux distribution built directly upon the Debian architecture. Understanding these family relationships between distributions, such as Ubuntu deriving from Debian, is crucial for the exam.
Question 81 of 225You are working on a script that requires combining the contents of two text files, file1.txt and file2.txt into a single output on the terminal. Which command should you use?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. cat
The cat command, derived from concatenate, reads multiple files and outputs their combined contents sequentially to the terminal. Commands like less or head are used for viewing files interactively or partially, not for combining multiple files.
Question 82 of 225What symbol can be used to represent none, one, or multiple characters within search criteria?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. *
The asterisk is used in shell globbing to match zero, one, or many characters. On the exam, remember that the question mark matches exactly one character, while the asterisk matches any number of characters.
Question 83 of 225Which command would a user type to create a new file within the current directory?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. touch
The touch command is the standard utility used to create a new empty file in Linux. If the specified file already exists, touch simply updates its modification and access times rather than overwriting it.
Question 84 of 225Which command is used to copy files from one directory to another?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. cp
The cp command stands for copy and is used to duplicate files from one location to another. Remember that mv moves or renames files, while rm deletes them, and copy is not a valid command.
Question 85 of 225Which of the following is true about a recursive directory listing?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. It includes the content of sub-directories
A recursive directory listing displays the contents of the target directory as well as all of its subdirectories. On the exam, associate the capital R flag with ls for recursive operations.
Question 86 of 225You have been asked to create a script that will present the user with an onboard menu in which they can select 4 different commands to run by entering 1, 2, 3, or 4. Which of the following statements should you use to create the simplest and most effective method of choosing the command to run based on the user's input?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. case
A case statement is the most efficient choice for matching a specific variable against a list of specific values like menu selections. While nested if statements can technically work, they become clumsy and hard to read.
Question 87 of 225Which of the following options is used to gzip a file called filename?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. gzip filename
Running gzip followed by a filename compresses the file and appends a dot g z extension by default. The hyphen c flag is used to write to standard output, and hyphen z is used for tar, not gzip.
Question 88 of 225Which command line tool is used to compress a single file using the Burrows-Wheeler algorithm?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. bzip2
The bzip2 command specifically compresses single files using the Burrows-Wheeler block sorting algorithm and Huffman coding. To easily remember this on the exam, gzip and xz use different algorithms, while tar is strictly an archiving tool that often pairs with them.
Question 89 of 225How can the normal output of a command be written to a file while discarding the error output?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. command >file 2>/dev/null
Redirecting standard error to dev null immediately discards those error messages, while sending standard output to a file saves it. Standard error is represented by the file descriptor number two, which makes the two right angle bracket dev null syntax essential.
Question 90 of 225Which GID is usually used to represent the root group on a Linux system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. 0
The root group is always represented by the group identifier zero. Just as the root user account has user identifier zero, assigning zero to the primary group ensures the highest level of administrative system access.
Question 91 of 225Which of the following answers is true for cloud computing?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Cloud Computing provides new tools to manage IT resources
Cloud computing introduces new paradigms and tools for managing information technology resources efficiently. The other options present false assumptions, as moving to the cloud does not automatically mean downsizing your department or sharing data publicly.
Question 92 of 225Which of the following is the UNIX device name for a physical or virtual terminal connection?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. tty
The term tty represents teletypewriter and serves as the standard Unix device name for physical or virtual terminal connections. Knowing this historical abbreviation is a practical cue for identifying command line interface environments in Linux.
Question 93 of 225Which of the following is the on-demand availability of computer system resources, especially data storage and computing power, without direct active management by the user?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Cloud Computing
Cloud computing provides on demand availability of computer system resources like data storage and computing power without direct active management. While other terms sound plausible, cloud computing is the industry standard term you need to know.
Question 94 of 225Which command is used to rename a file on Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. mv
The mv command is the standard utility used to both move and rename files within Linux. While a separate rename command exists, mv is the fundamental POSIX tool you must master for basic file manipulation on the exam.
Question 95 of 225Which of the following is true about environment variable names by convention?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Contains all uppercase letters
Environment variables are conventionally named using all uppercase letters to distinguish them from regular local shell variables. This naming convention helps system administrators and users easily identify system configurations like PATH or USER.
Question 96 of 225What does the "rm -rf" command do in Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Remove all the files in the directory and subdirectories
The rm command with the recursive and force flags removes all files within a directory and its subdirectories without prompting. The lowercase r makes it traverse directories, while the f forces the action by ignoring non-existent files and overrides.
Question 97 of 225Which of the following commands increases the number of files within a directory?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. touch newfile
The touch command updates timestamps, but if the file does not exist, it creates a new empty file, thereby increasing the file count. The create command is not a standard utility, and rmdir removes directories.
Question 98 of 225What keyword should be used to fill in the blank in the following segment of the given shell script?for i in *; _____ cat $i done
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. do
In bash scripting, a for loop requires the do keyword before the commands you want to execute. Remember the basic loop structure is for, followed by do, and ending with done.
Question 99 of 225Which of the following statements may be used to access the second command line argument to a script?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. $2
Inside a script, the dollar sign followed by a number references positional parameters from the command line. For your exam, remember that dollar one is the first argument, while dollar two captures the second argument passed to the script.
Question 100 of 225Which command can be used to display the contents of multiple files to the screen at once?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. cat
The cat command concatenates files and reads their contents sequentially to standard output. While head and tail are useful for viewing specific file sections, only cat seamlessly streams multiple complete files to the screen at once.
Question 101 of 225Which string should you add to put the date into the prompt of the shell?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. \d
In the PS1 prompt string, the backslash d escape sequence displays the current date in a specific format. Watch out for slash variants on the exam, as bash prompt escapes universally rely on a backslash rather than a forward slash.
Question 102 of 225What is NOT one of the ways that DHCP can be used to deliver IP addresses?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Permanent
Dynamic Host Configuration Protocol address allocation is strictly categorized into manual, automatic, and dynamic methods. The term permanent is not an allocation type, though automatic allocation effectively assigns a permanent address to a client.
Question 103 of 225What is a set of standards that underlie most modern network communications at the software level?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. TCP/IP
Transmission Control Protocol and Internet Protocol provide the foundational software networking standards for modern communication. For the exam, remember that while Wi-Fi is a hardware technology, this protocol suite handles the actual software routing.
Question 104 of 225Which storage device would be listed as /dev/sdb in Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. 2nd hard drive
Linux assigns drive letters sequentially starting from the letter A. Therefore, the first drive is SDA, making SDB consistently represent the second registered hard drive detected by the system.
Question 105 of 225Which network interface always exists in a Linux system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. lo
The loopback interface provides internal networking for the operating system to communicate with itself. It is virtually always present, whereas interfaces like eth0 or wlan0 strictly depend on having physical networking hardware installed.
Question 106 of 225Which of the following is used as a virtual or pseudo filesystem used to interface with the kernel and system as a whole but not with individual processes?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. /sys
The sysfs pseudo filesystem mounts at sys and specifically structures kernel and hardware information. A key exam takeaway is that proc traditionally handles individual process data, while sys organizes global device and kernel details.
Question 107 of 225Which of the following is the filesystem for a CD-ROM?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. isofs
The isofs module is used by Linux to support the ISO 9660 filesystem, which is the standard for optical discs like CD-ROMs. For the exam, remember that ext2 is for disks, procfs is for kernel data, and isofs handles optical media.
Question 108 of 225Which of the following is NOT TRUE about the Linux Distribution Life cycle?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Linux distros are always short term releases
Many Linux distributions offer both short-term releases and long-term support versions, meaning they are not exclusively short-term. Recognizing the difference between LTS and standard releases is a key part of understanding the software lifecycle.
Question 109 of 225Which of the following commands is used to view memory usage on a system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. free
The free command reports the total amount of free and used physical and swap memory on the system. Note that ps only shows process snapshots, while route and netstat manage networking details rather than hardware memory statistics.
Question 110 of 225Which of the following commands can be used to change default permissions for files and directories at the time of creation?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. umask
The umask command defines the default permission mask applied to newly created files and directories. Remember that chmod modifies existing permissions, whereas chown and chgrp alter file ownership rather than creation masks.
Question 111 of 225Which option can be used with useradd to create a new user without a home directory?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. -M
The capital M option tells the useradd command to create a new user account without creating a home directory. Conversely, the lowercase m option explicitly instructs the system to generate the home directory.
Question 112 of 225What does the letter t at the end of drwxrwxrwt indicate within the following directory permissions? drwxrwxrwt 14 root root 36864 2012-03-02 11:17 /tmp
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. The t is used to show that the directory is globally writable, but only the owner can delete their own files within the directory
The letter t represents the sticky bit, which restricts file deletion within a shared directory. Even if multiple users have write access to the directory, only the file owner, directory owner, or root user can delete files there.
Question 113 of 225What command is used to change the group ownership of a file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. chgrp
The chgrp command modifies the group ownership associated with a file or directory. You can memorize this easily because chgrp stands for change group, differentiating it from chown, which typically changes the user owner.
Question 114 of 225Which of the following ways would NOT allow a user to perform a command-line task that requires root privileges?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Disabling firewall and force open a directory, file, or folder
Disabling a firewall does not grant a user administrative command-line rights, as elevated privileges require tools like sudo or su. The suggested action involves modifying network security rather than altering user authorization levels.
Question 115 of 225What is the ls command used for in Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Lists the files within a directory
The ls command is used to list the files and directories within a specified path. It does not inherently display active network shares or track which local users are actively utilizing a specific file at that moment.
Question 116 of 225Which command closes the terminal window?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. exit
Typing the exit command terminates the current shell session and effectively closes the active terminal window. The other listed options are not recognized Linux commands, making exit the only logical choice on the exam.
Question 117 of 225What does the term GPL stand for?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. General Public License
GPL stands for General Public License, which is a widely used free software license. It guarantees end users the freedom to run, study, share, and modify the software.
Question 118 of 225The output of the program date should be saved in the variable datenow. What is the correct statement to enter into the shell to set this variable?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. datenow=$(date)
The datenow=$(date) syntax uses command substitution to execute the date command and store its output in the variable. Remember to avoid pipes for variable assignment, as they pass output between commands.
Question 119 of 225After running a command to delete all of the files beginning with the letter "a", the file Access.txt remained. Assuming that the user had the correct ownership and permissions, why was Access.txt not deleted when the command was run?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Linux file names are case sensitive
Linux file names are case sensitive, so a pattern matching a lowercase a will ignore an uppercase A. To target both, you would need to use a bracket expansion like rm [aA] star on the command line.
Question 120 of 225Which directory contains the files and directories automatically copied over to a new user's home directory when the account is first created?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. /etc/skel
The slash etc slash skel directory acts as a template, automatically copying its default files into a new user home directory during account creation. This ensures standard configuration files are readily available for every new user.
Question 121 of 225Which file is used to define all of the users on a Linux system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. /etc/passwd
The slash etc slash passwd file defines all user accounts on a Linux system by storing essential account information. It is a universally recognized plain text file that maps usernames to their corresponding user identifiers.
Question 122 of 225Which of the following provides the correct syntax to search for lines ending with the given pattern using the grep command?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. pattern$
In regular expressions, the dollar sign represents the end of a line, so grep matches the pattern immediately preceding it at the line's conclusion. The caret symbol is used to match the beginning of a line instead, which is a common distractor on the exam.
Question 123 of 225Why is the file data.txt empty after executing sort data.txt > data.txt?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Because the file gets truncated before sort is executed
The file ends up empty because the shell processes the redirection first, truncating the destination file before the sort command executes. To avoid this data loss on the exam, remember to pipe the output into a temporary file instead.
Question 124 of 225What symbol can be used to represent a single character within search criteria?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. ?
The question mark is used to represent exactly one character in shell globbing patterns. Remember that the asterisk matches zero or more characters, while a period represents a single character only within regular expressions, not standard shell expansion.
Question 125 of 225What command can be used to find the executable and man pages that exist for a given command?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. whereis
The whereis command is specifically designed to locate the binary, source, and manual page files for a command. Do not confuse this with the which command, which only searches directories in your path to locate executable files.
Question 126 of 225How do you perform a recursive directory listing from the command prompt?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. ls -R
The ls command combined with the dash capital R flag performs a recursive directory listing, displaying all subdirectories and their contents. Watch out for Windows-style commands like dir or incorrect slash parameters that might appear as distractors.
Question 127 of 225Which character represents the root directory?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. /
The forward slash character represents the root directory, serving as the absolute top level of the Linux filesystem hierarchy. Every absolute path begins with this single slash, distinguishing it clearly from relative file paths.
Question 128 of 225Which of the following is an interpreted, high-level, general-purpose programming language?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Python
Python is an interpreted, high-level, general-purpose programming language. The other options are either entirely fictional or represent made-up programming languages that do not fit this description.
Question 129 of 225Which of the following is a mobile operating system based on a modified version of the Linux kernel designed primarily for touchscreen mobile devices?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Android
Android is a mobile operating system based on a modified version of the Linux kernel. It is designed primarily for touchscreen mobile devices such as smartphones and tablets.
Question 130 of 225Which of the following programs on a Linux system could you use as a replacement for Microsoft Outlook?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Thunderbird
Mozilla Thunderbird is a free and open-source email client used in Linux. The other options are fabricated and do not represent actual email applications on the Linux platform.
Question 131 of 225When the free command is run, what does the Mem: line reveal about the system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. RAM statistics
The Mem line in the free command output displays the total, used, and free random access memory. Use free -h on the exam if you need to read the memory statistics in a more human friendly format like megabytes or gigabytes.
Question 132 of 225What is the symbolic representation of the octal numeric permission 644?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. rw-r–r–
The octal permission 644 translates to read and write for the owner, and read only for the group and others. Remember the numeric scale for the exam where read is four, write is two, and execute is one.
Question 133 of 225Which of the following commands will display a list of all files in the current directory, including those that may be hidden?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. ls -a
The ls command with the dash a option displays all files, including hidden files that start with a dot. Options like dash hidden are invalid, while dash h just changes the output to a human readable format.
Question 134 of 225Which of the following commands can be used to resolve a DNS name to an IP address?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. nslookup
The nslookup command queries the Domain Name System to resolve domain names to their corresponding IP addresses. While tools like dig and host are also commonly tested for lookups, nslookup remains a classic utility for basic network troubleshooting tasks.
Question 135 of 225Which of the following statements would be used for sending both standard output and standard error to the same location?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. 2>&1
The redirection syntax two greater than and one redirects file descriptor two, standard error, to the same location as file descriptor one, standard output. This specific ordering is crucial for combining both streams when capturing command output or error logs.
Question 136 of 225Which of the following is the file descriptor number used to represent the Standard Error (STDERR)?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. 2
The standard error stream is represented by file descriptor number two. Standard input is zero and standard output is one, so memorize these default numbers as they are fundamental for shell redirection and pipeline operations.
Question 137 of 225What option can be used with tail or head to specify the number of lines to display to the screen?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. -n
The dash n option specifies the exact number of lines to display when using the head or tail commands. By default, these utilities only show ten lines, so understanding this option is essential for parsing large text files or logs.
Question 138 of 225Which of the following options is used with tar to specify the filename of the tar archive?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. -f
The dash f option tells the tar command to use a specific archive file, often required when creating or extracting backups. Without it, tar defaults to using a tape device, which is rarely used on modern local file systems.
Question 139 of 225Which of the following commands could be used to connect to a remote server and execute some commands securely?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. ssh
The ssh command establishes a secure, encrypted connection to a remote server, allowing interactive command execution over the network. Telnet performs a similar function but sends data in plain text, failing modern security requirements.
Question 140 of 225Why are web browser cookies considered dangerous?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Cookies support identification and tracking of users
Cookies are considered dangerous to privacy because they support the identification and tracking of users across websites. While they do not typically exhaust disk space, their primary risk lies in silently compiling browsing habits and sensitive user data.
Question 141 of 225Which of the following is NOT a Linux desktop environment?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Dwarf
Dwarf is not a recognized Linux desktop environment, making it the correct choice for an exception question. The exam expects you to easily identify major graphical environments like KDE, XFCE, and GNOME, which are all standard options.
Question 142 of 225Which Linux file type holds a list of files rather than actual data?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Directories
Directories act as a special file type that contains a structured list of other files and subdirectories rather than raw data. Regular files hold the actual data, while special files represent hardware devices or sockets.
Question 143 of 225Which of the following can be used to represent the letters A through Q using only lowercase letters?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. [a-q]
The bracket expression [a-q] matches any single lowercase letter from a through q. Watch out for ranges like [a-qA-Q] which mixes cases, as the prompt specifically asks for lowercase letters only.
Question 144 of 225What is the main difference between the desktop environments of Windows/Mac OS and Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Windows/Mac OS each have an inseparable desktop environment while Linux desktop environments are modular
Windows and macOS have inseparable desktop environments, while Linux desktop environments are modular. This modularity allows users to mix and match components according to their preferences.
Question 145 of 225What is the maximum amount of memory accessible by a 32-bit operating system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. 4 GB
A 32-bit operating system can theoretically access a maximum of 4GB of memory. If you need to utilize more memory, you must install a 64-bit version of the operating system.
Question 146 of 225Which command shows who is logged on and what they are doing in the system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. w
The w command shows exactly who is logged in and lists their current running processes. Do not confuse this with the who command, which merely lists the logged in users without showing their active system activity.
Question 147 of 225Which file on a Linux system is modified to set the maximum number of days before a password must be changed?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /etc/shadow
The slash etc slash shadow file stores secure user account data, including password aging details like maximum days between changes. While passwd holds basic user info, shadow manages the actual password policies and restrictions.
Question 148 of 225Which of the following statements is TRUE for a Linux distribution used in an enterprise environment?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. These distributions contain software versions that have proven to be stable even when they are not the most recent version of the software available
Enterprise distributions prioritize proven software stability over offering the newest features or package versions. Bleeding edge options risk downtime and business interruptions, so administrators rely on older, heavily tested releases.
Question 149 of 225You have downloaded a large Linux distribution as an ISO that requires 3 GB of installation files. You want to perform the install from an optical drive. What type of disc should you burn the ISO file onto?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. DVD
A standard single-layer DVD provides about four point seven gigabytes of storage capacity, which easily accommodates a three-gigabyte installation image. A standard CD only holds around seven hundred megabytes, making it far too small for modern Linux distribution ISO files.
Question 150 of 225What is used as a placeholder for an unknown value in a script, and its value is then calculated or determined when the script is executed?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Variable
A variable acts as a placeholder for dynamically determined values, which are evaluated when the script runs. Functions and pipelines handle execution control or data flow rather than storing specific unknown string values.
Question 151 of 225Which of the following is a piece of software that listens for network requests and responds to them?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Apache
Apache HTTPD is a web server daemon that listens for network requests and responds to them. The other choices are entirely fictional software applications designed to act as distractors.
Question 152 of 225You have just installed a wireless network adapter in your Linux system, but you cannot connect to the wireless network. What is most likely the problem?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. You didn't install the right driver for the device
If a newly installed wireless adapter fails to connect, you likely did not install the right driver. Linux distributions do not always include proprietary drivers out of the box for every hardware device.
Question 153 of 225Which of the following files contains a mapping of IP addresses to URLs locally on your Linux machine?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. /etc/hosts
The slash etc slash hosts file maps IP addresses to host names locally on the machine. Technically it maps to host names rather than full URLs, but it is the only correct local resolution file provided here.
Question 154 of 225In computer networks, what does DHCP stand for?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Dynamic Host Configuration Protocol
The acronym DHCP stands for Dynamic Host Configuration Protocol, which dynamically assigns IP addresses to network devices. This automated assignment prevents administrators from having to manually configure network settings on every single machine.
Question 155 of 225What key do you press to quit reading a man page?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Q
Pressing the letter q quits the man page viewer because it runs inside the less pager. Remember this exam cue, as other keys like escape will not exit the interface.
Question 156 of 225Which command searches manual page names and descriptions for a user-supplied keyword?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. apropos
The apropos command searches manual page names and descriptions for a keyword. This is highly useful when you know the function you need but cannot recall the exact command name.
Question 157 of 225Which of the following is TRUE about open source software?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Open source software is a prominent example of open collaboration
Open source software is developed in a collaborative public manner, serving as a prominent example of open collaboration. While often free of charge, the software is not always free, as vendors can still charge for support services or enterprise features.
Question 158 of 225Which keyboard shortcut allows pasting a previously copied highlighted text while working in the command line terminal?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. CTRL + SHIFT + V
Pressing Control Shift V pastes copied text into most graphical terminal emulators. Be careful with Control V, because the shell intercepts it as a literal control character insertion rather than handling the standard paste operation.
Question 159 of 225Which command shows all of the directories that the shell searches for programs?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. echo $PATH
The echo command combined with the PATH variable displays all the directories the shell searches for executable programs. The system checks these directories sequentially when you type a command without providing its full file path.
Question 160 of 225Where does Linux store most of its log files in the directory tree?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. /var/log
The system stores the vast majority of log files within the slash var slash log directory. This standard location centralizes logs from the kernel and various applications, making administration and troubleshooting much easier.
Question 161 of 225Which type of IP addresses uses a dotted-decimal notation?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. IPv4
IPv4 addresses use dotted decimal notation, such as one nine two dot one six eight dot one dot one. In contrast, IPv6 utilizes hexadecimal numbers separated by colons to accommodate its much larger address space.
Question 162 of 225Which command is used to print the last 10 lines of a file to the display?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. tail
The tail command prints the last few lines of a file, showing ten by default. The head command shows the beginning, while cat and less display the entire file.
Question 163 of 225Which command is used to print one page of text to the screen at a time?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. less
The less command acts as a pager, displaying output one screen at a time. Unlike cat, it allows scrolling backward and forward through large text files interactively.
Question 164 of 225Which of the following characters in a shell prompt indicates the shell is running with root privileges?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. #
The hash sign indicates the shell is operating with root privileges. The dollar sign denotes a standard unprivileged user, which is the primary visual cue tested.
Question 165 of 225Which of the following is a Debian-based computer operating system for Raspberry Pi?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Raspbian
Raspbian is the Debian-based operating system highly optimized for the Raspberry Pi hardware. While Ubuntu is also Debian-based, it is a general-purpose distribution and not tailored specifically for Raspberry Pi.
Question 166 of 225What command would you use to get comprehensive documentation about any command in Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. man command
The man command opens the system manual pages, providing comprehensive documentation for commands. While other commands like help exist, man is the standard utility tested for viewing full documentation.
Question 167 of 225What command should be used to display the permissions for every file in the current directory?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. ls -la
The ls command with the dash l and dash a flags displays permissions for all files. The dash a flag ensures hidden files are shown, while the dash l flag provides the detailed permission strings.
Question 168 of 225Which software handles the installation and removal of software on Debian and Ubuntu?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. apt
APT is the package manager used to install and remove software on Debian and Ubuntu systems. RPM and YUM are used by Red Hat based distributions, making them incorrect for Debian.
Question 169 of 225What command would you use to create a symbolic link in Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. ln -s
The ln -s command creates a symbolic link, which acts as a shortcut pointing to the original file's path. Avoid the standard ln command without the dash s flag, because that creates a hard link rather than a soft link.
Question 170 of 225Where are the passwords stored for users on a Linux system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /etc/shadow
The /etc/shadow file stores the hashed passwords and password aging data for user accounts. The /etc/passwd file is a common distractor, but it is world-readable and only stores the placeholder character, not the actual password hash.
Question 171 of 225Which UID is usually used to represent the root user on a Linux system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. 0
The root superuser account is always assigned the user ID of zero, granting complete administrative privileges. Normal user accounts typically start at one thousand or higher, while system processes use lower identifier numbers.
Question 172 of 225How would you represent rwxr-xr– in octal notation?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. 754
The permissions rwxr-xr– convert to the octal value 754 by adding the numeric values for each triad. Add four for read, two for write, and one for execute, mapping the sums sequentially to the owner, group, and others.
Question 173 of 225Which of the following is the dmesg command used for?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. To show the kernel log messages
The dmesg command reads and prints the kernel ring buffer, which contains hardware initialization and driver messages. Do not confuse this with syslog, which aggregates broader system and daemon messages from various background services.
Question 174 of 225Which of the following software packages is a mail server?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Postfix
Postfix is a mail transfer agent responsible for routing and delivering email over a network. Distractors like Thunderbird and Apache fail because they are an email client and a web server, respectively.
Question 175 of 225Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. tar -cf work.tar ./work/
The -c option creates a new archive, while -f specifies the output file. Watch for the correct order, as tar requires the exact filename immediately following the -f flag.
Question 176 of 225Which command will display the last line of the file document.txt?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. tail -n 1 document.txt
The tail command displays the end of a file, and -n 1 specifies exactly one line. A bare tail defaults to ten lines, and last shows login history, not file text.
Question 177 of 225Which of the following commands is used to extract files from a zip archive?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. unzip
The unzip command extracts files from a ZIP archive by default. Remember that tar handles uncompressed or natively compressed tarballs, making it the wrong tool for ZIP files.
Question 178 of 225Which of the following options is used with tar to display the tar command's progress during execution?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. -v
The -v option enables verbose mode, listing files as they are processed. While -c and -f are required to create archives, they operate silently without -v.
Question 179 of 225Which of the following is used to untar a tar archive file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. tar -x
The tar command combined with -x extracts contents from an archive. Avoid choosing untar, since it is not a standard Linux utility.
Question 180 of 225Which of the following is an open-source relational database management system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. MySQL
MySQL is a widely used open-source relational database management system. The other options are generic distractor terms and do not represent actual database software on the Linux platform.
Question 181 of 225What is a pre-integrated, self-contained system made by combining a software application (e.g., server software) with just enough operating system to run optimally on industry-standard hardware or a virtual machine?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Virtual appliance
A virtual appliance is a pre-integrated virtual machine image with just enough operating system to run a specific application. A standard virtual server typically includes a full operating system rather than a minimal one.
Question 182 of 225Which of the following can you NOT install Linux on?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Smartcard
Linux requires actual processing power and storage, making a basic smartcard an impossible target for installation. Remember that Linux is incredibly flexible, running on everything from desktop computers to cloud servers and mobile devices.
Question 183 of 225What permissions would be represented by the octal 517?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. r-x–xrwx
The octal value 517 translates to read and execute for the owner, execute for the group, and full permissions for others. Remember to map each digit to the owner, group, and others, calculating the read, write, and execute values.
Question 184 of 225Which of the following information is provided in the default output of the who command?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Username, Terminal Identifier, Login Date and Time
The who command outputs the username, terminal line, and login date and time for currently active sessions. A common distractor includes sensitive data like passwords, but standard system utilities never display hashed passwords in plain text.
Question 185 of 225Which of the following is used to redirect the standard output of a command to a file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. 1>
Standard output is file descriptor one, so 1> redirects it to a file. Option two handles standard error, which is a common distractor for testing redirection proficiency.
Question 186 of 225Typing $ followed by pressing which key twice, in quick succession, will list all of the variables?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. TAB
Pressing the tab key twice triggers shell completion, listing all variables after a dollar sign. This powerful shortcut dynamically reveals available system and user variables.
Question 187 of 225To see all the variables that are in the user's environment, use the _______ command.
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. printenv
The printenv command displays the values of environment variables. Remember that ping is a network utility, and processvar is a fabricated distractor term.
Question 188 of 225In order to rename the directory ~/documents/letters to ~/documents/archive, which of the following commands should be used?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. mv ~/documents/letters ~/documents/archive
The mv command is used to rename or move files and directories in Linux. The cp command would merely create a copy, leaving the original directory intact.
Question 189 of 225Which information is used by a computer to connect to a typical local area network?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. IP address
An IP address is the fundamental information required for a computer to communicate on a typical local area network. Without a valid IP address, the device cannot properly route traffic or interact with other machines on that network.
Question 190 of 225Which of the following is NOT an example of a Linux software package manager?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. abc
The dpkg, yum, and rpm tools are all package managers used to install, update, and manage software on Linux distributions. Recognizing acronyms like yum and rpm is crucial, while abc is a fabricated distractor that stands out immediately.
Question 191 of 225How can the normal output from a command be written to a file while discarding the error output?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. command >file 2>/dev/null
Using 2 greater than dev null redirects standard error to a black hole, effectively discarding it. Appending greater than file ensures that normal standard output is successfully captured and written to your target text file.
Question 192 of 225Which of the following is a series of small single-board computers developed to promote the teaching of basic computer science in schools and developing countries?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Raspberry Pi
Raspberry Pi is a widely recognized series of small single-board computers heavily used in education and do-it-yourself projects. The other three options are fictitious distractors playing on the recognizable fruit-based naming convention.
Question 193 of 225Which symbol is used to prefix a variable?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. $
The dollar sign is used to reference and expand the value of a variable in the shell. The ampersand typically backgrounds processes, while percent and at symbols have different contextual uses but do not prefix standard shell variables.
Question 194 of 225Which option of the command history can be used to clear the user's history?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. -c
The history command with the dash c flag clears the current user session command history from memory. The other listed flags and strings are either syntactically incorrect or simply made up for the Linux command line.
Question 195 of 225Which command lists all files in the current directory that start with a capital letter?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. ls [A-Z]*
Using bracket notation with an asterisk correctly leverages shell globbing to match any file starting with an uppercase letter. Simply typing ls with a range and no brackets will cause the shell to look for literal characters instead of matching patterns.
Question 196 of 225Which command shows if /usr/bin is in the current shell search path?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. echo $PATH
Echoing the PATH variable directly outputs the colon-separated directories the shell searches for executables. Reading the PATH variable with cat would attempt to open files named by those directories instead of displaying the variable itself.
Question 197 of 225Which of the following commands can be used to determine the time of the last login of a given user?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. last
The last command reads from a log file and prints the entries of successful login attempts made by previous users. For the exam, remember that history only lists shell commands, while last actually details user login sessions.
Question 198 of 225Which of the following outputs might be displayed when executing the command last?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. root tty2 Wed Sep 29 21:11 – 21:11 (00:00)
The last command reads from a log file and prints the entries of successful login attempts made by users in the past. The most recent logged in user entry appears on top, showing the terminal, timestamp, and duration.
Question 199 of 225Which command adds the new user tux and creates the user's home directory with default configuration files?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. useradd -m tux
The useradd command paired with the m option creates the user home directory and copies default configuration files. Watch out for invalid commands like usercreate, which act as simple distractors on the exam.
Question 200 of 225Which command is used to provide information about a user's identity, including the names of the groups that the user belongs to?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. id
Only the id command provides immediate information about user identity, including UID and all associated group names. While you could manually parse system files, the id command instantly displays the required combined information.
Question 201 of 225What is a special permission bit set on a file or a directory that lets only the owner of the file/directory or the root user delete or rename the file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Sticky bit
A sticky bit is a special permission set on a directory that lets only the file owner or root user delete or rename files. This is commonly seen on shared directories like slash tmp to prevent users from deleting files.
Question 202 of 225Which network device serves as the gateway between your internal network and external network?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Router
A router is a device used to connect two networks, such as your internal network and an external network. Routers typically serve as your default gateway, whereas switches and hubs only connect devices locally.
Question 203 of 225What is the command that will show system boot time messages?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. dmesg
The dmesg command prints the message buffer of the kernel. This output typically contains messages produced by device drivers that occur during system startup and boot, making it the standard tool for reviewing hardware events.
Question 204 of 225Which type of files is an important part of diagnosing problems with daemons?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Log files
Log files record system events and daemon activities, making them the primary resource for troubleshooting background service issues. Because daemons rarely display errors directly on your terminal, reviewing these logs is essential for finding root causes.
Question 205 of 225Your system is having an issue that you think is being caused by a faulty device driver. Which of the following commands should you use to print the message buffer of the kernel?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. dmesg
The dmesg command reads and prints the kernel ring buffer, which contains hardware initialization and device driver messages. If you suspect a driver fault during boot, running dmesg is your immediate diagnostic step.
Question 206 of 225Where is the BIOS located?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Motherboard
The BIOS is firmware stored on a chip physically located on the computer motherboard. It initializes hardware during boot, serving as a bridge before the operating system loads from your storage drive.
Question 207 of 225What does the grep command allow a user to do?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Search for files that contain a specified string
The grep utility performs global searches using regular expressions across plain text data sets. It acts as a powerful filter, allowing you to quickly extract matching lines from command output or files.
Question 208 of 225Which option can be used to redirect the errors of a command to a specified file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. 2>
File descriptor 2 represents standard error, so using 2 greater than sends those error messages into a specified file. File descriptor 1 handles standard output, making it the strongest distractor if you mix the streams.
Question 209 of 225To determine if the last command run on a system was successful, which command should be executed?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. echo $?
The dollar sign followed by a question mark expands to the exit status of the most recently executed foreground pipeline. Remember that an exit status of zero indicates success, while any non-zero value indicates an error.
Question 210 of 225How would you represent r-xrw-r– in octal notation?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. 564
Read equals four, write equals two, and execute equals one. Adding these values gives five for the first set, six for the second, and four for the third, resulting in an octal mode of five six four.
Question 211 of 225Which of the following is an example of globbing?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. ls /etc/*.txt
Globbing uses wildcard characters like the asterisk to match multiple filenames. The other options demonstrate output redirection and piping, which manage data streams rather than expand file patterns.
Question 212 of 225Which of the following is the core computer program with complete control over everything in the system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Kernel
The kernel is the core component of the operating system that directly manages hardware resources. It acts as a bridge between applications and the physical data processing hardware.
Question 213 of 225Which command launches the web browser Firefox from the command line?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. firefox
Typing the application name at the prompt launches the graphical program if it resides in your path. The alternative choices are not valid Linux commands for starting graphical software.
Question 214 of 225Which of the following is a suite of client-server software for creating and using file hosting services?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. ownCloud
ownCloud provides the functionality to create a self-hosted file synchronization and sharing server. The other options are simply made-up distractor names designed to sound similar to popular cloud services. Recognizing common open source cloud software is key.
Question 215 of 225How can the current directory and its subdirectories be searched for the file named MyFile.xml?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. find . -name MyFile.xml
The find command starting with a dot searches the current directory and all subdirectories for a specific file name. Grep is used for searching inside file contents, not for locating files by name across the directory tree.
Question 216 of 225Which of the following is not a standard man page section heading?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Mistakes
Standard manual pages use sections like Name, Configuration, and Return Value, but they do not use a section called Mistakes. Errors are typically documented under a dedicated Errors heading, making Mistakes the correct false option.
Question 217 of 225Which file contains a list of the user's secondary groups?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. /etc/group
The slash etc slash group file contains a list of every user on the system and their secondary group memberships. Remember that primary groups are defined in slash etc slash passwd, while secondary groups are mapped here.
Question 218 of 225Which of the following statements is FALSE?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Hidden files start with a pound/hashtag.
Hidden files in Linux are denoted by a leading dot or period in their filename, not a pound sign. Remember that Linux file extensions are mostly arbitrary, whereas the leading dot actively hides the file from standard directory listings.
Question 219 of 225Which of the following are two types of output messages?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Standard Output and Standard Error messages
Standard output and standard error are the two default output streams generated by command line operations. Standard output captures successful results, while standard error isolates diagnostic messages and failures.
Question 220 of 225What does the redirection operator <> do?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Causes the specified file to be used for both standard input and standard output
The angle bracket syntax opens the specified file for both reading and writing simultaneously. This behavior differs from standard input redirection, which only reads content from the designated file.
Question 221 of 225Which command to use to show which shell is being used?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. echo $SHELL
The shell environment stores the path to your default shell in the capital S variable. Using the echo command prints this value, while the other suggested commands do not exist.
Question 222 of 225Which of the following is NOT one of the core technologies of the World Wide Web?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Browser
Hyper Text Markup Language, Cascading Style Sheets, and JavaScript are the three foundational languages of the web. A browser is an application used to render these languages, not a core technology itself.
Question 223 of 225Which command can be used to display the command line history for a given user?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. history
The history command is used to display the command line history for the current user. While the command alone does not clear the history, it is the correct tool for viewing past commands, unlike the clear command which simply wipes the screen.
Question 224 of 225What is the correct statement to be used for comparison in a Linux shell script?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. if [ $x -gt $y ]
The test command evaluates conditional expressions, and the bracket syntax is a common shorthand for this. Without the brackets, the shell attempts to run the variable value as a command, which causes an error.
Question 225 of 225The "cd" command is short for _____________.
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Change Directory
The cd command stands for change directory and is used to navigate the file system hierarchy. While there are other path commands, this is the standard utility for moving your current working location in Linux.
More free practice tests at certpunch.com and new video rounds on @CertPunch.