Linux interview questions

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

Advertisement
  1. Which shell provides many of the tools found in C language?

    1. Minix
    2. Xenix
    3. Linux
    4. Unix
    Show answer

    C. Linux

  2. Which was widely distributed over the Internet?

    1. Linux
    2. Unix
    3. Minix
    4. Xenix
    Show answer

    A. Linux

  3. Which was the operating system was created mainly by the efforts of Ken Thomson?

    1. Unix
    2. Linux
    3. Minix
    4. Xenix
    Show answer

    A. Unix

  4. Which command displays the contents of a file?

    1. cat
    2. T pipe
    3. Is
    4. tee
    Show answer

    A. cat

  5. How will you see the system date?

    1. $ dd
    2. $ dy
    3. $ date
    4. $dt
    Show answer

    C. $ date

  6. Which of the following command is used for prompting?

    1. man
    2. echo
    3. Is
    4. pwd
    Show answer

    B. echo

  7. Which key open a new line and places the cursor in the beginning of that new line?

    1. P
    2. p
    3. O
    4. o
    Show answer

    D. o

  8. Who developed an effective PC version of Unix for Minix users?

    1. Dennis Ritchie
    2. Ken Thomson
    3. Prof. Andrew S. Tannenbaum
    4. Linus Torvalds
    Show answer

    D. Linus Torvalds

  9. Which command allows you to change a single character where the cursor is currently on?

    1. o
    2. O
    3. r
    4. R
    Show answer

    C. r

  10. What is the key used to quit Vi editor?

    1. :q
    2. q
    3. :a!
    4. qi
    Show answer

    A. :q

  11. Which sign is a substitute for our home directory?

    1. ($) dollar
    2. (#) hash
    3. (*) astrisks
    4. (~) tilde
    Show answer

    D. (~) tilde

  12. What is the reference of the second partition on the first hard drive?

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

    B. hda2

  13. Advertisement
  14. Which symbol is used to refer the contents of a variable?

    1. *
    2. ""
    3. $
    4. #
    Show answer

    C. $

  15. Establishing the connection between a file system on a storage device and our main directory tree is called as

    1. sharing
    2. changing
    3. mounting
    4. unmounting
    Show answer

    C. mounting

  16. Which command takes the input from standard input and copies into a file?

    1. cat
    2. T pipe
    3. more
    4. tee
    Show answer

    D. tee

  17. Which command allows you to change the entire contents of a line?

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

    A. cc

  18. In File Access Permission, what command gives the owner of the file the execute permission?

    1. s + x
    2. u + x
    3. o + x
    4. a + x
    Show answer

    B. u + x

  19. Which command allows you to change a word?

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

    D. cw

  20. A directory under a directory is called as

    1. root directory
    2. parent directory
    3. sub directory
    4. child directory
    Show answer

    C. sub directory

  21. Which command will undo the last modification?

    1. o
    2. n
    3. u
    4. d
    Show answer

    C. u

  22. Double dot (..) with <b>cd</b> refers to

    1. created directory
    2. current directory
    3. parent directory
    4. change directory
    Show answer

    C. parent directory

  23. Which version can run on any machine available now?

    1. suitable Unix
    2. suitable Linux
    3. suitable Xenix
    4. suitable Minix
    Show answer

    B. suitable Linux

  24. Which command allows you to overwrite text?

    1. r
    2. R
    3. O
    4. o
    Show answer

    B. R

  25. Which key places you in input mode in Vi editor after the character where the cursor is currently on?

    1. n
    2. i
    3. a
    4. s
    Show answer

    C. a

  26. Advertisement
  27. The <b>pwd</b> stands for

    1. path work device
    2. present work device
    3. parent working directory
    4. print working directory
    Show answer

    D. print working directory

  28. The file owner can change the access permission by _____ command.

    1. chmod
    2. ahmod
    3. enmod
    4. ehmod
    Show answer

    A. chmod

  29. What command removes the entire line that the cursor is presently on?

    1. nn
    2. ll
    3. xx
    4. dd
    Show answer

    D. dd

  30. How will you go to a particular line number in Vi editor?

    1. line number R
    2. line number G
    3. line number B
    4. line number N
    Show answer

    B. line number G

  31. Which command creates a new shell?

    1. ah
    2. oh
    3. ch
    4. sh
    Show answer

    D. sh

  32. The <b>cd</b> command stands for

    1. complete directory
    2. created directory
    3. change directory
    4. current directory
    Show answer

    C. change directory

Advertisement