Knowee
Questions
Features
Study Tools

Your Bash script is intended to automate the process of compressing files. You want to use the highest level of compression. Which command should you use?1.0 Marks7z a -mx9 archive.7z /path/to/filesgzip -9 filename.txtzip -r9 archive.zip /path/to/filescompress -f9 filename.txttar -czvf archive.tar.gz /path/to/files

Question

Your Bash script is intended to automate the process of compressing files. You want to use the highest level of compression. Which command should you use?1.0 Marks7z a -mx9 archive.7z /path/to/filesgzip -9 filename.txtzip -r9 archive.zip /path/to/filescompress -f9 filename.txttar -czvf archive.tar.gz /path/to/files

🧐 Not the exact question you are looking for?Go ask a question

Solution

The command you should use to achieve the highest level of compression in a Bash script is:

7z a -mx9 archive.7z /path/to/files

This command uses the 7z (7-Zip) utility to create an archive with the maximum compression level (-mx9). The 'a' option tells 7z to add files to the archive. 'archive.7z' is the name of the archive you are creating, and '/path/to/files' is the directory containing the files you want to compress.

This problem has been solved

Similar Questions

You have a compressed file named "archive.tar.gz" and you want to extract its contents to a directory named "backup." Which command should you use?1.0 Markstar -xzvf archive.tar.gz -C backupextract archive.tar.gz -d backupunzip archive.tar.gz backupextract -z archive.tar.gz -d backupgunzip archive.tar.gz -d backup

Which of the following commands extracts the contents of the compressed archive file1.tar.gz?

You will need to create the backup.sh file and give it the appropriate permission. The contents will need a shebang line and a tar command; you might like to add an echo to confirm that the script is running. The tar command can be modelled on those you used earlier. You will need to give the name of the directory to compress, and choose a sensible filename for the archive that is produced. Once the script is written, you should test that it runs and does what you wish.

Question 4Which of the following Powershell commands will take all files from the desktop “TestArchive” directory, and archive it in a “TestArchive.zip” file?1 point Expand-Archive -path C:\Users\testuser\Desktop\TestArchive\ ~\Desktop\TestArchive.zipCreate-Archive -path C:\Users\testuser\Desktop\TestArchive\ ~\Desktop\TestArchive.zip Compress-Archive -path C:\Users\testuser\Desktop\TestArchive\ ~\Desktop\TestArchive.zipArchive -path C:\Users\testuser\Desktop\TestArchive.zip ~\Desktop\TestArchive\

14. How to do zip and unzip in UNIX?

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.