Back
2/65
Lesson 2
8 min
Linux Navigation
Navigate the filesystem with confidence
Ready to level up?
Mark complete to track your learning progress.
Navigate the filesystem with confidence
Mark complete to track your learning progress.
Navigate the filesystem like a pro in 3 minutes.
First, let's find out where you are in the filesystem:
$ pwd
Explore your home directory and its dotfiles
ubuntu
/home/ubuntu
Your home directory. This is where you start.
This prints your current directory. You should see /home/ubuntu.
List the contents of your current directory:
$ ls
With ACFS, this is aliased to lsd which shows beautiful icons.
Navigate the filesystem with the cd command:
z projects to jump to /data/projects after visiting it once!Create new directories and files:
Read file contents in different ways:
Find files and search their contents:
Try this sequence to test your new skills:
1$ cd /data/projects2$ mkcd acfs-test3$ pwd4$ touch hello.txt5$ ls6$ cat hello.txt7$ cd ..8$ ls
You're ready for the next lesson!