Recap - Directory Operations
Part of the Fundamentals section of Coddy's Terminal journey — lesson 20 of 82.
Challenge
EasyPut all your directory operation skills together!
- Create a new directory called
projectsusingmkdir - Copy the
documentsdirectory intoprojectsasdocuments_backupusingcp -r - Rename
projects/documents_backuptoprojects/archiveusingmv - Delete the original
documentsdirectory usingrm -r - List the contents of the current directory using
ls - List the contents of the
projectsdirectory usingls projects
You will need to run six commands in order. Think carefully about each step — especially when deleting!
Try it yourself
Terminal
All lessons in Fundamentals
4Directories
Create A DirectoryCopy A DirectoryMove And Rename A DirectoryDelete A DirectoryRecap - Directory Operations7File Content
Head And TailWord CountSort CommandUnique CommandGrep BasicsGrep With FlagsRecap - Text Detective2Navigation
Print Working DirectoryList FilesChange DirectoryAbsolute vs Relative PathsHome And Root DirectoryRecap - Find Your Way8Redirection
Standard OutputOverwrite To A FileAppend To A FileStandard InputStandard ErrorRecap - Log Builder6Wildcards And Patterns
The Star WildcardThe Question Mark WildcardBracket WildcardsCombining WildcardsRecap - Selective Operations9Piping
What Is A PipeChaining Two CommandsChaining Multiple CommandsPipe With GrepRecap - Data Pipeline