Home / Study library / System Commands / End Term · Jan 2026 System Commands · End Term · Jan 2026 · AN
System Commands · End Term · Jan 2026 AN
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
0 / 20 published solutions
Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21
Question 2 NAT · 5.0 marks You are given a file emp.txt with the following contents
You execute the following command
How many lines will be printed as output?
A published solution is not available for this question yet.
Report a correction for Q2
Question 3 NAT · 5.0 marks What will be the output of the following command?
A published solution is not available for this question yet.
Report a correction for Q3
Question 4 NAT · 5.0 marks What is the output after executing the following shell script?
A published solution is not available for this question yet.
Report a correction for Q4
Question 5 NAT · 5.0 marks What is the output after executing the following shell script?
A published solution is not available for this question yet.
Report a correction for Q5
Question 6 NAT · 5.0 marks A developer runs the following shell commands to create a directory structure and count the
number of **files** present:
Counts number of files found.
A published solution is not available for this question yet.
Report a correction for Q6
Question 7 NAT · 5.0 marks A data analyst is processing a file that contains product categories and sales values:
They run the following awk script:
What is the output produced by the above command?
A published solution is not available for this question yet.
Report a correction for Q7
Question 8 NAT · 5.0 marks A commit tree has
Total number of Git objects stored = ?
A published solution is not available for this question yet.
Report a correction for Q8
Question 9 MCQ · 5.0 marks When the following shell command is executed
How many lines get printed?
A published solution is not available for this question yet.
Report a correction for Q9
Question 10 MCQ · 5.0 marks After executing the following shell script
What is printed on the terminal?
A published solution is not available for this question yet.
Report a correction for Q10
Question 11 MCQ · 5.0 marks Consider the following script
What is the purpose of the above script?
B. Remove adjacent duplicate lines
A published solution is not available for this question yet.
Report a correction for Q11
Question 12 MCQ · 5.0 marks A research team collected responses stored in a file called
The file contains the following entries:
They apply the following sed script named
:
The command executed is:
How many lines are there in the final output?
A published solution is not available for this question yet.
Report a correction for Q12
Question 13 MCQ · 5.0 marks A DevOps engineer wants to check whether the keyword foo appears in a log file named file.txt
before triggering an alert. They use the following Bash command:
When does YES print?
A published solution is not available for this question yet.
Report a correction for Q13
Question 14 MCQ · 5.0 marks A developer creates the following Makefile in an empty project directory:
They now run the command for the first time:
How many **shell commands** will be executed by make?
A published solution is not available for this question yet.
Report a correction for Q14
Question 15 MCQ · 5.0 marks If two developers clone the same remote repository and independently create commits on the
same file and push without pulling, what will happen?
A. Last push overwrites previous
B. Remote automatically merges
C. Push rejected for non-fast-forward
D. Both commits are appended linearly
A published solution is not available for this question yet.
Report a correction for Q15
Question 16 MSQ · 5.0 marks After executing the following script
Which of the given options are TRUE?
A published solution is not available for this question yet.
Report a correction for Q16
Question 17 MSQ · 5.0 marks A system administrator is troubleshooting DNS resolution delay on a Linux server. To quickly
check the resolved IP address of a domain without unnecessary verbose output, the admin runs
the following command
Which of the following statements are TRUE about the command?
A published solution is not available for this question yet.
Report a correction for Q17
Question 18 MSQ · 5.0 marks A system administrator adds the following entry in the crontab to automate report generation:
Which of the following statements are TRUE?
Note:- the following is the Cron format
B. Standard error is redirected
C. Executes only in the morning hours
D. Log file is overwritten
A published solution is not available for this question yet.
Report a correction for Q18
Question 19 MSQ · 5.0 marks A DevOps engineer writes the following shell script to check whether a string variable is
lexicographically greater than the value "b" before proceeding with a deployment step:
The script is executed in a Linux environment.
What is the result of executing the above script?
A published solution is not available for this question yet.
Report a correction for Q19
Question 20 MCQ · 5.0 marks Consider the following data to answer the given sub-questions.
The **employees.txt** file contains the following data:
The **attendance.txt** file contains the following data:
And the script **report.awk** is :
Run the script report.awk as :
If an employee ID is missing in the attendance file, what happens?
A published solution is not available for this question yet.
Report a correction for Q20
Question 21 NAT · 5.0 marks Consider the following data to answer the given sub-questions.
The **employees.txt** file contains the following data:
The **attendance.txt** file contains the following data:
And the script **report.awk** is :
Run the script report.awk as :
The Value of the present variable is?
A published solution is not available for this question yet.
Report a correction for Q21