Linux : Moving through the Directory

Swastik Mukherjee
2 min readJan 27, 2022

Linux is fun and once you starts playing with it you wiill fall in love. If you ask me what does a Linux Admin do most of his time? I would say we move around directories looking around files. Sometime it is the reflex that directly takes you moving around here and there in the system. so, let’s explore some of the commands that takes you for ride inside linux.

Linux is fun ya!

So, ‘cd’ is the command that let’s you change directory and moving here and there. And the below command shows you the present working directory.

$ pwd

SS

as you see where I stand

From here (/tmp/high) let’s move back to my home directory.

$ cd
chronology

You can achive the same with just extra~ sign. This is useful when you want to use anything from your home directory.

Home directory

The .. sign helps you to take back one step. You can back multi step. the command goes as follow.

$ cd ../..
step back

But what if you want to go to previuous directory ? Trust me this command is saviour.

$ cd -
The trumph card

This cd and pwd commands are very frequnetly used commands. the more you practice the more you become pro. Do comment if you think I have missed anything.

--

--