Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

8. What command would I use to make a copy of the file \"~/Desktop/HIGH2.txt\" a

ID: 639912 • Letter: 8

Question

8. What command would I use to make a copy of the file "~/Desktop/HIGH2.txt" and name it '~/Downloads/one/two/two.txt'. (assume the directories under ~/Downloads exist) (5 points)

9. I'm in '~/Videos/one/two/three/four/five'. Give me a command using a RELATIVE path that would take me to ~. (5 points)

10. This question is related to Question 9 above. Now I want to change back to directory '~/Videos/one/two/three/four/five'. What simple command would I use to do this? (5 points)

11. What command would I use to create the nested directories '~/6/5/4/3/2/1/last'
(hint: Use a SINGLE command. See the man pages). (5 points)

12. I have a file called "work.doc" in the directory '~/Desktop/2013/September', and that is my current working directory. I want to move the file "work.doc" to that directories PARENT directory. What command would I use to do this? (5 points)

13. What command would I use to display a big text file called "bigfile.txt" to the screen so I could move through it a line or a page at a time? (5 points)

Explanation / Answer


1)
cd Downloads/one/two
cp ~/Desktop/HIGH2.txt two.txt

2)cd ~
3)cd- (goes back to prevoius directory)
4) mkdir -p ~/6/5/4/3/2/1/last
5)cd to/the/dir
mv ~/Desktop/2013/September ../
6)cat bigfile.txt

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote