Chapter 4. Listing Files and Managing Disk Usage
This hour introduces you to the ls
command, one of the most commonly used commands in Unix. The discussion includes more than a dozen different command options, or flags. You also learn how to use the touch
command to create files, how to use the du
command to see how much disk space you're using, and how to use the df
command to see how much disk space is available. Finally, the gzip
command can help you minimize your disk space usage, particularly on files you do not use very often.
Goals for This Hour
In this hour, you will learn
All about the
ls
commandAbout special
ls
command flagsHow to create files with
touch
How to check disk space usage with
du
How to check available disk space with
df
How to ...
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.