Linux Commands Assessment Test

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Cripstwick
C
Cripstwick
Community Contributor
Quizzes Created: 636 | Total Attempts: 733,305
Questions: 10 | Attempts: 242

SettingsSettingsSettings
Linux Commands Assessment Test - Quiz

Linux is one of the most wisely used operating systems today. Take this intelligent assessment test to evaluate your knowledge of Linux commands.


Questions and Answers
  • 1. 

    Which of these commands means to display used and available disk space? 

    • A.

      Du

    • B.

      Df

    • C.

      Date

    • D.

      Dg

    Correct Answer
    B. Df
    Explanation
    The command "df" is used to display used and available disk space.

    Rate this question:

  • 2. 

    Which of these commands is used to know what files are there in the directory you are in? 

    • A.

      Is

    • B.

      Cd

    • C.

      Rm

    • D.

      Cp

    Correct Answer
    A. Is
    Explanation
    The "Is" command is used to know what files are there in the directory you are in. It lists all the files and directories present in the current directory.

    Rate this question:

  • 3. 

    Which of these commands is used to create a file? 

    • A.

      Help

    • B.

      Touch

    • C.

      Man

    • D.

      Cp

    Correct Answer
    B. Touch
    Explanation
    The touch command is used to create a file in a Unix-like operating system. It updates the access and modification times of an existing file or creates a new file if it doesn't exist. Therefore, touch is the correct command to create a file.

    Rate this question:

  • 4. 

    Which of these commands means to switch to another user account? 

    • A.

      Ssh

    • B.

      Su

    • C.

      Sa

    • D.

      Sua

    Correct Answer
    B. Su
    Explanation
    The command "su" is used to switch to another user account in a Unix-like operating system. It allows a user to temporarily become another user, typically with elevated privileges. This command is often used by system administrators to perform tasks that require administrative access.

    Rate this question:

  • 5. 

    Which of these commands displays the amount of disk space available on the file system containing each file name argument? 

    • A.

      Df

    • B.

      Date

    • C.

      Ds

    • D.

      Dfs

    Correct Answer
    A. Df
    Explanation
    The command "df" displays the amount of disk space available on the file system containing each file name argument.

    Rate this question:

  • 6. 

    Which of these commands is used to perform byte-by-byte comparison of two files? 

    • A.

      Comm

    • B.

      Cmp

    • C.

      Cp

    • D.

      Csplit

    Correct Answer
    B. Cmp
    Explanation
    The command "Cmp" is used to perform byte-by-byte comparison of two files. It compares the contents of two files and displays the first mismatched byte and its corresponding line number. This command is commonly used to check if two files are identical or to find the differences between them.

    Rate this question:

  • 7. 

    Which of these commands lets you create directories? 

    • A.

      Mkdir

    • B.

      Mkfifo

    • C.

      More

    • D.

      Mv

    Correct Answer
    A. Mkdir
    Explanation
    The correct answer is "Mkdir." This command is used to create directories in a file system. It is short for "make directory" and allows users to create new folders or directories to organize their files.

    Rate this question:

  • 8. 

    Which of these commands basically lets you locate a command? 

    • A.

      Wget

    • B.

      Who

    • C.

      Whatis

    • D.

      Which

    Correct Answer
    D. Which
    Explanation
    The "Which" command is used to locate a command in the system. It helps in finding the exact location of a command by displaying the path to the executable file. This command is particularly useful when there are multiple versions or installations of a command on the system, allowing the user to specify which version they want to use.

    Rate this question:

  • 9. 

    Which of these commands prints numbers from FIRST to LAST, in steps of INCREMENT? 

    • A.

      Seq

    • B.

      Sed

    • C.

      Scp

    • D.

      Sdiff

    Correct Answer
    A. Seq
    Explanation
    The correct answer is "Seq". Seq is a command in Unix-like operating systems that generates a sequence of numbers. By specifying the starting number (FIRST), the ending number (LAST), and the increment value (INCREMENT), the command will print the numbers in that range with the specified increment.

    Rate this question:

  • 10. 

    Which of these commands displays in output system's CPU architecture information? 

    • A.

      Lscpu

    • B.

      Lsof

    • C.

      Lshw

    • D.

      Ls

    Correct Answer
    A. Lscpu
    Explanation
    Lscpu is the correct answer because it is a command that displays detailed information about the CPU architecture of the system. It provides information such as the number of processors, cores per processor, threads per core, CPU family, model, and more. This command is commonly used in Linux systems to gather CPU-related information for troubleshooting, monitoring, or system analysis purposes.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 10, 2017
    Quiz Created by
    Cripstwick
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.