Linux Command Line

11 Questions | Attempts: 201
Share

SettingsSettingsSettings
Linux Quizzes & Trivia

Test your knowledge of basic Linux commands.


Questions and Answers
  • 1. 

    What command is used to copy?

    • A.

      Cp

    • B.

      Copy

    • C.

      Mv

    • D.

      All of the above

    Correct Answer
    A. Cp
  • 2. 

    What command is used to show what is in a directory?

    • A.

      Cd

    • B.

      Sd

    • C.

      Chmod

    • D.

      Ls

    Correct Answer
    D. Ls
  • 3. 

    Which of the following commands will list all files, in long format, with human readable file sizes, along with their inode numbers?

    • A.

      Ls -lt

    • B.

      Ls -lahi

    • C.

      Ls -lah

    • D.

      Ls -t

    Correct Answer
    B. Ls -lahi
  • 4. 

    What command would you use to change to the public_html folder for the user jprescott?

    • A.

      A) cd ~/public_html

    • B.

      B) cd public

    • C.

      C) cd /home/jprescott/public_html

    • D.

      Both A and C

    Correct Answer
    C. C) cd /home/jprescott/public_html
  • 5. 

    What would the following command do? # chmod 755 index.html

    • A.

      Modify index.html to be 755 bytes

    • B.

      Change the permissions of index.html to rwxr-xr-x

    • C.

      Change the permissions of index.html to r--r--r--

    • D.

      It would do nothing.

    Correct Answer
    B. Change the permissions of index.html to rwxr-xr-x
  • 6. 

    What do the permissions rwxr-wr-w represent numerically?

    • A.

      755

    • B.

      644

    • C.

      000

    • D.

      1 bagillion in hex

    Correct Answer
    A. 755
  • 7. 

    What command is used to change the ownership of a file.

    • A.

      Changgrp

    • B.

      Chanown

    • C.

      Chown

    • D.

      Chmod

    Correct Answer
    C. Chown
  • 8. 

    Which command is used to locate files/directories in the file system?

    • A.

      Look

    • B.

      Find

    • C.

      Get

    • D.

      Mkdir

    Correct Answer
    B. Find
  • 9. 

    What does chattr do?

    • A.

      Allows you to change the secondary attributes on the files and folders making them immutable and unappendable

    • B.

      Runs the chat program

    • C.

      Prints all files on the current screen

    • D.

      Not a valid command.

    Correct Answer
    A. Allows you to change the secondary attributes on the files and folders making them immutable and unappendable
  • 10. 

    Which command shows a list of open files, directories, libraries, etc that is currently open on the system?

    • A.

      Ls

    • B.

      Show

    • C.

      Lsof

    • D.

      Grep

    Correct Answer
    C. Lsof
  • 11. 

    What command is used to search files for a pattern?

    • A.

      Find

    • B.

      Ls

    • C.

      Grep

    • D.

      Help

    Correct Answer
    C. Grep

Quiz Review Timeline +

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

  • Current Version
  • Sep 11, 2011
    Quiz Edited by
    ProProfs Editorial Team
  • Sep 11, 2011
    Quiz Created by
    Jimmyjam808
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.