πŸ§ͺ Unix/Lunux MCQ Quiz Hub

Unix MCQS Set 2

Choose a topic to test your knowledge and improve your Unix/Lunux skills

ο»ΏWhich of the following files contains information related to password aging?





βœ… Correct Answer: 2

Which command will be used with vi editor to replace text from cursor to right?





βœ… Correct Answer: 2

Which of the following commands is used to rename a file?





βœ… Correct Answer: 3

Which of the following is not a filter?





βœ… Correct Answer: 4

Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?





βœ… Correct Answer: 2

Which command is used to list all the files with extension .lst?





βœ… Correct Answer: 1

Which command is used to change directory to the name beginning with a 'p'?





βœ… Correct Answer: 3

Which of the following is invalid filename?





βœ… Correct Answer: 4

Which commands is used to assign executable permission to all of the files named "letter"?





βœ… Correct Answer: 4

Which set option is used with vi editor to display line numbers on screen?





βœ… Correct Answer: 2

Which command is used to print a file?





βœ… Correct Answer: 4

Which command will be used with vi editor to replace single character under cursor with any number of characters?





βœ… Correct Answer: 1

Which of the following set options is used with vi editor to ignore case while searching for patterns?





βœ… Correct Answer: 1

Which command is used to list out all the hidden files along with the other files?





βœ… Correct Answer: 4

Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?





βœ… Correct Answer: 1

The chmod ugo+rw note command can be represented in octal notation as





βœ… Correct Answer: 2

Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?





βœ… Correct Answer: 1

Which command is used with vi editor to search a pattern in the forward direction?





βœ… Correct Answer: 1

Which of the following commands is used to assign executable permission to the owner of the file named "note"?





βœ… Correct Answer: 3

The command to count the number of files in the current directory by using pipes, is





βœ… Correct Answer: 3

Which of the following commands is used to get directory one level up?





βœ… Correct Answer: 2

Which of the following commands is used to count the total number of lines, words, and characters contained in a file.





βœ… Correct Answer: 2

Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?





βœ… Correct Answer: 2

Which of the following commands is used to change the working directory?





βœ… Correct Answer: 1

Which of the following commands is used to view your file 24 lines at a time?





βœ… Correct Answer: 1

Which shell's wild-cards is used to match a single character?





βœ… Correct Answer: 2

In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.





βœ… Correct Answer: 2

Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?





βœ… Correct Answer: 2

The command chmod 761 note is equivalent to





βœ… Correct Answer: 2

The commonly used UNIX commands like date, ls, cat, etc. are stored in





βœ… Correct Answer: 2