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

(a) You are in the directory INTRO. In this directory, create a new directory na

ID: 3742960 • Letter: #

Question

(a) You are in the directory INTRO. In this directory, create a new directory named DIR3.

(b) You are in DIR2. Write a single UNIX command to go to a directory SD2.

(c) You are in DIR2. Without changing a directory, create a copy of a file pr1.c named pr4.c in the directory SD5.

(d) You are in SD3. Move a file pr1.c to a directory SD1.

(e) You are in DIR1. Write a single UNIX command to copy all 3 programs from SD3 to SD2.

(f) You are in DIR1. Delete a directory SD1. What is the necessary condition for deleting this directory?

(g) You are in SD3. Delete a file pr2.c

(h) You are in DIR1. Without changing a directory, display a file pr3.c

Explanation / Answer

Please Note: As per Chegg Answering Guidelines, I have answered the First 4 sub-parts of the Question. Please Re-Post for the Answers to the remaining Questions.

Answers)

(a) You are in the directory INTRO. In this directory, create a new directory named DIR3.

Command:

mkdir DIR3

mkdir is the make or create directory command in Unix

(b) You are in DIR2. Write a single UNIX command to go to a directory SD2.

Command:

cd INTRO/DIR1/SD2

cd is the change directory command in UNIX

(c) You are in DIR2. Without changing a directory, create a copy of a file pr1.c named pr4.c in the directory SD5.

Command:

cp pr1.c SD5/pr4.c

Using the cp(copy) command in Linux we create a copy of a file pr1.c named pr4.c in the directory SD5.

(d) You are in SD3. Move a file pr1.c to a directory SD1.

Command:

mv pr1.c INTRO/DIR1/SD1

mv is the move command in Linux using which we are moving file pr1.c to INTRO/DIR1/SD1 directory.