Suppose that you download a file, linuxbook.tar.gz, from an FTP site. As the file name indicates, it is a tar archive file in the compressed form. Give the sequence of commands for restoring this archive and installing it in your ~/linuxtools directory.

What will be an ideal response?

The following sequence of commands can be used to perform this task.
```
$ mkdir ~/linuxtools
$ cp linuxbook.tar.gz ~/linuxtools
$ cd ~/linuxtools
$ gunzip linuxbook.tar.gz
$ tar xvf linuxbook.tar
[ command output ]
$
```
The following command can be used to perform the same task.
```
$ mkdir ~/linuxtools; cp linuxbook.tar.gz ~/linuxtools; cd ~/linuxtools; gunzip linuxbook.tar.gz; tar xvf linuxbook.tar
[ command output ]
$
```
The following commands can also be used to perform the given task. The gunzip command with -c option sends its output to standard output.
```
$ mkdir ~/linuxtools
$ ( gunzip -c linuxbook.tar.gz ) | ( cd ~/linuxtools; tar xvf -; rm ~/linuxbook.tar.gz )
[ command output ]
$
```

Computer Science & Information Technology

You might also like to view...

By holding down the Shift key while dragging the rotation handle, an object is rotated in ________ degree increments

A) 10 B) 1 C) 5 D) 15

Computer Science & Information Technology

When using satellite services for your WAN connection, what statement is accurate?

a. Satellite downlink rates range from 50 to 100 Mbps. b. Satellite services suffer more latency and jitter issues. c. Satellite services are only available for fixed location clients. d. Satellite uplink rates range from 5 to 10 Mbps.

Computer Science & Information Technology