This command is used to get list of files & folder at a particular path. Suppose there is a folder containing files and you want to know what all files are there in that folder we use this command. We use certain switches to get desired output.
1 |
ls [OPTION]... [FILE]... |
1 2 |
// Go to a folder and enter ls command like below $ ls |
1 |
$ ls -l |
1 |
$ ls -a |
1 |
$ ls -F |
1 |
$ ls -r |
1 |
$ ls -ltr |
1 |
$ ls -ls |
1 |
$ ls ~ |
1 |
$ ls ~Aman |
Leave a Reply