Linux interview questions – page 2

517 questions. Tap “Show answer” to check yourself.

Advertisement
  1. This command formats a floppy _____

    1. mkfs
    2. mkf
    3. mks
    4. man
    Show answer

    A. mkfs

  2. Which key should be pressed to save a file in line editing mode?

    1. x
    2. s
    3. n
    4. w
    Show answer

    D. w

  3. Hard disk partition is prefixed by

    1. hd
    2. hda
    3. hda2
    4. dha
    Show answer

    A. hd

  4. Which command is used to evaluate arithmetic expression?

    1. cat
    2. expre
    3. expr
    4. lets
    Show answer

    C. expr

  5. <b>Is</b> command with the <b>-a</b> option will display

    1. sorted files
    2. all files including hidden fields
    3. all files
    4. sub directories
    Show answer

    B. all files including hidden fields

  6. Which symbol allows you to search the pattern, backward in the text?

    1. plus (+)
    2. question mark (?)
    3. astrisk (*)
    4. slash (/)
    Show answer

    B. question mark (?)

  7. Which keys are substituted for the cut facility?

    1. nyy
    2. nkk
    3. ndd
    4. nhh
    Show answer

    C. ndd

  8. Which Directory is assigned to the user when he/she enters into the system for the first time, by the System Administrator (SA)?

    1. user
    2. home
    3. bin
    4. usr
    Show answer

    B. home

  9. Help for all commands is available at

    1. Man command
    2. Help command
    3. Join command
    4. Tput command
    Show answer

    A. Man command

  10. The option is influenced by the ___ preceding it.

    1. File
    2. Folder
    3. Directory
    4. Command
    Show answer

    D. Command

  11. Which of the following is used to append the contents of a file?

    1. =
    2. >>
    3. <
    4. >
    Show answer

    B. >>

  12. The ___ process does not allow any unauthorized person to access any of our directories or files.

    1. Confirmation
    2. Analyzing
    3. Verification
    4. Substantiation
    Show answer

    C. Verification

  13. Advertisement
  14. Which indicate you to find the mode you are working?

    1. Indicator on
    2. Beep sound
    3. Status prompt
    4. Prompt
    Show answer

    B. Beep sound

  15. Who are placeholders to store values?

    1. Constants
    2. Variables
    3. OS
    4. Shell
    Show answer

    B. Variables

  16. What type of editing is possible by Ed editor?

    1. One command
    2. One file
    3. One line
    4. One page
    Show answer

    C. One line

  17. ____ command clears the screen.

    1. Clear
    2. Cls
    3. Clear all
    4. Clean screen
    Show answer

    A. Clear

  18. Which of the following is called as the redirection operator for output?

    1. =
    2. <<
    3. <
    4. >
    Show answer

    D. >

  19. The complete path name of a file or directory is

    1. Root name
    2. Tree name
    3. Relative path name
    4. Absolute path name
    Show answer

    D. Absolute path name

  20. Collection of files is called as a

    1. Directory
    2. Root
    3. Field
    4. Home
    Show answer

    A. Directory

  21. How much of memory space is occupied by Linux?

    1. 4 MB
    2. 6 MB
    3. 8 MB
    4. 12 MB
    Show answer

    A. 4 MB

  22. The file name can be up to ___ character.

    1. 253
    2. 254
    3. 255
    4. 256
    Show answer

    D. 256

  23. The prompt of the root user is

    1. @
    2. #
    3. %
    4. $
    Show answer

    B. #

  24. Linux default shell is

    1. BAH shell
    2. SH shell
    3. ASH shell
    4. BASH shell
    Show answer

    A. BAH shell

  25. We should be careful about the lower case and upper case letters when the system is

    1. Case sensitive
    2. Case caful
    3. Case destinictive
    4. Case respective
    Show answer

    A. Case sensitive

  26. Advertisement
  27. In Linux, if all the members of the group share their files, they are called as

    1. File owner
    2. Other users
    3. File users
    4. Group users
    Show answer

    D. Group users

  28. When you are in the command mode, what takes you to the line editing mode?

    1. Cursor
    2. : colon
    3. Esc
    4. Enter
    Show answer

    B. : colon

  29. Who can change his/her password with the password command?

    1. Shell
    2. The worker
    3. Guest user
    4. A user
    Show answer

    D. A user

  30. Which command copies the contents of the source file after creating the destination file?

    1. .mv
    2. cp
    3. cat
    4. .rm
    Show answer

    B. cp

  31. Which command allows you to delete a word?

    1. cc
    2. dd
    3. cw
    4. dw
    Show answer

    D. dw

  32. SA is also known as root user or

    1. Supervisor
    2. Multi user
    3. Single user
    4. Super user
    Show answer

    D. Super user

Advertisement