Backups are a fact of life. Using tar we can archive files including metadata like file ownership and permissions. These archives can be further compressed using gzip, bzip2, and xz compressors.
- [Instructor] We often have to archive…files and directories for backup purposes.…With other operating systems, such as Windows,…we might use .zip for this.…In Linux, we use an archiver to preserve metadata…such as ownership, permissions, access control lists,…as well as the file data itself.…The tool we usually use is tar, or Tape Archiver.…Tar itself doesn't compress files…but leaves that job up to compression tools.…To demonstrate, we're going to create an archive of the…/etc directory.…Because we're archiving a system directory,…we'll need to elevate privileges with sudo.…
Type in sudo, space,…tar, space, --xattrs.…Xattrs preserves extended attributes, including…access control lists and SELinux security contexts.…Space, -c to create an archive,…v for verbose, p to save ownership and permissions,…and then f for the final name of the archive.…We're going to call it etc.tar, space,…and then the last argument is going to be…the items you want in the archive;…in our case, etc, the entire directory.…
Go ahead and hit enter and type in your password.…
- Distinguish the difference between the –help option and the output of the man command.
- Define what the uptime command is used for.
- Compare the more command with the less command.
- State which compression algorithm is built into the tar command.
- Write where all operating system files in Linux are stored.
- List the three mods in vi.
Skill Level Intermediate
Setting Up a Red Hat Enterprise Linux Serverwith Sandra Toner2h 46m Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
1. Getting Help
2. Using Basic Commands
3. Navigating File Systems
4. Editing Text
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.