ls usage in linux

ls usage in linux

#Listing files
ls /path

#Listing current directory
ls .
ls

#Listing files recursively = directory and subdirectories
ls -R

#Showing also hidden files
ls -a

#Listing directories with details
ls -l

#Show also hidden files with details
ls -a -l
ls -al

#Listing files by type: / = directory, @ = link, * = Executable
ls -F

#Listing files by type and know the actual file or directory that link point to
ls -lF

#Listing files by time
ls -t

#Reverse listing order
ls -r

#Color the output
ls --color

#List directory that contains space in the name
ls -l "name of folder or file"