Introduction To Linux & Unix

28 Questions | Attempts: 1053
Share

SettingsSettingsSettings
Operating System Quizzes & Trivia

Test your Linux / UNIX skills. Good Luck !


Questions and Answers
  • 1. 
    Which of the following are Linux distributions? (3 correct answers)
    • A. 

      Solaris

    • B. 

      RedHat

    • C. 

      SUSE

    • D. 

      Ubuntu

  • 2. 
    AIX is made by ______
    • A. 

      Oracle

    • B. 

      Sun Microsystems

    • C. 

      IBM

    • D. 

      Microsoft

  • 3. 
    We can use Putty to connect to a Linux machine from Windows machine.
    • A. 

      True

    • B. 

      False

  • 4. 
    From my Windows PC, I can connect to multiple Linux and UNIX servers.
    • A. 

      True

    • B. 

      False

  • 5. 
    Which of the following shows user permissions while showing the contents of a directory?
    • A. 

      Ls

    • B. 

      Ls –a

    • C. 

      Ls –l

    • D. 

      Ls –ld

  • 6. 
    Which of the following options show the file type? (2 correct answers)
    • A. 

      –F

    • B. 

      –l

    • C. 

      –d

    • D. 

      –t

  • 7. 
    Which of the following commands are used to view a file? (3 correct answers)
    • A. 

      Ls

    • B. 

      Cat

    • C. 

      More

    • D. 

      Less

  • 8. 
    Which of the following will not overwrite the contents of file2? (2 correct answers)
    • A. 

      Echo Hello > file2

    • B. 

      Cal 2012 > file2

    • C. 

      Touch file2

    • D. 

      Echo horse >> file2

  • 9. 
    Which of the following can create a nested directory structure from the current directory named dir?
    • A. 

      Mkdir nesdir

    • B. 

      Rmdir –p dir1/dir2

    • C. 

      Mkdir –p dir1/dir2

    • D. 

      Mkdir –p /dir/dir2

  • 10. 
    Which of the following special character at the end of a file name from the output of command ls –F, shows a symbolic link?
    • A. 

      *

    • B. 

      @

    • C. 

      ?

    • D. 

      /

  • 11. 
    Which of the following command is used to display the type of file?
    • A. 

      File

    • B. 

      File

    • C. 

      Type

    • D. 

      Disp type

  • 12. 
    File names uwinpro and UWINPro are the same.
    • A. 

      True

    • B. 

      False

  • 13. 
    The folder name that stores the deleted files in UNIX is called ________
    • A. 

      Recycle bin

    • B. 

      /root

    • C. 

      Home directory of the user

    • D. 

      None of the above

  • 14. 
    Compared to "more" command "less" command, when used to display the contents of a text file, shows less rows.
    • A. 

      True

    • B. 

      False

  • 15. 
    Which of the following command lines work in Linux, Solaris and AIX? (3 correct answers)
    • A. 

      Calc –j

    • B. 

      Uname –n

    • C. 

      Ls –l

    • D. 

      Pwd

  • 16. 
    The default home directory for tom in Linux is _______
    • A. 

      /export/home

    • B. 

      /root

    • C. 

      /

    • D. 

      /home/tom

  • 17. 
    Which among the following are UNIX shells? (2 correct answers)
    • A. 

      Ksh

    • B. 

      Bash

    • C. 

      Msh

    • D. 

      Lsh

  • 18. 
    Which of the following shell is the default shell for Oracle Solaris 11?
    • A. 

      Bash

    • B. 

      Ksh

    • C. 

      Msh

    • D. 

      Lsh

  • 19. 
    Command line editing and auto completion are available in ________
    • A. 

      Bash shell

    • B. 

      Bourne Shell

    • C. 

      Mash shell

    • D. 

      Lowshell

  • 20. 
    Most of the commands used by root user and others in UNIX are located in the directory ________
    • A. 

      /root

    • B. 

      /

    • C. 

      /usr

    • D. 

      /export/home

  • 21. 
    To get help for a command useradd you should type _________
    • A. 

      Help useradd

    • B. 

      Man useradd

    • C. 

      Help /useradd

    • D. 

      None of the above

  • 22. 
    The default prompts in Linux for regular users and root end in _________
    • A. 

      # and $

    • B. 

      @ and $

    • C. 

      $ and #

    • D. 

      # and #

  • 23. 
    Which of the following commands can be used to create a file? (2 correct answers)
    • A. 

      Cat

    • B. 

      Tee

    • C. 

      Less

    • D. 

      More

  • 24. 
    The output of ls -l command when executed from a directory is shown below: drwxr--r--   1 tom  UWINPro   4096  drafts The file type and permissions for the user tom for this file / directory are
    • A. 

      Folder, read, write, execute

    • B. 

      Folder, read only

    • C. 

      File, execute, read

    • D. 

      File, execute only

  • 25. 
    The output of ls -l command when executed from a directory is shown below: drwxr--r--   1 tom  UWINPro   4096  drafts The name of the primary group of the owner of the file/directory is
    • A. 

      Tom

    • B. 

      4096

    • C. 

      UWINPro

    • D. 

      Drafts

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.