You are on page 1of 1

Basic Commands

Print
PrintWorking
WorkingDirectory
Directory
[root@comp1 ~]# pwd
[root@comp1 ~]# pwd

Shows
Showslist
listof
offiles
files&
&directories
directories
[root@comp1
[root@comp1~]#
~]#ls
ls <options>
<options> <arguments>
<arguments>

ls Command ls Command

Listing
Listingof
offiles
filesand
anddirectories
directoriesalong
alongwith
withthe
theattributes
attributes Listing
Listingof
offiles
filesand
anddirectories
directoriesalong
alongwith
with the
the‘inode’
‘inode’numbers
numbers
[root@comp1
[root@comp1~]# ~]#lsls –l
–l oror [root@comp1 ~]# ls
[root@comp1 ~]# ls –il–il
[root@comp1
[root@comp1~]# ~]#llll

Listing
Listingof
ofall
allfiles
filesand
anddirectories
directories including
includingthe
thehidden
hidden Listing
Listingof
ofthe
theattributes
attributesof
ofaaparticular
particularfile
fileor
ordirectory
directory
root@comp1 ~]# ls
root@comp1 ~]# ls -a -a [root@comp1 ~]# ls -ld <directory>
[root@comp1 ~]# ls -ld <directory>

Listing
Listingof
ofall
allfiles
filesand
anddirectories
directoriesin
inreverse
reverseorder
order Shows
Showsthe
thelist
listof
offiles
filesin
inTree
Treestructure
structure
[root@comp1 ~]# ls
[root@comp1 ~]# ls -r -r [root@comp1 ~]# ls -R <directory>
[root@comp1 ~]# ls -R <directory>

You might also like