6. Compressing and Sorting in Linux Flashcards
What is an archive?
A set a files and folders located in a single file.
What is tar used for?
To create an archive.
What is gzip used for?
To compress or uncompress files.
What is the extention of a tar file?
.tar
What is the extention of a gzip file?
.gz
What is the command to create an archive with tar?
tar -cf
What is the color of an archived or compressed file?
red
What is the command to read the content of a archive (tar file)?
tar -tf
What is the command to create and compress a file with tar?
tar -czf
What is the command to decompresse, extract and verbalise with tar?
tar -xvzf
What is the command to sort by size and list files?
ls -S or ls –sort=size (largest first)
What is the command to sort by time and list files?
ls –sort=time
What is the command to sort by extentsion and list files?
ls –sort=extentsion
What is the command to sort by version and list files?
ls –sort=version
How to reverse the sorting while listing the files?
ls -r