Join Scott Simpson for an in-depth discussion in this video Copy, move, and delete files and folders, part of Learning Linux Command Line.
- [Voiceover] It's pretty common to need…to move, copy, and delete files at the Command Line.…In fact, a lot of experienced Command Line users…prefer the Command Line for file management…because it can be a lot faster than dragging files around…with the mouse on-screen.…The first command I want to introduce to you here,…is cp for copy.…Let's make a duplicate copy of our poems.txt file.…I'll write cp poems.txt,…space, poems2.txt.…The first file name is the file you want to copy,…and the second file name is where you want to copy it to.…
I'll press Enter, and then I'll take a look…at the contents of this folder with LS.…And I can see, there's my poems2.txt.…You can also copy a file to a different path,…for example we can copy our simple_data.txt file…to our Employee Info subfolder inside our VHR folder.…To do that, I'll write cp simple_data.txt,…space, departments/hr/employee\ info/…Remember, we need to escape that space in employee info.…
And if I list that folder,…I can see that the file's been copied there.…Let's take a look at moving a file rather than copying it.…
This course will establish the foundation for more advanced Linux topics. Find other Linux training courses here.
- What is the Linux command line?
- Writing Linux commands at the prompt
- Finding help for Linux commands
- Editing files and folders
- Configuring user roles and file permissions
- Using pipes to connect commands
- Peeking at files
- Searching and editing text
- Finding disk and system information
- Installing and updating software
Skill Level Beginner
1. Command-Line Basics
2. Files, Folders, and Permissions
3. Common Command-Line Tasks and Tools
4. A Peek at Some More Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.