Published Aug 28 2020
Inside a folder you can list all the files that the folder contains using the
If you add a folder name or path, it will print that folder contents:
ls accepts a lot of options. One of my favorite options combinations is
-al. Try it:
ls -al /bin
compared to the plain
ls, this returns much more information.
You have, from left to right:
This set of data is generated by the
l option. The
a option instead also shows the hidden files.
Hidden files are files that start with a dot (
This command works on Linux, macOS, WSL, and anywhere you have a UNIX environment
I wrote an entire book on this topic 👇