UNIX Commands MCQsBy: Prof. Dr. Fazal Rehman | Last updated: May 30, 2025 35 Score: 0 Attempted: 0/35 Subscribe 1. What is the prompt for system administrator? (A) # (B) % (C) $ (D) & 2. Where are we placed when we log in as root users? (A) /bin (B) /admin (C) /system (D) /root 3. Which functionalities are carried out by the root user? (A) by managing the disk space, by performing the backup, by changing the attributes of a file (B) performing backup (C) changing attributes of a file (D) managing disk space 4. The superuser for changing root’s password uses which of the following command? (A) pd (B) pswd (C) password (D) pwd 5. What restricts and controls the access to the use of at and batch? (A) at.allow, batch.allow (B) batch.deny, batch.allow (C) at.allow, batch.deny (D) at.allow, at.deny 6. What command do we use to acquire superuser status? (A) su (B) pu (C) admn (D) super 7. What is the system administrator called? (A) master user (B) superuser (C) master and superuser (D) root user 8. To set the date of the system, the system administrator uses what command? (A) date (B) su (C) dt (D) chdt 9. Which of the following command allows superusers to communicate with users? (A) comm (B) cron (C) wall (D) date 10. Login name of the system administrator is (A) su (B) root (C) master (D) admin 11. What is used to create a user’s environment? (A) su (B) su – – (C) -su (D) su – 12. By using what the User’s environment mode created by using su – is terminated? (A) ctrl-v (B) ctrl-d (C) ctrl-q (D) ctrl-f 13. Which of the following command is used to set the limits on file size? (A) limit (B) flimit (C) flim (D) ulimit 14. Which command is used to create a new group? (A) chgrp (B) chown (C) groupadd (D) addgrp 15. What command do we use to add a new user to the system? (A) grpadd (B) uadd (C) useradd (D) adduser 16. To report free space on the disk which command do we use? (A) df (B) fd (C) du (D) sg 17. Which option do we use with df command to display the total amount of the disk space in file system? (A) -t (B) -d (C) -a (D) -e 18. Which option do we use with df command to display the total amount of the disk space in file system in the terms of Kilobytes? (A) -a (B) -d (C) -k (D) -t 19. Where is all the user information stored? (A) etc/shadow (B) bin/passwd (C) bin/users/passwd (D) etc/passwd 20. Which field is not stored in /etc/passwd? (A) username (B) encrypted password (C) UID, GID (D) password 21. To modify the parameters of existing users the administrator uses which command? (A) userdel (B) userchange (C) usermod (D) useradd 22. By using what the SUID for any file is set by the administrator? (A) chmod (B) chmod us filename (C) chmod s filename (D) chmod u+s filename 23. Which command shuts down and reboot the system? (A) shutdown -g2 (B) shutdown -y -g0 -i6 (C) shutdown -g2 -g0 (D) shutdown -g2 i6 24. Which commands are used for maintenance of the user accounts? (A) useradd, usermod, userdel (B) usermod (C) userdel (D) useradd 25. Which option do we use with the shutdown command to override the default waiting time? (A) -s (B) -e (C) -g (D) -i 26. What is the set of routines needed to operate a specific device called? (A) device file (B) device driver (C) device program (D) device software 27. Which command do we use to format the diskettes? (A) format and fdformat (B) fdformat (C) frmt (D) format 28. Copying of diskettes is performed by which command? (A) pp (B) dd (C) du (D) df 29. To back up files which option is used by tar command? (A) -c (B) -a (C) -d (D) -f 30. What option do we use to restore files using tar? (A) -a (B) -x (C) -v (D) -c 31. To find out the consumption of a specific directory what command do we use? (A) mem (B) df (C) du (D) dv 32. With du command to find only the summary of disk usage by a specific directory, what option do we use? (A) -e (B) -s (C) -e (D) -f 33. In what all device files are stored? (A) kernel (B) /home/usr (C) /home (D) /dev 34. The backup program is (A) cpio (B) trap (C) ciop (D) bckup 35. With the cpio program we use (A) -a (B) -i (C) -i and -o (D) -o Related Posts:Important MS-DOS Commands, Top 30 CommandsUNIX sed Commands MCQsModifying Commands MCQsCommands for Searching, Replacing, and Substituting in Vi Editor MCQSFiltering Commands MCQsWhich among the following commands is used to enlarge the first letter of a paragraph?