From the course: Learning Linux Command Line
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Copy, move, and delete files and directories - Linux Tutorial
From the course: Learning Linux Command Line
Copy, move, and delete files and directories
- [Instructor] It's pretty common to need to move copy and delete files from the command line. In fact, a lot of experience command line users prefer using the command line for file management because in some cases, and if you're accustomed to doing so, it can be a lot faster to type commands than to navigate and drag files around with a mouse on screen. The first command I want to introduce here is CP for copy. Let's make a duplicate copy of our poems dot TXT file. To do that I'll write CP, space poems dot TXT, space poems two dot TXT. The first file name argument to the CP command is the file we want to copy and the second file name argument is where we want to copy it to. I'll press enter and then I'll take a look at the contents of this directory with LS and there's poems two dot TXT. We can also copy a file to a different path. For example, we can copy our simple data dot TXT file to our employee info sub folder…
Contents
-
-
-
-
-
The Linux file system6m 18s
-
(Locked)
Understanding file paths4m 50s
-
(Locked)
Navigating the file system6m 58s
-
(Locked)
Exploring the output of the ls command2m 33s
-
(Locked)
Create and remove directories3m 36s
-
(Locked)
Copy, move, and delete files and directories7m 53s
-
(Locked)
Find files from the command line2m 10s
-
(Locked)
Understand user roles and sudo6m 3s
-
(Locked)
Understand file permissions5m 57s
-
(Locked)
Modify file permissions7m 4s
-
(Locked)
Create hard and symbolic links3m 26s
-
(Locked)
Challenge: Fix broken syntax26s
-
(Locked)
Solution: Fix broken syntax1m 24s
-
(Locked)
Challenge: Practice working with files34s
-
(Locked)
Solution: Practice working with files32s
-
-
-
-