Lab of operating system: please use the linux server
please so all the commands used and the output
PROBLEM 1:
Create a file and name it f1
• Cerate a directory and name it d1
• Move f1 to d1
• Create a directory and name it d2
• Move d1 to d2
• Check if d1 is inside d2
• Check if f1 is inside d1
• While your (Current Working Directory) CWD is d1, move back f1 to home directory using relative path
• While your CWD is d1, create a directory d3 in home directory using relative path
• Rename d2 to dx
• Move and rename f1 to fx from d1 to home directory
PROBLEM 2:
• Create file c1 with message “I am file c1”
• Use cp to copy c1 to c2
• Display the contents of both files and check the result
Get Answers For Free
Most questions answered within 1 hours.