3 There are two directories One and Two under the current di

3. There are two directories, One and Two, under the current directory, with the following contents:

One: file1.txt, file2.txt

Two: file3.txt, file4.txt

What are the resulting contents of both directories after the following set of commands:

cp One/file2.txt Two/file5.txt

rm One/file2.txt

Solution

a) cp One/file2.txt Two/file5.txt

copies content of file2.txt to file5.txt(if not present creates new file)

b)cp one/file2.txt two/file5.txt

deletes file2.txt

3. There are two directories, One and Two, under the current directory, with the following contents: One: file1.txt, file2.txt Two: file3.txt, file4.txt What ar

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site