Question: Practical 6 : File System and Management At the current location ( e . g . : / home / student ) , perform the

Practical 6: File System and Management
At the current location (e.g.: /home/student), perform the following operations using appropriate command(s).
a) Show the current path.
b) Create a directory "p6".
c) List all the contents at the current directory.
d) Create a directory "super" inside the directory "p6".
e) Inside this "super" directory, create four files "apple.doc", "april.doc", "box.txt" and "boxes.txt" using touch command.
f) Show the file(s) starting with "ap".
g) Show the file(s) that the length of the filename contains 5 characters.
h) Show the file(s) ending with "txt" extension.
Based on the current path (e.g.: /home/student/p6/super) from Q1, perform the following operations using appropriate command(s).
a) Go to the student directory.
b) Rename the file "ultra.txt" to "mega.txt"
c) Go to the parent directory. Copy "super" directory and rename it to "super2" in one command line.
d) Confirm whether the "super2" directory is created and copied.
e) Remove "super" and all its subdirectories and files.
Practical 6 : File System and Management At the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!