Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
well the literal equivalent would be to type "cd /" if that's what you mean. OR "cd .." enough times too, just like DOS.
Actually, I just remembered that under DOS it's "cd.." compared to "cd ..". This is a great example of how shi**y DOS really is, how they took bits of consistent UNIX convention and just broke them enough to make NO sense. ".." referred to the parent directory in the unix filesystem long before it did in DOS. So it makes sense to have a space in there, so the usage of the cd command is consistent. You wouldn't expect "cdmy_new_directory" to work in DOS, so why should "cd.."? See also "echo some_string > com1". DOS just magically pulls a reference to a serial port out of the air, when redirecting anything to a different name would make a text file containing it... stupid.
@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...
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'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.