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

Day - 3 Basic Commands1

The document provides information about the basic ls command in Linux/Unix. It lists 3 examples of using the ls command with different options: 1) ls -l or ll to show files and directories along with their attributes and permissions. 2) ls -a to show all files including hidden files. 3) ls -R to show files in a tree structure format.

Uploaded by

Deepak
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Day - 3 Basic Commands1

The document provides information about the basic ls command in Linux/Unix. It lists 3 examples of using the ls command with different options: 1) ls -l or ll to show files and directories along with their attributes and permissions. 2) ls -a to show all files including hidden files. 3) ls -R to show files in a tree structure format.

Uploaded by

Deepak
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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