Linux+ System Management: Manage Files
In this lab, you'll practice using the Linux command line interface (CLI). When you’re finished, you’ll be able to use the CLI to view, edit, manipulate, and back up files.
Terms and conditions apply.
Lab info
Lab author
Challenge
Get Started in the Lab Environment
Here are the initial instructions and explanation of the lab environment. Read this while your environment is busy creating itself from nothing. Yes, this violates physics; we know. How fun!
Challenge
View Files Using ls
You will start by learning to examine and navigate the file system in your home directory using ls and cd. As well, you will practice creating and removing some files and directories.
Challenge
Examine File Timestamps Using stat
Now that you are comfortable with files and the file system, you will delve more into viewing file timestamps using stat.
Challenge
Use vim to Edit Files
Up until now, you have not modified file contents much. A key, but initially confusing Linux editor is vim; you will use vim to create, modify, and view file contents.
Challenge
Modify Files with sed
Linux has a handy command called sed that allows you to modify a file without using an editor. This is especially useful for bulk edits. You will use sed to change a config file.
Challenge
Back up Files Using tar
Backing up files is key to help recover from a data loss. You will use tar to create some backups, and will learn how to compress backups, as well as how to view and extract files.
Challenge
The Last Challenge
Welcome to the final challenge! This is your last chance to experiment in the environment. Clicking Finish Lab will end this little world that flittered into existence just for you.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Basic Linux CLI knowledge
- A fundamental understanding of files on Linux