In this session we will be exploring Unix ls commands
1) ls – list all files and folders in a directory in a horizontal format
2) ls -l – list the same in a list view with detailed information like owner, user group, size, last modified date or created.
3) ls -lh – the size which is given above is not in a human readable format to do this we can use this
4) ls -lhst – to sort the files and folders with respect to time
5) ls -lhstr – it has same usage as above but in a reverse order
6) ls -lhS – it is used to order by file size
7) ls -la – to list all hidden files which starts with dot.
8) ls -lF – to have more clarity in differentiating a file and folder it will add “/” at the end of folders
9) ls -lR – this is used to recursively list the files and folders in a directory.