One of the most used command in unix is cd , meaning "change directory".
To change your directory to an absolute path you have to write this : cd /root/whatever . If you want to change to a relative path you have to execute something like this : cd ./dir3/dir5 . The added dot at the beginning represents the current directory, and the rest of the command represents the path relative to the current directory. You can also skip the "." part and just write cd dir3/dir5.But must not begin with "/" ! If you do so then it will be an absolute path ! To find out the current directory while in linux(or any other unix flavor) you can type : pwd (print working directory).
This commands will help you navigate through your filesystem.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment