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!
- 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
You will need to run six commands in order. Think carefully about each step before running it!
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