Linux mv Command Tutorial with Examples To Move Files

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-mv-command-tutorial-examples-move-files/
PINTEREST
PINTEREST
INSTAGRAM

Linux mv command is used to move or rename files. We generally provide the source and destination files and directories to mv command.

Syntax

Move

The regular usage of mv command is moving files or directories. We will provide source files or directory and destination file or directory. In this example we will move or rename directory named backup into live .

Force

If there is files and folders in  the destination the mv command will stop moving. We can force move operation with -f option.

Ask Before Overwrite

We can prompt before overwriting destination file. We will use -i option for this. In order to accept overwrite we should answer with y or Y .

Verbose

While moving files we may need to list all moved files. We call this verbose mode. This will list moved files line by line with -v option like below.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-mv-command-tutorial-examples-move-files/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  Windows Chkdsk Utility Tutorial with Examples To Fix File System Errors

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)