Skip to main content

Unix — Part 1 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Unix — Part 1 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

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

Question 2 of 40
★ PPSC ★ FPSC

Which command is used to sort the lines of data in a file in reverse order

Question 3 of 40
★ PPSC ★ FPSC

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

Question 4 of 40
★ PPSC ★ FPSC

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

Question 5 of 40
★ PPSC ★ FPSC

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

Question 6 of 40
★ PPSC ★ FPSC

Which command is used to remove a directory?

Question 7 of 40
★ PPSC ★ FPSC

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

Question 8 of 40
★ PPSC ★ FPSC

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

Question 9 of 40
★ PPSC ★ FPSC

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

Question 10 of 40
★ PPSC ★ FPSC

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

Question 11 of 40
★ PPSC ★ FPSC

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

Question 12 of 40
★ PPSC ★ FPSC

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

Question 13 of 40
★ PPSC ★ FPSC

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:

Question 14 of 40
★ PPSC ★ FPSC

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

Question 15 of 40
★ PPSC ★ FPSC

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

Question 16 of 40
★ PPSC ★ FPSC

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

Question 17 of 40
★ PPSC ★ FPSC

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

Question 18 of 40
★ PPSC ★ FPSC

Which command is used to remove a file?

Question 19 of 40
★ PPSC ★ FPSC

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

Question 20 of 40
★ PPSC ★ FPSC

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

Question 21 of 40
★ PPSC ★ FPSC

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

Question 22 of 40
★ PPSC ★ FPSC

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

Question 23 of 40
★ PPSC ★ FPSC

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

Question 24 of 40
★ PPSC ★ FPSC

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

Question 25 of 40
★ PPSC ★ FPSC

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

Question 26 of 40
★ PPSC ★ FPSC

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

Question 27 of 40
★ PPSC ★ FPSC

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

Question 28 of 40
★ PPSC ★ FPSC

Which option will be used with ps command to slow the entire command line of the process being run?

Question 29 of 40
★ PPSC ★ FPSC

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

Question 30 of 40
★ PPSC ★ FPSC

Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it

Question 31 of 40
★ PPSC ★ FPSC

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

Question 32 of 40
★ PPSC ★ FPSC

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

Question 33 of 40
★ PPSC ★ FPSC

The % key allows you

Question 34 of 40
★ PPSC ★ FPSC

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

Question 35 of 40
★ PPSC ★ FPSC

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

Question 36 of 40
★ PPSC ★ FPSC

The field separator in cut command is specified with

Question 37 of 40
★ PPSC ★ FPSC

Which of the following options will be used to display number of blocks used by a file?

Question 38 of 40
★ PPSC ★ FPSC

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

Question 39 of 40
★ PPSC ★ FPSC

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

Question 40 of 40
★ PPSC ★ FPSC

Which command is used to display and create files?

✓ 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 →