Basic of linux unix – MCQs

263 questions. Click to practice.

Correct options are highlighted when revealed.

1.Which flag should be added to the 'df' command to display the total disk space of the file system?

2.In the vi editor, which command initiates a forward search for a specified pattern?

3.Which file stores data associated with password expiration and aging?

4.In the vi editor, which command allows you to insert text directly before the cursor position?

5.Which command allows you to select and retrieve particular columns from a file?

6.Which command is used to display the final 10 lines of a file?

7.What does the command 'chmod 761 letter' represent in terms of user, group, and other permissions?

8.What is the largest swap partition size supported by a system running kernel version 2.2.x to expand available memory?

9.Which utility allows you to run specific tasks or scripts automatically at designated times on a system?

10.Which OSI model layer is responsible for providing the interface between the user and the system?

11.Which command in the vi editor allows you to search for a pattern moving forward through the text?

12.What methods can be used to create a new user named Amit on your system?

13.In mail command, which internal command is utilized to forward a message to the users in a user-list?

14.In the vi editor, which command allows you to save the current file without exiting the editor?

15.In the vi editor, which command allows you to add text at the end of the current line?

16.Which command is commonly used to copy entire directory trees to and from different locations?

17.Which command lists filenames arranged in several columns on the terminal?

18.What does the octal permission code 652 signify?

19.Which shell was the first and remains the most commonly used shell included with the UNIX operating system?

20.Which command should be applied to the file named 'note' to revoke the user's execute permission while granting read access to both group and others?