Chapter 13 Redhat
Which tar command option uses xz compression.
-J or --xz
Which tar command option a new archive.
-c or --create
Which tar command option uses bzip2 compression.
-j or --bzip2
What option would you use to preserve the permissions of files and folders when extracting an archive?
-p
Which tar command option lists the table of contents of an archive.
-t or --list
Which tar command option Extracts from an existing archive.
-x or --extract
A tar file has been compressed and the filename is mylogfiles.tar.gz Which compression option was used?
-z
Which tar command option Uses gzip compression.
-z or --gzip
What are the three options to compress a tar file? -z -x -j -J
1,,3,4
The tar command will archive files, but you need to use the gzip command to compress files. -c -t -x --list
2,4
The tar command will archive files, but you need to use the gzip command to compress files. True False
False
When decompressing a tar file, you must extract the tar file first. True False
False
Of the three types of compression options, put them in order of least compress to best compression. gzip, bzip2, xz xz, bzip2, gzip bzip2,gzip, xz
gzip, bzip2, xz
What command would I use to sync files or folders between a workstation and a remote server?
rsync
What command uses the SSH protocol where you can security transfer files from one workstation to a remote workstation?
scp
If I wanted to transfer a file (/etc/passwd) from one server to another one and place it in the /tmp folder, which complete command would I use? scp /etc/passwd student@serverb:/tmp scp -r /etc/passwd student@serverb:/tmp scp /tmp student@serverb:/etc/passwd scp -r /tmp student@serverb:/etc/passwd
scp /etc/passwd student@serverb:/tmp
What is the name of the command used in RHEL to archive and compress files?
tar
Which command below creates an archive file called mylogfiles.tar and includes the directory and files in /var/log? tar -cf mylogfiles.tar /var/log tar -cf mylogfiles.tar /var/log/ tar -c mylogfiles.tar /var/log tar -f mylogfiles.tar /var/log
tar -cf mylogfiles.tar /var/log
Type the FULL command to list the contents of mylogfiles.tar.
tar -tf mylogfiles.tar