A Linux system administrator’s life is filled with files. Being able to manage files is a key skill for any system administrator. In this hands-on lab, we will explore a number of file management operations in Linux. We will create, delete, copy, and move files and directories. Create hard and soft links, lists, sets, and change standard ugo/rwx permissions, as well as archive, compress, unpack, and uncompress files using tar, star, gzip, and bzip2.
Successfully complete this lab by achieving the following learning objectives:
- Archive, Compress, Unpack, and Uncompress Files
- Create a tar archive from a set of files.
- Use the various compression tools on the tar archive and compare the results.
- Create a compressed archive in one step, and then list it’s contents in various ways.
- Uncompress the compressed archive to a new local location.
- Create, Delete, Copy, and Move Files and Directories
- Create a file and directory structure.
- Copy files and directories.
- Move files and directories.
- Delete files and directories.
- Create Hard and Soft Links
- Create a soft link and verify what has happened.
- Create a hard link and verify what happened.
- See what happens when a soft link is broken.
- See how to find all the hard links to a file.
- List, Set, and Change Standard ugo/rwx Permissions
- Create a shared directory for 3 users to share files properly.
- Setup the users, and sign in as each, to create a file in the shared directory.
- Fix the permissions so that all users can access each others files properly.
- Create more files to verify things work.