Skip to content
Clairos Learn

Terminal basics · Lesson 3 of 34 · 7 minutes

Hidden files

Use long and all listings to reveal dotfiles and read shell startup notes.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Admin work often depends on hidden configuration files.

ls
List directory entries; -a includes hidden names and -l adds ownership and permission detail.

A listing is not proof that you can read or modify every listed file.

cat
Read one or more files to standard output without editing their contents.

Reading a source file should precede changing it; avoid printing real secrets.

stat
Inspect a file or directory metadata record, including ownership, permissions, and size.

Metadata and file contents answer different questions.

Worked example and expected result
$ ls -la /home/learner
--rw-r--r-- learner learners   105 .profile
ddrwx------ learner learners   dir .ssh
ddrwxr-xr-x learner learners   dir archive
ddrwxr-x--- learner learners   dir backups
ddrwxr-xr-x learner learners   dir data
ddrwxr-xr-x learner learners   dir lab
ddrwxr-xr-x learner learners   dir notes
ddrwxr-xr-x learner learners   dir projects
--rw-r--r-- learner learners   148 README.txt
ddrwxr-x--- learner learners   dir restore
ddrwxr-xr-x learner learners   dir scripts

Exit status: 0. The command completed successfully in the training fixture.

$ cat ~/.profile
export PATH=/home/learner/bin:/usr/local/bin:/usr/bin
alias ll='ls -la'
# fake shell profile for training

Exit status: 0. The command completed successfully in the training fixture.

$ stat ~/.ssh
Path: /home/learner/.ssh
Type: dir
Mode: drwx------
Owner: learner
Group: learners
Size: 3 items

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “Hidden files”, which interpretation is safe?

Apply it elsewhere

Before adapting the cat workflow from “Hidden files” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Command historyTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Paths and shortcutsPractice absolute paths, relative paths, dot, dot-dot, and home shortcuts.Practice
  2. 02Command historyRun a few safe commands, review history, and clear the display without resetting state.Practice
  3. 03Manual pagesUse simulated manual pages to learn command intent before running tools.Practice