Recap - File Operations
Part of the Fundamentals section of Coddy's Terminal journey — lesson 15 of 82.
Challenge
EasyPut all your file operation skills together! You must execute the following commands in order to complete the task:
- Create a new file called
newfile.txtusingtouch - Copy
newfile.txttobackup.txtusingcp - Move
backup.txtinto thedocumentsfolder usingmv - Delete
newfile.txtusingrm - List the contents of the current directory using
ls - List the contents of the
documentsfolder usingls documents
Important: The test checks the output of your commands. Please run only these six commands in the exact order listed above. Do not run extra commands, as they will add extra output and cause the test to fail.
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