Unix/Linux Operating System

CoderIndeed
0
  1. 1. What is UNIX?

    1. an operating system
    2. a text editor
    3. software program
    4. programming language
    Show Answer
    Answer :     Option ( a )
  2. 2. Which part of the UNIX operating system interacts with the hardware?

    1. Kernel
    2. Shell
    3. vi editor
    4. Application Program
    Show Answer
    Answer :     Option ( a )
  3. 3. What is a superuser?

    1. system manager
    2. normal user
    3. administrator
    4. a user with special rights
    Show Answer
    Answer :     Option ( c )
  4. 4. What is the windowing system of UNIX known as?

    1. X Window system
    2. LINUX
    3. Red Hat
    4. DOS
    Show Answer
    Answer :     Option ( a )
  5. 5. Which command is used as an alternative to echo command?

    1. ls
    2. printf
    3. wc
    4. ps
    Show Answer
    Answer :     Option ( b )
  6. 6. script command is used for___________

    1. Recording history
    2. Recording our session
    3. Recording passwords
    4. Recording scripts
    Show Answer
    Answer :     Option ( b )
  7. 7. Which command is used by the user to change their login password in UNIX?

    1. man
    2. reset
    3. passwd
    4. cp
    Show Answer
    Answer :     Option ( c )
  8. 8. For interrupting a command. we can use _____

    1. ctrl-f
    2. esc
    3. ctrl-h
    4. ctrl-c
    Show Answer
    Answer :     Option ( d )
  9. 9. Which command is used for printing the current working directory?

    1. HOME
    2. cd
    3. pwd
    4. dir
    Show Answer
    Answer :     Option ( c )
  10. 10. Which command is used for creating directories?

    1. rmdir
    2. mkdir
    3. cd
    4. cp
    Show Answer
    Answer :     Option ( b )
  11. 11. What does the following command do? $ mkdir dir dir/dir_01/dir_02

    1. create dir, dir_01 and dir_02
    2. creates dir_02
    3. creates dir only
    4. throws an error
    Show Answer
    Answer :     Option ( a )
  12. 12. Sometimes we are unable to create a directory because ______________

    1. The directory may already exist in the current directory
    2. There may be an ordinary file by the same name in the current directory
    3. The permissions set for the current directory does not allow the creation
    4. The directory may exist, there may be an ordinary file, the permissions set for the current directory does not allow the creation
    Show Answer
    Answer :     Option ( d )
  13. 13. Which command is used for removing an empty directory?

    1. mkdir
    2. rmdir
    3. del
    4. remove
    Show Answer
    Answer :     Option ( b )
  14. 14. Which command is used for listing files in a directory?

    1. ps
    2. list
    3. ls
    4. wc
    Show Answer
    Answer :     Option ( c )
  15. 15. Which option is used with ls command for long listing of files with seven attributes?

    1. -a
    2. -l
    3. -x
    4. -i
    Show Answer
    Answer :     Option ( b )
  16. 16. Apart from displaying file contents. cat command is also used for _____ files.

    1. Displaying
    2. Deleting
    3. Copying
    4. Creating
    Show Answer
    Answer :     Option ( d )
  17. 17. Which symbol is used with cat command for creating files?

    1. >
    2. <
    3. *
    4. /
    Show Answer
    Answer :     Option ( a )
  18. 18. How can we copy a file into our current directory?

    1. cp file1
    2. cp file1.
    3. cp file*
    4. none of the mentioned
    Show Answer
    Answer :     Option ( b )
  19. 19. Which one of the following command can delete a directory which is not empty?

    1. rm -r
    2. rmdir
    3. rm *
    4. del *
    Show Answer
    Answer :     Option ( a )
  20. 20. What is the permission of file01 after executing this command? chmod 777 file01

    1. rwxrwxrwx
    2. rw-rw-rw
    3. r–r–r–
    4. r–r—-
    Show Answer
    Answer :     Option ( a )
  21. 21. Which command is used to change the ownership of a file?

    1. chmod
    2. change
    3. ch
    4. chown
    Show Answer
    Answer :     Option ( d )
  22. 22. What does the following command do? $ vi file001

    1. Open file named file001
    2. Edit file named file001
    3. Delete a file named file001
    4. Open file if it exists else creates a new file
    Show Answer
    Answer :     Option ( d )
  23. 23. In which language UNIX is written?

    1. JAVA
    2. Python
    3. C++
    4. C
    Show Answer
    Answer :     Option ( d )
  24. 24. Which of the following is not a feature of UNIX?

    1. Multitasking
    2. Multiuser
    3. Portability
    4. Easy to use
    Show Answer
    Answer :     Option ( d )
  25. 25. Which of the following is not a part of all the versions of UNIX?

    1. Kernel and Shell
    2. Commands and Utilities
    3. Graphical User Interface - GUI
    4. System Calls
    Show Answer
    Answer :     Option ( c )
  26. 26. Which of the following is not true about UNIX?

    1. Many people can use a UNIX based computer at the same time; hence UNIX is called as a multiuser system
    2. A user can run multiple programs at the same time; hence UNIX is called a multitasking environment
    3. UNIX was not written in ‘C’ language
    4. Linux is also known as a version of UNIX
    Show Answer
    Answer :     Option ( c )
  27. 27. What are Commands?

    1. Specific instructions for performing a particular task
    2. Part of the operating system
    3. Part of the shell
    4. Special instructions
    Show Answer
    Answer :     Option ( a )
  28. 28. Which command is used for extracting the details of the operating system?

    1. cd
    2. echo
    3. uname
    4. wc
    Show Answer
    Answer :     Option ( c )
  29. 29. Which of the following is not a valid option of uname?

    1. -a
    2. -s
    3. -v
    4. -z
    Show Answer
    Answer :     Option ( d )
  30. 30. Which command is used to display the documentation of commands in UNIX?

    1. help
    2. search
    3. whatis
    4. man
    Show Answer
    Answer :     Option ( d )
  31. 31. Which command is used for displaying date and calendar in UNIX?

    1. date and cal
    2. DATE and CAL
    3. date and calendar
    4. dt and cl
    Show Answer
    Answer :     Option ( a )
  32. 32. What is the output of who command?

    1. Display information about users who are currently logged in.
    2. Display file hierarchy
    3. Display administrator information
    4. Display processes
    Show Answer
    Answer :     Option ( a )
  33. 33. Which command is used for displaying date in the format dd/mm/yyyy ?

    1. date +%m
    2. date +%h
    3. date +”%d/%m/%Y”
    4. date +”%h %m”
    Show Answer
    Answer :     Option ( c )
  34. 34. echo command is used for _________

    1. Displaying errors
    2. Displaying operating system details
    3. Displaying diagnostic messages
    4. Displaying date and time
    Show Answer
    Answer :     Option ( c )
  35. 35. What are the escape sequences?

    1. Special characters beginning with a \ (backslash)
    2. Special commands
    3. Special utilities
    4. A sequence of characters
    Show Answer
    Answer :     Option ( a )
  36. 36. Which of the following is not a valid escape sequence in UNIX?

    1. \n
    2. \t
    3. \v
    4. \d
    Show Answer
    Answer :     Option ( d )
  37. 37. we can use _____ for interrupting.

    1. ctrl-f
    2. esc
    3. ctrl-h
    4. ctrl-c
    Show Answer
    Answer :     Option ( d )
  38. 38. Which command is used for changing the current directory?

    1. cd
    2. cp
    3. pwd
    4. rm
    Show Answer
    Answer :     Option ( a )
  39. 39. The output of ls dir* is ___

    1. All files in the current directory
    2. All files in the directory having a filename starting with dir
    3. No filename is displayed
    4. Erroneous
    Show Answer
    Answer :     Option ( b )
  40. 40. Which command is used for displaying contents of a file?

    1. cp
    2. rm
    3. cat
    4. mkdir
    Show Answer
    Answer :     Option ( c )
  41. 41. cat command is also used for _____ files.

    1. Displaying
    2. Deleting
    3. Copying
    4. Creating
    Show Answer
    Answer :     Option ( d )
  42. 42. If we create a file using cat command with the same filename which already exists in the current directory then

    1. If we create a file using cat command with the same filename which already exists in the current directory then
    2. New file will be created separately
    3. Existing file will be overwritten
    4. An error will be produced
    Show Answer
    Answer :     Option ( c )
  43. 43. Which symbol is used to append an existing file?

    1. >
    2. <
    3. >>
    4. $
    Show Answer
    Answer :     Option ( c )
  44. 44. Which of the following cannot be performed by cat command?

    1. Displaying files
    2. Creating files
    3. Appending files
    4. Deleting files
    Show Answer
    Answer :     Option ( d )
  45. 45. Which of the following can perform by cat command?

    1. Displaying files
    2. Creating files
    3. Appending files
    4. All of above
    Show Answer
    Answer :     Option ( d )
  46. 46. What happens if the destination file specified in cp command does not exist?

    1. File will not be copied
    2. An error will be produced
    3. Destination file will be automatically created
    4. None of the mentioned
    Show Answer
    Answer :     Option ( c )
  47. 47. What does -i option do in cp command?

    1. Interactive copying
    2. Recursively copying
    3. Updating
    4. None of the mentioned
    Show Answer
    Answer :     Option ( a )
  48. 48. Which option is used with cp command for linking files instead of copying?

    1. -v
    2. -l
    3. -f
    4. -x
    Show Answer
    Answer :     Option ( b )
  49. 49. Which command is used for removing/deleting files in UNIX?

    1. rmdir
    2. rm
    3. del
    4. remove
    Show Answer
    Answer :     Option ( b )
  50. 50. To delete all files in a directory we use ______________

    1. rmdir *
    2. mv *
    3. rm *
    4. del *
    Show Answer
    Answer :     Option ( c )
  51. 51. Which option is used with rm command for interactive deletion?

    1. -i
    2. -f
    3. -r
    4. -R
    Show Answer
    Answer :     Option ( a )
  52. 52. If we wish to delete a remove a file forcefully. we can use ____ option with rm command.

    1. -i
    2. -r
    3. -R
    4. -f
    Show Answer
    Answer :     Option ( d )
  53. 53. Which command is used for renaming files?

    1. rename
    2. mv
    3. cp
    4. move
    Show Answer
    Answer :     Option ( b )
  54. 54. What if the destination file specified in mv command already exists?

    1. It will be deleted
    2. It will not be affected
    3. It will be overwritten
    4. An error will be produced
    Show Answer
    Answer :     Option ( c )
  55. 55. Which command is used for comparing two files?

    1. cmp
    2. comp
    3. diff
    4. comm
    Show Answer
    Answer :     Option ( a )
  56. 56. What is the exit status of cmp command if both the files are identical?

    1. 0
    2. 1
    3. 2
    4. undefined
    Show Answer
    Answer :     Option ( a )
  57. 57. Which option is used with cmp command to limit the number of bytes to be compared?

    1. -n
    2. -l
    3. -f
    4. -b
    Show Answer
    Answer :     Option ( a )
  58. 58. How can we skip some initial bytes from both the files to be compared?

    1. using -b option
    2. using -n option
    3. using -l option
    4. using -i option
    Show Answer
    Answer :     Option ( d )
  59. 59. Which command compares two sorted files line by line?

    1. cmp
    2. diff
    3. comm
    4. sort
    Show Answer
    Answer :     Option ( c )
  60. 60. What will be the command if we want to suppress column 1 and column 2 in the output of comm Command?

    1. comm -12
    2. comm -1-2
    3. comm -3
    4. comm -1,-2
    Show Answer
    Answer :     Option ( a )
  61. 61. Which command is used to display the differences between files?

    1. comm
    2. diff
    3. cmp
    4. differ
    Show Answer
    Answer :     Option ( b )
  62. 62. When two files are identical. what is the output of diff command?

    1. Files are identical
    2. Returns prompt
    3. No output
    4. Throws an error
    Show Answer
    Answer :     Option ( b )
  63. 63. Which command is used for counting words, lines, and characters in a file?

    1. diff
    2. count
    3. man
    4. wc
    Show Answer
    Answer :     Option ( d )
  64. 64. Which option is used for counting the number of lines in a file only.

    1. -l
    2. -W
    3. -c
    4. -w
    Show Answer
    Answer :     Option ( a )
  65. 65. Which option is used for counting the number of words in a file only?

    1. -l
    2. -W
    3. -c
    4. -w
    Show Answer
    Answer :     Option ( d )
  66. 66. Which option is used for counting the number of characters in a file only.

    1. -l
    2. -W
    3. -c
    4. -w
    Show Answer
    Answer :     Option ( c )
  67. 67. Which command is used for knowing the file type?

    1. file
    2. type
    3. filetype
    4. type of file
    Show Answer
    Answer :     Option ( a )
  68. 68. A file can be recognized as an ordinary file or directory by ____ symbol.

    1. $
    2. *
    3. /
    Show Answer
    Answer :     Option ( b )
  69. 69. How many types of permissions a file has in UNIX?

    1. 1
    2. 2
    3. 3
    4. 4
    Show Answer
    Answer :     Option ( c )
  70. 70. Permissions of a file are represented by which of the following characters?

    1. r,w,x
    2. e,w,x
    3. x,w,e
    4. e,x,w
    Show Answer
    Answer :     Option ( a )
  71. 71. What is group ownership?

    1. Group of users who can access the file
    2. Group of users who can create the file
    3. Group of users who can edit the file
    4. Group of users who can delete the file
    Show Answer
    Answer :     Option ( a )
  72. 72. Which of the following is the default permission set for ordinary files?

    1. rw-rw-rw-
    2. rwxrwxrwx
    3. r–r–r–
    4. rw-rw-rwx
    Show Answer
    Answer :     Option ( a )
  73. 73. Which command is used to change the permissions of a file?

    1. chmod
    2. ch
    3. chown
    4. chgrp
    Show Answer
    Answer :     Option ( a )
  74. 74. A file named file01 should be readable. writable and executable only by the user(owner). Which one of the following set of command will be used?

    1. chmod 700 file01
    2. chmod 000 file01
    3. chmod 477 file01
    4. chmod 777 file01
    Show Answer
    Answer :     Option ( a )
  75. 75. Which command is used to change the group owner of the file?

    1. chown
    2. ch
    3. chgrp
    4. chmod
    Show Answer
    Answer :     Option ( c )
  76. 76. Which editor is used by the UNIX system to edit files?

    1. vi
    2. notepad
    3. word
    4. notepad++
    Show Answer
    Answer :     Option ( a )
  77. 77. Shell provides us with an interface to the operating system.

    1. TRUE
    2. FALSE
    Show Answer
    Answer :     Option ( a )
  78. 78. On a UNIX system. there can be ____ shells running simultaneously.

    1. 1
    2. 2
    3. many
    4. 4
    Show Answer
    Answer :     Option ( c )
  79. 79. There can be multiple kernels on a single UNIX system.

    1. TRUE
    2. FALSE
    Show Answer
    Answer :     Option ( b )
  80. 80. The prompt issued by the shell is called ______

    1. Prompt
    2. Command translator
    3. Command prompt
    4. Command executor
    Show Answer
    Answer :     Option ( c )
  81. 81. In UNIX there are ___ major types of shells.

    1. 2
    2. 3
    3. 4
    4. Many
    Show Answer
    Answer :     Option ( a )
  82. 82. What is the default symbol for command prompt in Bourne shell?

    1. $
    2. %
    3. #
    4. @
    Show Answer
    Answer :     Option ( a )
  83. 83. What is the default symbol for command prompt in C shell?

    1. $
    2. %
    3. #
    4. @
    Show Answer
    Answer :     Option ( b )
  84. 84. Which shell is the most common and best to use?

    1. Korn shell
    2. POSIX shell
    3. C shell
    4. Bash shell
    Show Answer
    Answer :     Option ( d )
  85. 85. What does the following command do? $ echo *

    1. Error
    2. Undefined behavior
    3. Displays “*”
    4. Lists all filenames in the current directory
    Show Answer
    Answer :     Option ( d )
  86. 86. Which symbol is used for assigning a value to variables?

    1. $
    2. &
    3. =
    4. @
    Show Answer
    Answer :     Option ( c )
  87. 87. A process is an instance of _______ program.

    1. waiting
    2. executing
    3. terminated
    4. halted
    Show Answer
    Answer :     Option ( b )
  88. 88. Each process is identified by a unique integer called ______

    1. PID
    2. PPID
    3. TID
    4. PTID
    Show Answer
    Answer :     Option ( a )
  89. 89. Which of the following command doesn’t create a process?

    1. pwd
    2. fork
    3. cd
    4. pwd and cd
    Show Answer
    Answer :     Option ( d )
  90. 90. Which command is used for locating repeated and non-repeated lines?

    1. sort
    2. uniq
    3. cut
    4. paste
    Show Answer
    Answer :     Option ( b )
  91. 91. Which option is used with uniq command for selecting non-repeated lines?

    1. -i
    2. -c
    3. -u
    4. -a
    Show Answer
    Answer :     Option ( c )
  92. 92. Which command is used for translating characters?

    1. sort
    2. trans
    3. tr
    4. paste
    Show Answer
    Answer :     Option ( c )
  93. 93. Which option is used with tr command for deleting characters?

    1. -d
    2. -c
    3. -n
    4. -a
    Show Answer
    Answer :     Option ( a )
  94. 94. Which one of the following command is used for searching for a pattern in one or more file(s)?

    1. cd
    2. cp
    3. paste
    4. grep
    Show Answer
    Answer :     Option ( d )
  95. 95. Which one of the following is the correct syntax for grep command?

    1. grep options filename(s)
    2. grep options pattern
    3. grep pattern filename
    4. grep options pattern filename(s)
    Show Answer
    Answer :     Option ( d )
  96. 96. grep command can be used for searching a pattern in more than one file.

    1. TRUE
    2. FALSE
    Show Answer
    Answer :     Option ( a )
  97. 97. What is a shell script?

    1. Group of commands
    2. A file containing special symbols
    3. A file containing a series of commands
    4. Group of functions
    Show Answer
    Answer :     Option ( c )
  98. 98. Shell scripts need to be saved with an extension .sh .

    1. TRUE
    2. FALSE
    Show Answer
    Answer :     Option ( b )
  99. 99. To run the script. we should make it executable first by using _____

    1. chmod +x
    2. chmod +r
    3. chmod +w
    4. chmod +rwx
    Show Answer
    Answer :     Option ( a )
  100. 100. Which of the following operators are used for logical execution?

    1. ||
    2. &&
    3. %%
    4. && and ||
    Show Answer
    Answer :     Option ( d )
  101. 101. Every if is closed with a corresponding ____

    1. else
    2. fi
    3. if
    4. else if
    Show Answer
    Answer :     Option ( b )
  102. 102. To check more than two conditions. ___ is used with if-else statements.

    1. while
    2. for
    3. elif
    4. for
    Show Answer
    Answer :     Option ( c )
  103. 103. Which of the following operators is used with test for comparison of numeric values?

    1. -eq
    2. -ne
    3. -gg
    4. –eq and -ne
    Show Answer
    Answer :     Option ( d )
  104. 104. ___ implies greater than and ____ implies less than.

    1. gt, le
    2. gt, lt
    3. ge,le
    4. ge,lt
    Show Answer
    Answer :     Option ( b )
  105. 105. Which one of the following option is used for AND operation in test command?

    1. -o
    2. -a
    3. -e
    4. -an
    Show Answer
    Answer :     Option ( b )
  106. 106. Which one of the following option is used for OR operation in test command?

    1. -o
    2. -a
    3. -e
    4. -an
    Show Answer
    Answer :     Option ( a )
  107. 107. Which command is used for computation and string handling?

    1. expr
    2. case
    3. if
    4. read
    Show Answer
    Answer :     Option ( a )
  108. 108. Which of the following keywords are used in while loop?

    1. do
    2. done
    3. then
    4. do and done
    Show Answer
    Answer :     Option ( d )
  109. 109. ____ statement matches an expression for more than one alternative.

    1. for
    2. while
    3. elif
    4. case
    Show Answer
    Answer :     Option ( d )
  110. 110. Which one of the following is used for looping with a list?

    1. while
    2. until
    3. case
    4. for
    Show Answer
    Answer :     Option ( d )
  111. 111. Which of the following loop statements uses do and done keyword?

    1. for
    2. while
    3. case
    4. for and while
    Show Answer
    Answer :     Option ( d )
  112. 112. The system administrator is also known as _____

    1. Master user
    2. Superuser
    3. Root user
    4. Master and Superuser
    Show Answer
    Answer :     Option ( b )
  113. 113. What is the login name of a system administrator?

    1. root
    2. su
    3. master
    4. admin
    Show Answer
    Answer :     Option ( a )
  114. 114. When we log in as root user we are placed in ____

    1. /bin
    2. /root
    3. /system
    4. /admin
    Show Answer
    Answer :     Option ( b )
  115. 115. Which of the following commands let us perform a set of instructions repeatedly

    1. for
    2. while
    3. until
    4. for, while, until
    Show Answer
    Answer :     Option ( d )
Tags

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Accept !