Week 1 Graded Assignment
Week 1 Graded Assignment
Graded Assignment
Problem 1
The option used along with 'ls' command to display the hidden files is ......... (Do not add hyphen).
(NAT)
Answer
a
Problem 2
Which directory contains the information related to host specific system configuration files?
A. /bin
B. /opt
C. /media
D. /etc
Answer
(D)
Problem 3
What does the first column of the output of the command "ls -l" represent? (CQ)
Answer
(C)
Problem 4
Given below is the output of the command ls -l . What can you know about the file/directory
abc.ab from the output?
total 4
drwxr-xr-x 1 runner runner 0 Dec 20 09:37 abc.ab
-rw-r--r-- 1 runner runner 16 Sep 23 02:52 main.sh
(MSQ)
A. All users can execute the file abc.ab .
B. All users can cd into the directory abc.ab , i.e. make it their working directory.
C. All users can edit the contents of the directory abc.ab .
D. All users can list the contents of the directory abc.ab .
E. Only the owner can read the file abc.ab .
F. All users can read the file abc.ab .
G. Only the owner can read the directory abc.ab .
Answer
(B) and (D)
Problem 5
What is the command to change the permission of the file myfile.sh such that the owner has
full access, the group has read and execute access and other users have only read access? (MCQ)
Answer
(B)
Problem 6
What is the expected output of the command date myfile.txt ? (MCQ)
Answer
(C)
Problem 7
The file "longFile.txt" has 5000 lines. From the commands given below which command can be
used to read the file in a page by page manner? (MSQ)
A. more
B. less
C. cat
D. echo
Answer
(A) and (B)
Problem 8
Match the following:
Commands Uses
1. mv A. Delete a file
Answer
(D)
Problem 9
A workstation is being shared by two users who are on different groups.
(D) ls More_Files
Answer
(B)
Problem 10
Ram is new to Linux, and wants to delete a file file_to_delete.txt in the current directory,
using command line. Upon using the command rm ./file_to_delete.txt , he was unsuccessful.
If the output of ls -l is as follows, then which of the following commands must be run inorder to
delete the file?
(A)
(B)
(C)
(D)
Answer
(C)