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

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…

Contents