0% found this document useful (0 votes)
45 views

Lab On Linux Practical

Mkdir is used to create a directory. Cd is used to change into a directory and cd .. can be used to go back to the previous directory. Pwd prints the current working directory. Rmdir is used to remove an empty directory. Ls lists files and directories in long or detailed format. File and directory permissions are indicated in the first column as rwx for read, write and execute for the user, group and others. The last column shows the file or directory name.

Uploaded by

Heman Setia
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Lab On Linux Practical

Mkdir is used to create a directory. Cd is used to change into a directory and cd .. can be used to go back to the previous directory. Pwd prints the current working directory. Rmdir is used to remove an empty directory. Ls lists files and directories in long or detailed format. File and directory permissions are indicated in the first column as rwx for read, write and execute for the user, group and others. The last column shows the file or directory name.

Uploaded by

Heman Setia
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Mkdir is used to create a directory

K1 we made a directory to k2
Cd is used to call a directory
Cd can also be used to go back again from k2 to k1
Pwd-print working directory
Can delete the directory if it is empty cannot be
delected if there is sub directory
Rmdir is used to remove the directory
$mkdir hello
$cd hello if direcorty is there
$pwd -check if it is being able to print
$cd..(going to another dimension)
$pwd
mv-is the purpose of rename
Ls-long listing of files and directory
Ls-l detailed description
Ls-files directory shown
35 16 7 are size
1st column 1st character determines file directory or a
file
Rwx rwx rwx- first-administrator
second-owner
third-user

First column-file type permisiion


Mi are directories as they have d before
M2
H1 is a file
Have d before
Rwx
r- means it has no permission
R -read
W- write
e-execute
first-administrator
second-owner
third-user
Last column gives name of file and directory
Ls-a names of hidden folders
*- any no of characters matches with any charac
?- represents single character
Ch -.doc
Ls.doc-all files extensions.doc
Mkdir mik
Forgot m1k
So using ls in ling directory
Use $ls m1? For finding m1k

. files are hidden files

You might also like