Lessons · Terminal · what is in here
What is here?
ls lists what is in the current folder. Names that start with a dot are hidden from plain ls; ls -a shows them, and ls -l shows details.
Hone is a place to practise programming. This is one of its lessons, written out in full and free to read without an account.
What it is for
.git, .env and .bashrc are all dotfiles. A folder that looks empty may hold the whole configuration of a project.
How to think about it
ls first, ls -a when something seems missing, ls -l when you need size, date or permissions.
Worked example
mkdir -p demo && cd demoA fresh folder.
touch a.txt b.txt .secretThree files; one starts with a dot.
lsa.txt and b.txt: the hidden one is not shown.
ls -a. and .. and .secret too: every entry, including the two folder pointers.
Your turn
List everything, hidden files included.
ls
Try it at a real prompt
The trap
Believing a dotfile is gone because ls did not show it. Hidden is a convention, not a deletion.
Practise what is in here on HoneA question on it now, a coding challenge where there is one, and it is remembered for review. Free, no email needed.