In Linux, a name beginning with a dot . is normally treated as a hidden file or directory, such as .bashrc, .profile, .git, or .config. These items are not encrypted or inaccessible; ordinary ls simply omits them.
Why use hidden files?
Many hidden items store user configuration or application state. .bashrc commonly configures Bash, .config holds user-level settings for many applications, and .git is a Git repository's internal directory. Dot names keep the home directory visually tidy.
Three useful options
-a / --all Show all entries, including hidden items and the special . and .. entries.
-l Use long listing format: type and permissions, links, owner, group, size, modification time, and name.
-h Make sizes human-readable. With -l, a value such as 1536000 becomes roughly 1.5M.
Identify types in long format
The first character in ls -l is useful: d means directory, while - means a regular file. You do not need to decode every permission character yet; permissions are covered later.
$ ls -l drwxr-xr-x 2 alice alice 4096 Aug 25 10:00 Documents -rw-r--r-- 1 alice alice 1536 Aug 25 09:30 notes.txt
Combine options and choose a target
Short options can usually be combined: ls -l -a becomes ls -la; adding readable sizes gives the common ls -lah. You can also inspect another target with ls /etc, ls -l /var/log, or ls -la ~/Documents. This follows the familiar structure: command + options + target.
Short and long option names
ls -a can normally be written as ls --all, while the long form of -h is --human-readable. Long forms read clearly; short forms type quickly. When unsure, check ls --help or man ls on your system.
Hidden does not mean unimportant: items such as .bashrc, .ssh, and .config can affect your shell, SSH, or applications. Check an unfamiliar hidden item's purpose before deleting it.
X-Ray a Directory
Simulated terminal ready. Run commands and watch the filesystem on the right.
/homealicearchivebackupcachedataindex.bin
DocumentsDownloadsemptyPicturesprojectsrcREADME.md
.bashrc.profileaccess.logapp.logdraft.txterror.lognotes.txt
varlogsyslog
Quick buttons fill the prompt; run the command or press Enter to change terminal and filesystem state.KNOWLEDGE QUIZ
KNOWLEDGE QUIZ
Audit a Project Directory
You inherited ~/projects/weather-app. Write one command for a complete listing, then answer three concrete questions from the simulated output.
- Write the command that produces this hidden + detailed + readable listing, explicitly naming the project path.
- Name two real entries ordinary ls would omit (excluding . and ..).
- Which regular file is largest, how large is it, and which entry is a directory?