πŸ§ͺ Unix/Lunux MCQ Quiz Hub

Unix MCQS Set 1

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

ο»ΏWhich symbol will be used with grep command to match the pattern pat at the beginning of a line?





βœ… Correct Answer: 1

Which command is used to sort the





βœ… Correct Answer: 4

Which command is used to display the top of the file?





βœ… Correct Answer: 2

Which command is used to copy all files having the string chap and any two characters after that to the progs directory?





βœ… Correct Answer: 1

Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?





βœ… Correct Answer: 1

Which command is used to remove a directory?





βœ… Correct Answer: 2

Which of the following keys is used to replace a single character with new text?





βœ… Correct Answer: 2

Which command is used to extract specific columns from the file?





βœ… Correct Answer: 2

Which command sends the word count of the file infile to the newfile.





βœ… Correct Answer: 1

Which command is used to remove the read permission of the file 'note' from both the group and others?





βœ… Correct Answer: 4

Which of the following commands is used to display the directory attributes rather than its contents?





βœ… Correct Answer: 1

Which of the following files will displayed by this command cat *ch*





βœ… Correct Answer: 4

The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:





βœ… Correct Answer: 2

If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use





βœ… Correct Answer: 2

Which of the following is not a communication command.





βœ… Correct Answer: 4

Which of the following keys is used to move the cursor to the end of the paragraph.





βœ… Correct Answer: 1

Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?





βœ… Correct Answer: 1

The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is





βœ… Correct Answer: 1

Which command is used to remove a file?





βœ… Correct Answer: 2

Which symbol is used to separate more than one command in the same command line?





βœ… Correct Answer: 4

The agency that sits between the user and the UNIX system is called the





βœ… Correct Answer: 3

Which of the following commands is used to update access and modification times of a file?





βœ… Correct Answer: 3

Which command is used to count just the number of characters in a file?





βœ… Correct Answer: 2

Which of the following commands is used to list contents of directories?





βœ… Correct Answer: 1

Which command is used to display a file contents in octal form?





βœ… Correct Answer: 2

Which command will be used with vi editor to insert text to left of cursor?





βœ… Correct Answer: 4

In vi editor, forward search is performed using the command.





βœ… Correct Answer: 3

Which of the following special shell variables is used to process number of the last background job?





βœ… Correct Answer: 1

The second set of the three permissions (r-) indicates that





βœ… Correct Answer: 1

Which of the following command addresses all users who are currently hooked on?





βœ… Correct Answer: 3

Which column contains all details of the permissions of a file when you issue the ls -l command?





βœ… Correct Answer: 4

Which of the following directories contain all the Alias created by a user, including his login





βœ… Correct Answer: 3

Which of the following commands is used to obtain a list of all files by modification time?





βœ… Correct Answer: 2

The % key allows you





βœ… Correct Answer: 1

Which command is used to display the characteristics of a process?





βœ… Correct Answer: 3

Which of the following commands is used to identify the type of file by context?





βœ… Correct Answer: 3

TWhich of the following commands is used to display your working directory?





βœ… Correct Answer: 3

Which command is used to display and create files?





βœ… Correct Answer: 1

Which option will be used with touch command to change the access time?





βœ… Correct Answer: 1

Which command is used to make all files and sub-directories in the directory (progs) executable by all users?





βœ… Correct Answer: 1

While working with mail command, which command is used to save mail in a separate file?





βœ… Correct Answer: 1

The command used to compare the files is known as





βœ… Correct Answer: 2

Which command is used to terminate a process?





βœ… Correct Answer: 4

The cp command uses:





βœ… Correct Answer: 4