Unix for Mac OS X 10.4 Tiger: Visual QuickPro Guide (2nd Edition)

Renaming or Moving Files

As we mentioned previously, a file's path is both its name and its location, so renaming a file is really the same as moving a file. In Unix, to move is to rename, and to rename is to move. When you move a file from one directory to another, you are removing the file's name from the first directory and adding it to the list of files in the second directory. You are actually modifying the directory, not the file.

To move or rename a single file or directory:

To move several files at once:

Категории