Back
2/61
Lesson 2
8 min

Linux Navigation

Navigate the filesystem with confidence

New to ACFS?

Complete the setup wizard first to get the most from these lessons.

Go to Choose Your OS
Goal

Navigate the filesystem like a pro in 3 minutes.

Where Am I?

First, let's find out where you are in the filesystem:

bash
$ pwd
Filesystem ExplorerClick directories to explore

Explore your home directory and its dotfiles

Path:/homeubuntu

ubuntu

/home/ubuntu

Your home directory. This is where you start.

Permsdrwxr-x---
Ownerubuntu:ubuntu
Size4.0K
Modified2026-03-12
terminal
$ cd ~
$ ls -la
# Your home directory contains dotfiles and configs

This prints your current directory. You should see /home/ubuntu.

What's Here?

List the contents of your current directory:

bash
$ ls

With ACFS, this is aliased to lsd which shows beautiful icons.

Try these variations:

Long format with details
Show hidden files
Tree view of directories

Moving Around

Navigate the filesystem with the cd command:

Go to the projects directory
Go home (shortcut)
Go up one level
Go to previous directory
Pro Tip
With zoxide installed, you can use z projects to jump to /data/projects after visiting it once!

Creating Things

Create new directories and files:

Create a directory
Create AND cd into it (ACFS function)
Create an empty file

Viewing Files

Read file contents in different ways:

Print entire file (aliased to bat)
Scroll through file (q to quit)
First 20 lines
Last 20 lines

Deleting Things

Warning
There's no trash can in Linux. Deleted = gone.
Delete a file
Delete a directory (DANGEROUS!)

Searching

Find files and search their contents:

Search file contents (ripgrep)
Find files by name

Verify You Learned It

Try this sequence to test your new skills:

bash
1$ cd /data/projects
2$ mkcd acfs-test
3$ pwd
4$ touch hello.txt
5$ ls
6$ cat hello.txt
7$ cd ..
8$ ls

All Commands Work?

You're ready for the next lesson!

Ready to level up?

Mark complete to track your learning progress.