Chapter 6. Creating, Moving, Renaming, and Deleting Files and Directories
In this hour, you learn the basic Unix file-manipulation commands. These commands will explain how to create directories with mkdir
, remove directories with rmdir
, use cp
and mv
to move files about in the file system, and use rm
to remove files. The rm
command has its dangers: You learn that there isn't an “unremove” command in Unix, and you also learn how to circumvent the possible dangers that lurk in the program.
Goals for This Hour
In this hour, you will learn how to
Create new directories using
mkdir
Copy files to new locations using
cp
Move files to new locations using
mv
Rename files using
mv
Remove directories using
rmdir
Remove files using
rm
Minimize the danger of using ...
Get SAMS Teach Yourself Unix in 24 Hours FOURTH EDITION now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.