Linux : Moving through the Directory
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.
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
From here (/tmp/high) let’s move back to my home directory.
$ cd
You can achive the same with just extra~ sign. This is useful when you want to use anything from your home directory.
The .. sign helps you to take back one step. You can back multi step. the command goes as follow.
$ cd ../..
But what if you want to go to previuous directory ? Trust me this command is saviour.
$ cd -
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.