20 min
Let's get some practice with some basic CLI commands. See how far you can get with this exercise before we move on!
For this exercise, create a directory called thelionking in a temporary directory and cd into it. Everything below goes inside of it.
- Create a directory called pridelands in thelionking
- Change directories into pridelands
- Create files mufassa.txt, scar.txt, simba.html, and rafiki.js in the pridelands directory
- Create a directory called elephantgraveyard in thelionking
- Add a file named hyenas.txt to the elephantgraveyard
- Move simba.html to the elephantgraveyard
- Move mufassa.txt to the elephantgraveyard
- Create a directory named thegorge in the thelionking
- Move hyenas.txt to thegorge
- Move simba.html and scar.txt to thegorge
- Create a file named stampede.md
- Move mufassa.txt to thegorge
- Delete stampede.md
- Delete mufassa.txt
- Move scar.txt and hyenas.txt to pridelands
- Create a directory named thejungle in thelionking
- Copy simba.html from thegorge to thejungle
- Create files named timon.txt and pumba.css in thejungle directory
- Rename the simba.html copy to matthewbrodericksimba.txt
- Delete simba.html from thegorge
- Delete thegorge
- Move rafiki.js to thejungle
- Move matthewbrodericksimba.txt, timon.txt, pumba.css, and rafiki.js to pridelands
- Delete directory thejungle
- Delete scar.txt
- Add file circleoflife.txt to pridelands
mkdir DIRECTORY_NAME- Create a directorytouch FILE_NAME- Create a new filecd DIRECTORY_NAME- Change directoriesmv FILE_PATH NEW_FILE_PATH- Move a file or folderrm FILE_NAME- Delete a file or folder