Skip to content

010-160 Linux Essentials v1.6 Practice Questions

Prepare for 010-160 with more than an answer.

285 questions in the full set20 sample questionsUpdated Jan 26, 2026

Unlock the full exam and previous versions

  • v1Standard 285 questions Current
  • 010-150Legacy Entry Level Linux Essentials Certificate of Achievement 240 questions Locked
Exam fee
$120 USD
Level
Entry Level
Valid for
Lifetime (no expiration)
Domains covered on the exam 5
  1. The Linux Community and a Career in Open Source18%
  2. Finding Your Way on a Linux System23%
  3. The Power of the Command Line23%
  4. The Linux Operating System15%
  5. Security and File Permissions18%
  1. 1

    What is true about a recursive directory listing?

    Show answer details

    Correct answer: A

    The -a flag with ls command displays all files including hidden files that start with a dot (.). Hidden files are typically configuration files and system files that are not shown by default. The -a option stands for 'all' and reveals files like .bashrc, .profile, and .ssh directories. Other options like -f, -h, and -d serve different purposes and do not specifically show hidden files.

  2. 2

    Which of the following devices represents a hard disk partition?

    Show answer details

    Correct answer: D

    vi (and its improved version vim) is a powerful modal text editor that comes pre-installed on virtually all Linux and Unix systems. It operates in different modes (command, insert, visual) and provides extensive text editing capabilities without requiring a graphical interface. Unlike gedit which needs GUI, nano which may not be installed everywhere, or joe which is less common, vi/vim is guaranteed to be available on any Linux system.

  3. 3

    Which of the following outputs comes from the command free?

    • Option exhibit
    • Option exhibit
    • Option exhibit
    • Option exhibit
    • Option exhibit
    Show answer details

    Correct answer: E

    The execute permission (x) on a directory allows users to traverse through the directory and access files within it. Without execute permission, even if you have read permission on the directory, you cannot cd into it or access files inside. Execute permission on directories is fundamentally different from files - it controls directory traversal rather than file execution. Read, write, and append permissions serve different functions for directory access.

  4. 4

    The current directory contains the following file:

    -rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh

    Given that the file is a valid shell script, how can this script be executed? (Choose two.)

    Show answer details

    Correct answer: D, E

    dpkg and apt-get are both Debian-based package management tools. dpkg is the low-level package manager that directly installs, removes, and manages .deb packages, while apt-get is a higher-level tool that handles dependencies, downloads packages from repositories, and uses dpkg underneath. Both are essential components of Debian/Ubuntu package management. yum is for Red Hat systems, rpm is for RPM-based systems, and emerge is for Gentoo.

    dpkg and apt-get are both Debian-based package management tools. dpkg is the low-level package manager that directly installs, removes, and manages .deb packages, while apt-get is a higher-level tool that handles dependencies, downloads packages from repositories, and uses dpkg underneath. Both are essential components of Debian/Ubuntu package management. yum is for Red Hat systems, rpm is for RPM-based systems, and emerge is for Gentoo.

  5. 5

    An administrator runs a script, backup.sh, that produces both regular output to standard output and error messages to standard error. They want to save the regular output to backup.log and completely discard all error messages. Which command will achieve this?

    graph TD A[backup.sh] -->|stdout| B[backup.log] A -->|stderr| C[/dev/null]

    Show answer details

    Correct answer: B

    This command explicitly redirects file descriptor 1 (stdout) to backup.log and file descriptor 2 (stderr) to /dev/null. /dev/null is a special device file that discards all data written to it. The 1> is optional as > defaults to redirecting stdout, but its inclusion makes the command very clear. 2>&1 would redirect stderr to the same place as stdout (the log file), which is not the desired outcome.

  6. 6

    Which of the following examples shows the general structure of a for loop in a shell script?

    Show answer details

    Correct answer: C

    The correct syntax for a for loop in shell scripting uses the format 'for variable in list; do commands; done'. This structure includes the loop variable (file), the list to iterate over (*.txt), the do keyword to start the command block, and done to end the loop. The other options show incorrect syntax: using => instead of do, parentheses instead of do/done, exec which is for find command, and foreach which is not valid shell syntax.

  7. 7

    Which of the following commands output the content of the file Texts 2.txt? (Choose two.)

    Show answer details

    Correct answer: A, B

    File names containing spaces must be properly quoted or escaped to prevent the shell from interpreting them as separate arguments. Single quotes around the entire filename ('Texts 2.txt') preserve the space literally, while backslash escaping (Texts\ 2.txt) escapes the space character. The other options are invalid: double dashes, square brackets, and missing escape characters will cause command failures.

    File names containing spaces must be properly quoted or escaped to prevent the shell from interpreting them as separate arguments. Single quotes around the entire filename ('Texts 2.txt') preserve the space literally, while backslash escaping (Texts\ 2.txt) escapes the space character. The other options are invalid: double dashes, square brackets, and missing escape characters will cause command failures.

  8. 8

    Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?

    Show answer details

    Correct answer: B

    The tar command uses '-c' to create an archive and '-f' to specify the output filename, making 'tar -cf work.tar ./work/' the correct syntax. The -c flag means create, and -f specifies the archive file name. Other options use invalid flags like -new or -create (which don't exist), incorrect syntax with redirections, or wrong file extensions like .tgz without compression flags.

  9. 9

    Where is the operating system of a Raspberry Pi stored?

    Show answer details

    Correct answer: C

    Raspberry Pi systems boot from a removable SD card that contains the operating system, bootloader, and file system. This design allows easy OS installation, backup, and swapping between different configurations. Unlike traditional computers, Raspberry Pi does not have internal storage, IDE buses, or built-in flash memory for the OS. The GPIO pins are for hardware interfacing, not storage.

  10. 10

    Which of the following tar options handle ocmpression? (Choose two.)

    Show answer details

    Correct answer: B, D

    The tar command supports compression through the -z flag (gzip compression) and -j flag (bzip2 compression). These flags automatically compress the archive during creation or decompress during extraction. The -z option is faster but provides less compression, while -j provides better compression but takes more time. Options like -bz, -g, and -z2 are not valid tar compression flags.

    The tar command supports compression through the -z flag (gzip compression) and -j flag (bzip2 compression). These flags automatically compress the archive during creation or decompress during extraction. The -z option is faster but provides less compression, while -j provides better compression but takes more time. Options like -bz, -g, and -z2 are not valid tar compression flags.

Create an account to continue.