Questions related to the command line use of Linux. 11. I have a file called \'b
ID: 3722929 • Letter: Q
Question
Questions related to the command line use of Linux.
11. I have a file called 'backups.tar.bz2' in my home directory. I want to uncompress and unarchive the files in it. What single command would I use? 12. I have a file called tardigrade.bz2 and I want to uncompress it. What command would I use? 13. I want to search for all files in the directory ~/Desktop that contain the keyword "mount", case sensitive, and as the entire word. Words like amount, submount, demount, etc, should not be found in the results; just 'mount'. Additionally, I only want to see the name(s) of the file(s) that have matches as a result of running the command. What command would I use? Hate mail can be directed to /dev/null 14. I have a large file named bighead.txt and I want to view only the first 6 lines of the file. What command would I use?
15. Same as file as Question 14, but I want to view only the last 5 lines.
Explanation / Answer
11. tar xvjf backups.tar.bz2 -C/home
12. tar xvjf tardigrade.bz2
13. ls *mount*
14. head -6 bighead.txt
15. tail -5 bighead.txt
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.