CORRECT ANSWERS (VERIFIED ANSWESRS) Q&A
2026-2027 |INSTANT DOWNLOAD PDF
1. Which command displays the current working directory in
Linux?
A. dir
B. pwd
C. ls
D. cd
Rationale: The pwd (print working directory) command displays
the full path of the current directory.
Correct Answer: B. pwd
2. Which command lists files and directories in the current
location?
A. cat
B. pwd
C. ls
D. who
Rationale: The ls command lists the contents of a directory.
Correct Answer: C. ls
,3. Which command changes from one directory to another?
A. cp
B. cd
C. mv
D. mkdir
Rationale: The cd command changes the current working
directory.
Correct Answer: B. cd
4. Which command creates a new directory?
A. touch
B. mkdir
C. rmdir
D. ls
Rationale: mkdir creates a new directory.
Correct Answer: B. mkdir
5. Which command removes an empty directory?
A. rm
B. delete
C. rmdir
D. erase
Rationale: rmdir deletes only empty directories.
,Correct Answer: C. rmdir
6. Which command copies a file?
A. cp
B. mv
C. cat
D. chmod
Rationale: The cp command duplicates files or directories.
Correct Answer: A. cp
7. Which command moves or renames a file?
A. cp
B. mv
C. rm
D. pwd
Rationale: mv moves files and also renames them.
Correct Answer: B. mv
8. Which command deletes a file?
A. erase
B. del
C. rm
D. clr
, Rationale: The rm command removes files.
Correct Answer: C. rm
9. Which command creates an empty file?
A. mkdir
B. touch
C. newfile
D. file
Rationale: touch creates an empty file if it does not already
exist.
Correct Answer: B. touch
10. Which command displays the contents of a text file?
A. cat
B. pwd
C. cp
D. ls
Rationale: cat outputs file contents to the terminal.
Correct Answer: A. cat
11. Which symbol represents the root directory?