From the course: CompTIA Linux+ (XK0-005) Cert Prep
Unlock the full course today
Join today to access over 24,300 courses taught by industry experts.
Move and rename files and dirs - Linux Tutorial
From the course: CompTIA Linux+ (XK0-005) Cert Prep
Move and rename files and dirs
- [Instructor] The syntax for the Move Command is mv, which is the command name followed by options. The options can take the form of single letters preceded by a hyphen or complete words preceded by two hyphens. If they are single letters they can be combined into one sequence. For instance, -uf. The source file is the path of the file you want to move. The path can be either absolute or relative. In this example, I've used a relative path with a ~shortcut to my home directory. If you want to move multiple files just separate them with spaces. You can also use file globbing or brace expansion covered in this course to match multiple files. The destination path is where you want to move the file to. Just like the source path this can be an absolute or relative path. In fact, you can combine relative and absolute paths for source and destination files. However, there can only be one destination path. In my example, I'm…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
About Linux Shells6m 21s
-
(Locked)
About Linux Terminals1m 50s
-
(Locked)
Get help on the command line5m 8s
-
(Locked)
Understand the Linux Filesystem Hierarchy8m 22s
-
(Locked)
Understand filesystem paths6m 2s
-
(Locked)
Create files and dirs4m 11s
-
(Locked)
Get information about files5m 29s
-
(Locked)
Copy files and dirs4m 39s
-
(Locked)
Move and rename files and dirs4m 11s
-
(Locked)
Remove files and dirs3m 44s
-
(Locked)
Create links to files and dirs6m 24s
-
(Locked)
Use input-output redirection (>, >>, |, 2>)1m 55s
-
(Locked)
Connect programs with named and unnamed pipes4m 19s
-
(Locked)
File redirects and tees6m 7s
-
(Locked)
Find files using Locate4m 11s
-
(Locked)
Find files with Find7m 28s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-