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)
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
Solution
Schedule the script /home/user/backup.sh to meet the following requirements
1. The job should run at the 2nd minute of every hour, but only during weekdays (Monday to Friday).
2. Additionally, the job must not run during the first and last days of each month.
3. It should execute a script located at /home/user/backup.sh and log the output to /var/log/backup.log (append mode).
Which of the following exact crontab entry is used to schedule this job.
1. The job should run at the 2nd minute of every hour, but only during weekdays (Monday to Friday).
2. Additionally, the job must not run during the first and last days of each month.
3. It should execute a script located at /home/user/backup.sh and log the output to /var/log/backup.log (append mode).
Which of the following exact crontab entry is used to schedule this job.
Solution
What is the primary purpose of this AWK script?
Solution
Solution
Select a single sed command to achieve the following.
a) Find all lines that start with the word "error".
b) Replace the word "error" with "warning" only on those lines.
c) Append " - needs review" to the end of those same lines.
a) Find all lines that start with the word "error".
b) Replace the word "error" with "warning" only on those lines.
c) Append " - needs review" to the end of those same lines.
Solution
Consider current_permissions contain the present permissions of a file. Which of the following shell script statement calculate the new permissions by removing the read permission?
Solution
Select a command to find all established suspicious TCP connections on port 80 using netstat
Solution
Which of the following vi command is used to replace the word 'apple' with 'orange' only in lines 10 to 20 of a file, and appear at the beginning or end of the line, without case sensitive and without user interaction.
Solution
Solution
Solution
Solution
Solution
You are working in a team with multiple developers using Git. One of your colleagues has created a feature branch from main, but over time, the main branch has received several commits. Your
colleague is now attempting to merge the feature branch into main, but a conflict arises in a file that was modified both in the main branch and in the feature branch.
How would you resolve the conflict, ensuring that the feature branch is up-to-date with the latest changes from main and that no work is lost? Additionally, how would you ensure that this situation is prevented in the future?
colleague is now attempting to merge the feature branch into main, but a conflict arises in a file that was modified both in the main branch and in the feature branch.
How would you resolve the conflict, ensuring that the feature branch is up-to-date with the latest changes from main and that no work is lost? Additionally, how would you ensure that this situation is prevented in the future?
Solution
Solution
Solution
Solution
Shape
Thickness [ / ]
3
All colors