Summary

Most of this hour was spent learning about the powerful and complex ls command and its many ways of listing files and directories. You also learned how to combine command flags to reduce typing. You learned how to use the touch command to create new files and update the modification time on older files, if needed. The hour continued with a discussion of how to ascertain the amount of disk space you're using and how much space is left, using the du and df commands respectively. Finally, you learned how the compress command can keep you from running out of space by ensuring that infrequently used files are stored in the minimum space needed.

Get Sams Teach Yourself UNIX® in 24 Hours Second 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.