home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: more Chapter 2
UNIX Commands
Next: Reference: nawk






sources target

Basic command to move files and directories around on the system or to rename them. mv works as follows:

Source Target Result
File name Rename file as name .
File Existing file verwrite existing file with source file.
Directory name Rename directory as name .
Directory Existing directory Move directory to be a subdirectory of existing directory.
One or more files Existing directory Move files to directory.




Use this when one of the names begins with a - .


Force the move, even if target file exists; suppress messages about restricted access modes.


Inquire; prompt for a y (yes) response before overwriting an existing target.

Previous: Reference: more UNIX in a Nutshell: System V Edition Next: Reference: nawk
Reference: more Book Index Reference: nawk

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System