this post was submitted on 17 Jun 2026
-6 points (38.5% liked)
Explain Like I'm Five
21449 readers
92 users here now
Simplifying Complexity, One Answer at a Time!
Rules
- Be respectful and inclusive.
- No harassment, hate speech, or trolling.
- Engage in constructive discussions.
- Share relevant content.
- Follow guidelines and moderators' instructions.
- Use appropriate language and tone.
- Report violations.
- Foster a continuous learning environment.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
On your disk drive, where you store files, files are organized by the filesystem. The filsystem consists of, among other things, directories and files. Directories can contain contain other directories as well as files.
The
pwdcommand tells you where in the filesystem you are now -- in which directory. The commandlslists the contents of that directory, that is, which other directories and files are in there. The list thatlsshows is not a list directly stored somewhere, but generated when you run the command. The command basically asks the filesystem something like "what is the content of the filesystem at this directory", and it gets a reply, then it formats it into a nice list to present to you, the user.That means the terminal is directly interacting with my hardware ??
Well no, the terminal is a software like any other. It just is sometimes more final about doing things (e.g.
rm <file>will delete without asking twice) and you cab start other software from it or use within.There are multiple layers between you and your hardware, rings of userspace (Starting with Ring 3) and at the end Kernel (Ring 0)
Sound like rings of smoke :)))))