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

Linux Commands for the following: a)Under your root directory, create and save a

ID: 3903640 • Letter: L

Question

Linux Commands for the following:

a)Under your root directory, create and save a new text file using your first name as the file name.

b)Create a copy of the file in the same directory using any name you like.

c)Create a subdirectory backup.

d)Move the original file (your first name) to backup and rename it using your last name.

e)Create a copy of the backup directory (and all files in it); name it backup2.

f)Delete the original directory backup.

g)Rename backup2 to whatbackup

h)List the files in the new directory whatbackup

2.Links – commands and options (10 pts)        

a)Create a file named today with the text “hello” in it. Provide command and screenshot

b)Create a hard link named hardlinktomorrow linked to today

c)Create a soft link named softlinkone linked to today. Create another soft link named softlinktwo   d)linked to hardlinktomorrow  

e)View information of the 4 files (what command should you use to produce output) – how do you verify which file is a hard link and which file is a soft link?

f)Use a text to edit softlinktwo and change “hello” to “hello, world”.   Now, what is the content in each of the files? Provide screenshots. Are they all the same?   Justify your answer.

g)How do you remove all these hard and soft links? Apply the command and provide screenshots.

Explanation / Answer

a) cd /

touch firstname.txt

b) cp firstname.txt anyname.txt

c) mkdir backup

d) cp firstname.txt ./backup/lastname.txt

(By our policy we can only answer the first 4 subparts of a given question. Please specify which questions you want the answer to the next time)

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