In Linux ‘cd‘ (Change Directory) command is one of the most important and most widely used command for newbies as well as system administrators. For admins on a headless server, ‘cd‘ is the only way to navigate to a directory to check log, execute a program/application/script and for every other task. For newbie it is among those initial commands they make their hands dirty with.
Thus, keeping in mind, we here bringing you 15 basic commands of ‘cd‘ using tricks and shortcuts to reduce your efforts on the terminal and save time by using these known tricks.
Tutorial Details
- Command Name : cd
- Stands for : Change Directory
- Availability : All Linux Distribution
- Execute On : Command Line
- Permission : Access own directory or otherwise assigned.
- Level : Basic/Beginners
1. Change from current directory to /usr/local.
2. Change from current directory to /usr/local/lib using absolute path.
3. Change from current working directory to /usr/local/lib using relative path.
4. (a) Move one directory back from where you are now.
4. (b) Change Current directory to parent directory.
No comments:
Post a Comment