How to go to root folder in Linux
What is the command to go to root folder in Linux.
Can you please also tell me the basic linux file structure. Ex In dos We have root folder, then sub folder1, then sub folder2 I can go to root from subolder by typing CD. or CD.. How to do in Linux |
well the literal equivalent would be to type "cd /" if that's what you mean. OR "cd .." enough times too, just like DOS.
|
Hello,
The 'cd' command also exists in Linux. For a good basic starting point, have a look at the Rute User's Tutorial and Exposition. Kind regards, Eric |
Quote:
|
@OP; here's some useful links and note also that Linux cmds are lower-case and in fact Linux is case sensitive for cmds, names (eg files, dirs etc) and usually params as well...
http://rute.2038bug.com/index.html.gz http://tldp.org/LDP/Bash-Beginners-G...tml/index.html http://www.tldp.org/LDP/abs/html/ |
Add this to the reading list:
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/ Quote:
Also, you forgot to mention that DOS has all the "/"s backwards....;) |
Quote:
|
In Linux the top level directory, the parent of all directories, the 'root' of the filesystem is '/'. As humans we call this the the root directory, however there is possibly anther directory that you might be thinking of; '/root', which is the home directory of the user 'root'. In either case, in all shells that I know of, the command 'cd' can be used to navigate to any specified directory, including '/', or '/root'.
--- rod. |
All times are GMT -5. The time now is 06:40 AM. |