Command Palette

Search for a command to run...

Back to Blog
LinuxLinuxTerminalBeginnerCLI

The 2023 Linux Launchpad: Part 1 - The Compass

January 5, 2023
5 min read
Cover image for The 2023 Linux Launchpad: Part 1 - The Compass

The Why

You cannot drive a car if you cannot find the steering wheel. In Linux, the file system is your road map. If you can navigate it, you own it.

The Commands

1. pwd (Print Working Directory)

Where am I? This command tells you your exact location in the file system maze.

zain@linux:~$ pwd
/home/zain

2. ls (List)

What is in this room? Lists the visible files and folders.

zain@linux:~$ ls
Desktop Documents Downloads Pictures

3. ls -la (List All - Long Format)

Show me everything, including the hidden stuff. Hidden files in Linux start with a dot (.).

zain@linux:~$ ls -la
drwxr-xr-x 2 zain zain 4096 Jan 01 10:00 .
drwxr-xr-x 3 root root 4096 Jan 01 09:59 ..
-rw------- 1 zain zain  450 Jan 01 10:05 .bash_history

4. cd (Change Directory)

Teleport. Move from one folder to another.

zain@linux:~$ cd Documents
zain@linux:~/Documents$ pwd
/home/zain/Documents

5. man (Manual)

The ultimate cheat sheet. Never memorize flags; just ask the manual.

zain@linux:~$ man ls
# Press 'q' to exit the manual

Try It Yourself

  1. Open your terminal.
  2. Type pwd to see where you are.
  3. List all files including hidden ones with ls -la.
  4. Enter your /tmp directory: cd /tmp.
  5. Verify you moved: pwd (Expected output: /tmp).

Want to discuss this further?

I'm always happy to chat about cloud architecture and share experiences.

Follow me for more insights on cloud architecture and DevOps

Follow on LinkedIn