Try to find out what task is performed by the following Unix commands:

How do each of these commands differ?

Assignment

Each of the following tasks can be performed by at least one of the above commands:

  1. show the contents of the compressed file file.zip1

  2. add the directory subtitles (without including any of its contained files) and the text file names.txt2 to the compressed file file.zip3. Note that you must first add the directory subtitles and then the file names.txt in that order.

  3. Remark

    Many Unix commands that manipulate the file system, such as cp, rm and zip make use of the -r flag to include all underlying files and directories.

  4. unpack the tarball4 backup.tar.gz5 such that the names of all extracted files are displayed

Dowloading files

Use the following command to download a file into the current directory of your Linux shell

$ wget '<url>'

Put the URL6 of the file that you want to download at the position of <url> and keep the URL enclosed in between single quotes to escape any special characters.

The URL of a hyperlink in a web page can be copied through the context menu that appears when right clicking the hyperlink.