One Day One Cmd

Place for playing with commands…

Day 9 : $ mv

ODOC : $ mv file_name new_file_name. mv means move. This cmd will rename the original file name. Also we can move one file/folder from one path to another directory path.
eg: mv a.txt b.txt. This will rename a.txt into b.txt.

$ mv -r /home/arul/songs /home/arul/backup. This will move songs folder into backup folder. -r option used to move recursively.

Actually mv cmd will copy from source path to destination path and then will delete the original file from the source path.. 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: