Question: 4. In the nano editor, the key combination ^X does what? 5. I ran the command 'history | less' in terminal and I get this:
4. In the nano editor, the key combination ^X does what?
5. I ran the command 'history | less' in terminal and I get this:
66 mactime -b body.txt > mactime.output
67 less mactime.output
68 clear
69 mactime -b body.txt > mactime.output
a70 less mactime.output
71 cd ../Downloads/
72 ls
73 file *
74 stat *
75 sudo dd if=/dev/zero of=./mactimes.dd bs=1024 count=10000
I want to run the last command (number 75) again. How would I run this command again WITHOUT retyping it?
6. You are in the following directory:
/var/log/mail/may/2018/12323/34343/34343/aodufoau/o3uro3u/oaudfoudf/o3uo3u/oaudfoudf/
You want to jump back to your home directory. Show me the command that does that.
7. Regarding question 6 above, NOW you want to switch back to that directory without retyping all that nonsense. How would you do that with one simple command?
8. You are in '~'. What command would you use to move/rename the file "~/topsecret.txt" to '~/Documents/shhh.txt'.
9. You are in the directory ~/Desktop/may/2018. Show me a command using a RELATIVE path that would take you to ~.
10. You run the following command but you get an error!
LS -alR ~/Documents
Fix the command so that it works!
11. What command would you use to create the nested directories
~/Public/DSC/2018
(hint: Use a SINGLE command. See the man pages).
12. You have a file called "hello.txt" in the directory '~/MyFiles/2018/May, and that is your current working directory. You want to move the file "hello.txt" to that directory's parent directory. What command would you use?
13. What command would you use to display a big text file called "file.txt" to the screen so you could move through it a line or a page at a time? (5 points)
14. root can update a Mint installation with the following two commands:
aptitude update
aptitude safe-upgrade
What commands must a "non-root" user in order to update their installation? (5 points)
15. What is the option for the 'ls' command that provides a long, recursive directory listing? (5 points) (Hint: Use the man page and give me the ENTIRE command)
16. You are in '~'. You have a directory called:
~/Documents/mydocs/may/2018
You want to delete the directory mydocs/ and everything below it. Show me the command to do this.
17. You are in your home directory. What single command would you use to rename the file ~/Desktop/bigfile.txt to ~/Downloads/smallfile.txt. DO NOT change directories!
18. You are in the following directory: ~/Desktop/2018/May/1/1155. I type 'cd ../../../../../../' then {return} at the command prompt. In what directory would I be then?
19. I have 7 files in the ~/Documents directory and I want to delete two of them and I want to be prompted for removal for each file. What command would do this?
20. You want to delete all files in the ~/Public directory that start with "PRE" (for example PRETEST.txt PREFORM.doc, etc.) . What command would you run to do this?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
