Question: Unix command to implement this task 1 a. cp /scripts/hello-2.8.tar.gz ~ b. Extract the contents using the tar command c. Create bzip'd tar file named

Unix command to implement this task

1

a. cp /scripts/hello-2.8.tar.gz ~

b. Extract the contents using the tar command

c. Create bzip'd tar file named ~/hello-2.8.tar.bz2 containing the contents of ~/hello-2.8

d. Create uncompressed tar file named ~/hello-2.8.tar containing the contents of ~/hello-2.8

2. Using du

a. Show the amount of space used by the ~/hello-2.8 directory

b. In human-readable format

c. Redirect the output to a file named ~/hellospace.txt

3. Using du

a. Show the amount of space used by the /scripts/work directory

b. Summarize the output

c. In human-readable format

d. Redirect the output to a file named ~/workspace.txt

4. Using df

a. show the amount of free space in human-readable format on /dev/sda1 (just/dev/sda1 )

b. redirect the output to ~/sda1.txt

5. Gzip the file ~/hello-2.8/README

6. Bzip the file ~/hello-2.8/TODO

7. Using tar

a. List the contents of /scripts/asciiquarium.tar.gz

b. Redirect the output to a file named ~/ascii.txt

8. Using ps aux and grep

a. Get a list of all processes

b. Use grep to list processes that live in /sbin/ (just / sbin/)

c. Redirect the output to a file named ~/psaux.txt

9. Using find , grep , sort and wc

a. Create directory ~/assign2

b. Use find with the -exec option to copy all files in /scripts/work and below that begin with the letter 'Z' or 'z' to ~/assign2

c. Use grep to find all the words in ~/assign2/* that begin with 'a' or 'A', begin with 'd' or 'D', or end in 'ly'. no filenames or line numbers.

d. Redirect the output to ~/unsorted.txt

e. Use sort on ~/unsorted.txt to sort reverse alphabetically

f. Redirect the output to ~/sorted.txt

g. Use wc to append the number of lines in ~/sorted.txt to the end of ~/sorted.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!