0% found this document useful (0 votes)
3 views1 page

MV Command Usage and Options Guide

The 'mv' command is used to move or rename files and directories in a Unix-like operating system. It supports several options such as prompting before overwriting, forcing moves, and providing verbose output. Examples illustrate its usage for moving files to directories and renaming files.

Uploaded by

ashrufsd035
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

MV Command Usage and Options Guide

The 'mv' command is used to move or rename files and directories in a Unix-like operating system. It supports several options such as prompting before overwriting, forcing moves, and providing verbose output. Examples illustrate its usage for moving files to directories and renaming files.

Uploaded by

ashrufsd035
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

MV COMMAND NOTES

================

Purpose:
--------
Move or rename files/directories.

Syntax:
-------
mv [OPTIONS] SOURCE DEST

Common Options:
---------------
-i Prompt before overwrite
-f Force move (no prompt)
-n Do not overwrite existing files
-v Verbose output

Examples:
----------
mv [Link] /home/user/docs/
mv [Link] [Link]
mv -i [Link] backup/
mv *.txt /tmp/

You might also like