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 exactly six commands in order. Do not run any extra or repeated commands: the test checks the combined output of all commands you run, so any additional commands will cause the result to be marked wrong. Think carefully about each step, especially when deleting!
Try it yourself
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 PipelinePractice on your own: Terminal playground