Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : SYSTEM COMMANDS
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Which of the following octal permission values grants the specified permissions?
- User: Read and Write
- Group: Read and Execute
- Others: Read-only
- User: Read and Write
- Group: Read and Execute
- Others: Read-only
Solution
A system administrator creates a file named "report.txt" and then creates another file named "backup.txt" using the following command:

Later, "report.txt" is deleted using
.
Which statement is correct?
Later, "report.txt" is deleted using
Which statement is correct?
Solution
Given:

What does this command produce?

What does this command produce?
Solution
For which of the following commands will the output have the 1st and 2nd columns inverted? In the input, the 1st and 2nd columns are separated by a comma, and in the output also, the columns should be separated by a comma.
Solution
Match the AWK built-in variables with their purposes.

Solution
Suppose you have modified
file. You want to commit only this file. Which sequence is correct?
Solution
Match the following commands with their corresponding purposes.

Which of the following is the correct matching?
Which of the following is the correct matching?
Solution
Match the following Bash prompt variables with the situations in which they are used.

Solution
A user wants the alias:
to be available every time they open a new interactive shell. In which file should it be added?
Solution
The primary purpose of disk mirroring is to?
Solution
Consider:

You want to count dates whose month is January, February, or March. Which command is correct?
You want to count dates whose month is January, February, or March. Which command is correct?
Solution
Which statement correctly describes what the following regular expression checks when used with
?

Solution
Consider the following directory structure:

How many files will be matched by the following command?

How many files will be matched by the following command?
Solution
Assume you have executed more than 1000 commands in the last 1 hour. What does the following command do?

Solution
Consider the following Bash script:

What is the purpose of this script?
What is the purpose of this script?
Solution
Consider a file
with the following contents:

Given below are four
commands and their possible outputs. Match each command with its corresponding output.
Commands
1.
2.
3.
4.
Outputs
Output A

Output B

Output C

Output D

Which of the following correctly matches the commands with their outputs?
Given below are four
Commands
1.
2.
3.
4.
Outputs
Output A
Output B
Output C
Output D
Which of the following correctly matches the commands with their outputs?
Solution
What will be the output of the following
command when executed on the file
?

The file
contains:

The file
Solution
Select all the correct statements about the "PATH" variable?
Solution
Which statements about exported variables are correct?
Solution
Consider the following directory structure:

Which of the following Bash commands will create exactly this directory structure?
Which of the following Bash commands will create exactly this directory structure?
Solution
Which of the following commands will print all lines in
except the first line (header line)?
Solution
Inscript
Consider the following Bash script:

The script is executed as:

What numerical value is printed?
Consider the following Bash script:
The script is executed as:
What numerical value is printed?
Solution
Inscript
What does the expression below mean?

How many times will /report.sh run in a 24-hour day?
What does the expression below mean?
How many times will /report.sh run in a 24-hour day?
Solution
Shape
Thickness [ / ]
3
All colors