⌨️ls
Also known as ls Command, List Files, ls -la
A command that lists what is in a folder. It shows files and folders.
Think of it like
Think of it like a peek in a box to see what is in it.
Example
Emma types ls -l in her web folder. She sees index.html, who owns it and when it last changed.
Why it matters
It is the command you will type most. You use it to see what is there before you change anything.
Definition
Example code
console
$ ls
notes.txt photos
$ ls -a
. .. .bashrc .ssh notes.txt photosCommon mistake
Key takeaways
- 1What is here. Lists the current folder.
- 2-l for detail. Size, owner and rights.
- 3-a for hidden. Shows dot files too.