ls command is one of the most frequently used command in Linux. I believe ls command is the first command you may use when you get into the command prompt of Linux Box.
We use ls command daily basis and frequently even though we may not aware and never use all the ls option available.
In this article we’ll be discussing the importance of ls -l in the shell and explain every step of it with much details.
ls [OPTION]… [FILE]...
The ls command lists the contents of your current working directory.
But there are many options that can be used with ls command to get the desired output. such as
ls ~, ls /, ls ../, ls */, ls -a or ls -all, ls -rand
ls -l. which is the topic of our article.
So let’s get straight to the topic ! Why do we need to use ls -l ?
We give an example to ls -l ..
this is exactly what happens when we type ls -l in the shell.
So we say that ls -l list with long format — show permissions of a working directory.
Example: simple shell
- shell is the parent process
- Parses command line
E.g.,” ls -l”
- Invokes child process
- Waits for child