Quiz based on http://software-carpentry.org/v5/novice/shell/02-create.html
Question (1)
Complete the following steps:
- Show the current directory
- Create a sub-directory
- List the sub-directories contents
- Delete the sub-directory
Select one or more correct ways:
a) pwd, mkdir sub_directory_name, ls sub_directory_name, rm -r sub_directory_name
b) pwd, mkdir sub_directory_name, ls sub_directory_name, rmdir sub_directory_name
c) pwd, mkdir sub_directory_name, ls sub_directory_name, rm sub_directory_name
d) pwd, mkdir sub_directory_name, ls sub_directory_name, del sub_directory_name
e) pwd, md sub_directory_name, ls sub_directory_name, rm -r sub_directory_name
Question (2)
Order the following steps so that a new file containing text is created in nano, saved in a subdirectory, and later deleted.
a) nano filename.txt
b) ctrl + O
c) rm filename.txt
d) cd dir
e) mkdir dir
f) cp filename ./dir
g) type text in nano