mv [options] source target
Copies source to target then deletes the original source.
-b
Creates a backup copy of the source before moving
-i
Waits for conrmation, if necessary, before an existing targetfile is overwrit-
ten
rm [options] files
Removes the specied les from the le system. Directories are not removed by
rm unless the option -r is used.
-r
Deletes any existing subdirectories
-i
Waits for conrmation before deleting each le
ln [options] source target
Creates an internal link from source to target. Normally, such a link points directly
to source on the same le system. However, if ln is executed with the -s option,
it creates a symbolic link that only points to the directory in which source is locat-
ed, enabling linking across le systems.
-s
Creates a symbolic link
cd [options] [directory]
Changes the current directory. cd without any parameters changes to the user's
home directory.
mkdir [options] directory
Creates a new directory.
rmdir [options] directory
Deletes the specied directory if it is already empty.
chown [options] username[:[group]] files
Transfers ownership of a le to the user with the specied username.
-R
Changes les and directories in all subdirectories
chgrp [options] groupname files
Transfers the group ownership of a given file to the group with the specied
group name. The le owner can change group ownership only if a member of
both the current and the new group.
Shell Basics 107