Question: Task 1.7: Working with text files 1. Change to directory /var/log directory. 2. Type the ls -l command to see a list of all the
Task 1.7: Working with text files 1. Change to directory /var/log directory.
2. Type the ls -l command to see a list of all the files in the directory.
3. Redirect dmesg output to boot.mesg file dmesg >boot.mesg.
3. Use grep command to filter dev output from boot.mesg file.
4. You can use the following commands: i. less:
cat boot.mesg | less ii. more: cat boot.mesg | more
5. Change your location to your home directory.
6. Create a directory lab1 .
7. Use the ls -al command to see a long list of files, including the hidden ones, in the directory. 8. Search for the .bash_profilefile in the list.
9. Make a copy of the .bash_profilefile, name it bashprofile, and move it to the lab3 directory by using the cp .bash_profilelab1/bashprofile command.
10. Change to the lab1directory.
11. Use ls l command to write the size of bashprofile file _____________________________________________________________________________________ _____________________________________________________________________________________
12.Compress the file using the gzip bash profile command. What changes do you notice? Identify two changes. _____________________________________________________________________________________ _____________________________________________________________________________________
13. Uncompress the file using gunzip.
show input and output. I only need 11, 12, and 13. (show the screen shots, I am using the terminal to run the code )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
