Professional Documents
Culture Documents
LINUX Worksheet 1.3
LINUX Worksheet 1.3
Subject Code:21CAP-607
Worksheet-1.3
1.Create the directory DIR1 and inside this create another directoy DIR2 and inside DIR2
create directory DIR3 Using a one single command. Show the path of the DIR3 directory.
Create a blank file ABC.txt Add the content using cat command. show long list of this
directory also show hidden files.
ANSWER :-
The basic command for creating directories in Linux consists of
the mkdir command and the name of the directory.
mkdir dir_name
But, Here we create multiple Directory DIR1, and inside this create another directory DIR2
and inside DIR2 create DIR3 using a one single command ,
To create these directory we use mkdir-p command.
Creating first Directory:-
mdisk DIR1
now creating subdirectories DIR2 & DIR3 inside DIR1&DIR2.:-
using command-- mdisk -p DIR1/DIR2/DIR3
and showing path of DIR3:-
using command ls -R to show the recursive directory tree.
cat ABC.txt
Thank You……….
Best Wishes………………………….