You are on page 1of 4

LINUX ADMINISTRATION LAB

Subject Code:21CAP-607
Worksheet-1.3

Student Name: SACHIN KUMAR UID: 22MCA20761


Section/Group: MCA- 6A Semester: FIRST
Date of Performance: 22 OCT 2022.

 Aim/Overview of the practical:

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.

Create a blank file ABC.txt :-


Using command :- touch ABC.txt

Now add content using cat command :-

cat > ABC.txt (content)

to show this content we are using command

cat ABC.txt

To show long list of this directory also show hidden files :


To show this we are using following command :- ls -a
Learning outcomes (What I have learnt):

1.I have learnt about creating directories and subdirectories.

2.I have Learnt about create and add content files.

3.I have learnt about listing directories .

Thank You……….
Best Wishes………………………….

You might also like