Question 1
a
b
c
d
The IIT Madras BS System Commands (System Commands) Quiz 1 paper sat on 5 Jun 2022, in the May 2022 term: 20 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
a
b
c
d
Correct answers
a
c
Correct answers
Which of the following statement(s) will be true after executing the above command.
Correct answers
Correct answer
Number of files in the current directory.
Number of directories in the current directory.
Number of directories and all sub-directories in the parent directory.
Number of directories and all sub-directories in the current directory.
Number of directories in the parent directory.
Correct answer
Number of directories and all sub-directories in the current directory.
Below are three date-time formats according to ISO 8601 in UTC
Select the extended regular expression that matches only with one of the above date-time formats.
Correct answer
Correct answers
The above command will print the filenames in the current working directory that,
Starts with an uppercase letter.
Starts with a lowercase letter.
Does not start with an uppercase letter.
Does not start with a lowercase letter.
Correct answer
Does not start with a lowercase letter.
What will be the output of the last command in the above sequence of commands?
Correct answer
Correct answer
Correct answer
After 10 seconds.
After 20 seconds.
After 30 seconds.
Immediately.
Correct answer
Immediately.
1—>b; 2—>a; 3—>a; 4—>c;
1—>a; 2—>b; 3—>b; 4—>d;
1—>a; 2—>b; 3—>b; 4—>c;
1—>b; 2—>a; 3—>b; 4—>c;
Correct answer
1—>b; 2—>a; 3—>b; 4—>c;
Below are the commands executed in the given sequence in an empty directory(containing no files or directories). Enter the number of files that will be created at the end of the execution of the below commands.
NOTE: Enter your answer to the nearest integer.
Correct answer: 1
Select the command(s) that prints the file/directory names, that start with the letter "a" and end with the letter "e" (case-sensitive) present in the current working directory.
Correct answers
Consider the long listing output of the present working directory below.
Which of the following statement(s) are true?
Correct answers
Which of the following command will output the full names of the 3 youngest employees, one name on each line.
Correct answers
Which of the following statements for hard and soft(symbolic) links are true.
Inode of a file and its hard link will be the same.
Inode of a file and its soft link will be the same.
Hard links become inaccessible after the file it links to is deleted.
Soft links become inaccessible after the file it links to is deleted.
Correct answers
Inode of a file and its hard link will be the same.
Soft links become inaccessible after the file it links to is deleted.
Based on the above data, answer the given subquestions.
NOTE: Enter your answer to the nearest integer.
Correct answer: 1
Based on the above data, answer the given subquestions.
Correct answers