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...

A client cannot give its ticket to another process because

A. the protocol specifies that clients talk only to the server B. a process may only send datagrams to a related process

Computer Science & Information Technology

To move up one screen, you use the Ctrl + PgUp keyboard shortcut

Indicate whether the statement is true or false

Computer Science & Information Technology

To change formula options, click the File tab, click Options, then click Formulas in the list of categories?. ____________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The MD5 hashing algorithm is not susceptible to the possibility of hash collisions.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology