How Do You Move Files & Directories with Linux Command Line?

Subscribers:
520
Published on ● Video Link: https://www.youtube.com/watch?v=aU6P5vOkwAo



Duration: 2:07
28 views
1


The mv (Move) command is used to move one or more files or directories from one place to another. Apart from moving the files, it can also rename a file or directory.

🔥 GROW YOUR CAREER WITH LINUX ➡️ https://shareasale.com/r.cfm?b=734319&u=3115204&m=59485&urllink=&afftrack=
(Learn and get certified by the experts at the Linux Foundation with this affiliate link)

For instance, to move a file named funny-story.txt from the current directory to Documents directory, the command would be:

mv funny-story.txt Documents/

If you want to move the a directory it is much the same way, so to move the Music directory into the documents directory you would

mv Music/ Documents/

If you want to just rename a file named funny-story.txt to hilarious-story.txt, you can use the mv command like:

mv funny-story.txt hilarious-story.txt

Just like renaming a file, you can rename a directory using mv command.

For example, to rename a directory named Docs_bckp to Docs_archive, the command would be:

mv Docs_bckp Docs_archive
Support the Channel https://donorbox.org/virtual-assistant-for-linux







Tags:
LINUX
OPEN SOURCE
TERMINAL
COMMAND LINE
COMPUTER
LAPTOP
HOW TO
TECH
TECHNOLOGY
SOFTWARE
HARDWARE
OPERATING SYSTEM