Skip to main content

Unix — Part 2 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Unix — Part 2 with worked academic solutions for PPSC, FPSC, CSS, PMS, NTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
PPSC, FPSC, CSS...
Estimated Time
48 mins
Exam-Level PPSC FPSC CSS PMS NTS
Verified for Commission Syllabus • Oct 14, 2026
40

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/40 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 40
★ PPSC ★ FPSC

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

Question 2 of 40
★ PPSC ★ FPSC

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

Question 3 of 40
★ PPSC ★ FPSC

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

Question 4 of 40
★ PPSC ★ FPSC

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

Question 5 of 40
★ PPSC ★ FPSC

The command used to compare the files is known as

Question 6 of 40
★ PPSC ★ FPSC

Which command is used to terminate a process?

Question 7 of 40
★ PPSC ★ FPSC

Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?

Question 8 of 40
★ PPSC ★ FPSC

The cp command uses:

Question 9 of 40
★ PPSC ★ FPSC

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

Question 10 of 40
★ PPSC ★ FPSC

Which of the following is not a filter?

Question 11 of 40
★ PPSC ★ FPSC

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

Question 12 of 40
★ PPSC ★ FPSC

Which option will be used with disk free command to include the total amount of disk space in the file system?

Question 13 of 40
★ PPSC ★ FPSC

Which of the following command is used to go to home directory?

Question 14 of 40
★ PPSC ★ FPSC

Which command is used to move all files to the bin sub-directory of the parent directory?

Question 15 of 40
★ PPSC ★ FPSC

Major expressions used with find command to select file is it has been accessed in more than 375 days, is

Question 16 of 40
★ PPSC ★ FPSC

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

Question 17 of 40
★ PPSC ★ FPSC

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

Question 18 of 40
★ PPSC ★ FPSC

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?

Question 19 of 40
★ PPSC ★ FPSC

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

Question 20 of 40
★ PPSC ★ FPSC

Which option is used with the chmod command recursively to all files and sub-directories in a directory?

Question 21 of 40
★ PPSC ★ FPSC

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

Question 22 of 40
★ PPSC ★ FPSC

Which of the following is invalid filename?

Question 23 of 40
★ PPSC ★ FPSC

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

Question 24 of 40
★ PPSC ★ FPSC

Which command is used to print a file?

Question 25 of 40
★ PPSC ★ FPSC

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

Question 26 of 40
★ PPSC ★ FPSC

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

Question 27 of 40
★ PPSC ★ FPSC

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

Question 28 of 40
★ PPSC ★ FPSC

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?

Question 29 of 40
★ PPSC ★ FPSC

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

Question 30 of 40
★ PPSC ★ FPSC

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

Question 31 of 40
★ PPSC ★ FPSC

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

Question 32 of 40
★ PPSC ★ FPSC

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

Question 33 of 40
★ PPSC ★ FPSC

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

Question 34 of 40
★ PPSC ★ FPSC

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

Question 35 of 40
★ PPSC ★ FPSC

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

Question 36 of 40
★ PPSC ★ FPSC

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

Question 37 of 40
★ PPSC ★ FPSC

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

Question 38 of 40
★ PPSC ★ FPSC

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

Question 39 of 40
★ PPSC ★ FPSC

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

Question 40 of 40
★ PPSC ★ FPSC

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

✓ Link copied to clipboard
Continue Your Practice

Advanced Mapreduce Concepts — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Computer Science & IT

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Computer Science & IT

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →