Challenge 02 - Handling directories
< Previous Challenge - Home - Next Challenge >
Description
In this challenge you will learn how to perform common directory operations such as displaying your current directory and listing directory contents.
- Display your current directory
- Go to the parent directory of the current directory
- Go to the root directory (
/
)
- List the contents of the root directory (
/
)
- Display a long listing of the root directory
- Stay where you are and list the contents of your home directory (
~
)
- List all the files (including hidden files) in your home directory (
~
)
- Use a single command to create the following directory tree
~/folder1/folder2/folder3
(folder3 is a subdirectory from folder2, and folder2 is a subdirectory from folder1)
- List recursively the content of your
~
- Find the directories within your home folder
Success Criteria
- Confirm you can see your username under the home folder
- Confirm you are in the
/home
directory (~
)
- Validate you are in the
/
directory
- Confirm you can list the files under the
/
- Confirm you can see the long list with details from
/
directory
- Confirm you are listing the content of
~
and not from /
- Confirm you can see the hidden files from your home directory
- Validate if you were able the create the directory tree using a single command
- Confirm if you are seeing a recursive list of the content from your
~
- Validate if only directories are being listed within your home folder
Learning Resources