010-160 Sample Questions & Answers
Finding your way around the system and the archiving, searching and scripting power of the command line tie for the top weight, alongside the open source community and major applications, choosing an OS and hardware, and file permissions.
Launch the full 010-160 simulator →Showing 10 of 20 free samples.
- Question 1
Which of the following commands adds the directory /new/dir/ to the PATH environment variable?
Show answer & explanation
Correct answer: E
To prepend a directory to the PATH environment variable, use 'export PATH=/new/dir:/Users/umar/.codeium/windsurf/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.4.0/bin:/Users/umar/.cargo/bin:/Users/umar/.local/bin:/Users/umar/.cargo/bin:/Users/umar/.local/bin:/opt/homebrew/bin:/Users/umar/go/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/umar/.nvm/versions/node/v22.0.0/bin:/Users/umar/miniconda3/bin:/Users/umar/miniconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/share/dotnet:/Users/umar/.dotnet/tools:/Users/umar/.cargo/bin:/Users/umar/.local/bin:/Users/umar/.local/bin' which adds the new directory at the beginning of the existing PATH. The export command makes the variable available to child processes, and the colon separates PATH entries. Other options have syntax errors: missing export, incorrect variable assignment syntax, or using semicolons instead of colons as separators.
- Question 2
Which of the following commands puts the lines of the file data.csv into alphabetical order?
Show answer & explanation
Correct answer: B
The sort command arranges lines of text in alphabetical order by default, making 'sort data.csv' the correct answer for sorting a CSV file. The sort command reads the input file and outputs the lines in sorted order. Other options are invalid: 'alpha', 'order', and 'sortlines' are not standard Linux commands for sorting file contents.
- Question 3
A user is currently in the directory /home/user/downloads/ and runs the command
Is ../Documents/
Assuming it exists, which directory’s content is displayed?
Show answer & explanation
Correct answer: D
When in /home/user/downloads/, the command 'ls ../Documents/' uses the relative path '..' to go up one directory level to /home/user/, then navigates to the Documents subdirectory, displaying the contents of /home/user/Documents/. The '..' notation represents the parent directory, making this relative path navigation from the current working directory.
- Question 4
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?
Show answer & explanation
Correct answer: E
Octal permission 600 represents read and write permissions for the file owner only (rw-------). The first digit (6) sets owner permissions: 4 (read) + 2 (write) = 6. The remaining digits (00) give no permissions to group and others. This is commonly used for private files like SSH keys or configuration files that should only be accessible by the owner.
- Question 5
Which of the following statements is true about Free Software?
Show answer & explanation
Correct answer: B
The cat command displays the entire content of text files to standard output, making it useful for viewing small to medium-sized files. Unlike head or tail which show partial content, cat shows the complete file from beginning to end. It can also concatenate multiple files when given multiple arguments. Other options like showing file size, permissions, or modification dates are handled by different commands like ls.
- Question 6
What is a Linux distribution?
Show answer & explanation
Correct answer: B
The mkdir command creates new directories in the Linux file system. It stands for 'make directory' and can create single directories or multiple nested directories when used with the -p flag. Other commands serve different purposes: touch creates empty files, md is a DOS command not available in Linux, and creat is not a standard Linux command for directory creation.
- Question 7
What is the return value of a shell script after successful execution?
Show answer & explanation
Correct answer: B
Manual page section 5 contains documentation for file formats and configuration files. This includes system configuration files, data formats, and file structure specifications. Section 1 contains user commands, section 2 contains system calls, section 3 contains library functions, and section 8 contains administrative commands. The man page sections help organize documentation by content type.
- Question 8
A directory contains the following files:a. txt b.txt c. cavWhat would be the output of the following shell script? for file in *.txt do echo $file done
Show answer & explanation
Correct answer: E
To make a file system on device /dev/sdb1 accessible, it must be mounted to a directory in the existing file system hierarchy using the mount command. Mounting connects the device's file system to a mount point (directory) so files can be accessed. Unlike formatting which prepares the device, or partitioning which divides space, mounting makes the existing file system accessible for read/write operations.
- Question 9
Which of the following is a protocol used for automatic IP address configuration?
Show answer & explanation
Correct answer: E
When the root filesystem becomes read-only, the system cannot write temporary files, logs, or updates, effectively preventing normal operation and user modifications. This typically occurs due to filesystem errors, hardware issues, or emergency remount operations. A read-only root filesystem blocks critical system functions like logging, package installation, and configuration changes, making the system largely unusable for normal operations.
- Question 10Select 2
What are the differences between a private web browser window and a regular web browser window? (Choose three.)
Show answer & explanation
Correct answers: B, D
ext4 and XFS are both native Linux filesystems designed for modern Linux systems. ext4 is the fourth extended filesystem, offering journaling, large file support, and backward compatibility. XFS is a high-performance 64-bit journaling filesystem originally from SGI. Both are commonly used on Linux servers and workstations. NTFS is Windows-native, HFS+ is Mac-native, and FAT32 is a legacy filesystem with limited capabilities.
ext4 and XFS are both native Linux filesystems designed for modern Linux systems. ext4 is the fourth extended filesystem, offering journaling, large file support, and backward compatibility. XFS is a high-performance 64-bit journaling filesystem originally from SGI. Both are commonly used on Linux servers and workstations. NTFS is Windows-native, HFS+ is Mac-native, and FAT32 is a legacy filesystem with limited capabilities.
Ready for the real thing?
The full 010-160 simulator has every exam-style question, timed mode, and instant scoring.