Files can be copied, moved, and deleted. Learn how to accomplish these tasks in this video.
- [Instructor] 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, space, 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 again with ls.…And I can see, there's my original poems file,…and here's poems2.txt.…You can also copy a file to a different path.…For example, we can copy our simple_data file…into our employee info subfolder inside the hr folder.…To do that, I'll write cp, simple_data.txt,…and then use Tab completion to get…to departments/hr/employee\ info/.…
Remember, we need to escape that space in employee info.…
- Recognize what the characters “-h” represent in the statement “df –h/home/alice/Documents”.
- Explain how to recall a previous command in Bash.
- Identify what the command “ls -l” will show.
- Recall what is needed to use the find command to look for files by name, size, and so on.
- List the two modes file permissions can be set to.
- Recall why many command line tools are intended to be used in pipes with other commands.
- Explain what the command “grep -E "" report.txt” will show.
- Identify what the “>” symbol is often used for.
Skill Level Beginner
Learning SQL Server Development on Linuxwith Joey D'Antoni1h 54m Intermediate
What you should know1m 51s
1. Setting Up Your Environment
2. Command-Line Basics
3. Files, Folders, and Permissions
4. Common Command-Line Tasks and Tools
5. A Peek at Some More Advanced Topics
Next steps1m 28s
- 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.