Basic Linux Commands Quiz: Test!

36 Questions | Attempts: 2273
Share

SettingsSettingsSettings
Basic Linux Commands Quiz: Test! - Quiz

Are you familiar with Linux Commands? Linus is an entire group of open sources Unix operating systems that are based on Linux Kernel. Linux commands may seem intimidating at first if you are not used to using the terminal. However, with concentration and dedication, they are relatively easy to learn. There are many commands for performing operations on the Linux system. Find out how much you know about Linux Commands with a little help from this quiz.


Questions and Answers
  • 1. 
    Ls
    • A. 

      Change directory

    • B. 

      Format listing with hidden files

    • C. 

      Directory listing

  • 2. 
    Ls -al
    • A. 

      Create or update file

    • B. 

      Change directory

    • C. 

      Formatted listing with hidden files

  • 3. 
    Pwd
    • A. 

      Create or update file

    • B. 

      Show current directory

    • C. 

      Delete file

  • 4. 
    Cd dir
    • A. 

      Change directory to dir

    • B. 

      Rename file

    • C. 

      Make directory

  • 5. 
    cd
    • A. 

      Change to end

    • B. 

      Change to home

    • C. 

      Update file

  • 6. 
    Mkdir dir
    • A. 

      Create file

    • B. 

      Create directory dir

    • C. 

      Modify directory

  • 7. 
    Rm file
    • A. 

      Delete file

    • B. 

      Move file

    • C. 

      Update file

  • 8. 
    Rm -r dir
    • A. 

      Delete file

    • B. 

      Update directory

    • C. 

      Delete directory dir

  • 9. 
    Rm -f file
    • A. 

      Force remove file

    • B. 

      Remove file

    • C. 

      Remove directory

  • 10. 
    cp file1 file2
    • A. 

      Copy file1 to file 2

    • B. 

      Move file1 to file2

    • C. 

      Delete file1 to file 2

  • 11. 
    cp -r dir1 dir2
    • A. 

      Copy file 1 to file 2

    • B. 

      Delete files 1 and 2

    • C. 

      Copy dir1 to dir 2, create dir 2 if it doesn't exist

  • 12. 
    mv file1 file2
    • A. 

      Rename or move file 1 to file 2

    • B. 

      Delete file 1 and file 2

    • C. 

      Copy file 1 to file 2

  • 13. 
    touch
    • A. 

      Delte file

    • B. 

      Move file

    • C. 

      Create or update file

  • 14. 
    more file
    • A. 

      Show top 10 lines

    • B. 

      Show bottom 10 lines

    • C. 

      Show contents of files

  • 15. 
    head file
    • A. 

      Show contents of files

    • B. 

      Show top 10 lines

    • C. 

      Show bottom 10 lines

  • 16. 
    tail file
    • A. 

      Show top 10 lines

    • B. 

      Show bottom 10 lines

    • C. 

      Show contents of files

  • 17. 
    ps
    • A. 

      Display date and time

    • B. 

      Show months calendar

    • C. 

      Display currenty active processes

  • 18. 
    top
    • A. 

      Display all running processes

    • B. 

      Display currenty active processes

    • C. 

      Kill process

  • 19. 
    kill
    • A. 

      Kill process

    • B. 

      Display currenty active processes

    • C. 

      Display all running processes

  • 20. 
    kill all proc
    • A. 

      Display all running processes

    • B. 

      Kill process

    • C. 

      Kill all processes named proc

  • 21. 
    date
    • A. 

      Show month calendar

    • B. 

      Show date

    • C. 

      Show date and time

  • 22. 
    cal
    • A. 

      Calculator

    • B. 

      Show months calendar

    • C. 

      Show date

  • 23. 
    uptime
    • A. 

      Show time

    • B. 

      Show current uptime

    • C. 

      Show date

  • 24. 
    w
    • A. 

      Who is online

    • B. 

      Who are you logged in as

    • C. 

      When is the date

  • 25. 
    whoami
    • A. 

      Who is online

    • B. 

      Who is the user

    • C. 

      Who are you logged in as

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.