Red HatThis forum is for the discussion of Red Hat Linux.
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.
We have a new user, here, and he (or she) lost the command line in Red Hat LINUX. My LINUX skills are weak, at best, and I only know what Graham Glass tells me (Graham Glass and King Ables. _LINUX for Programmers and Users_. (Upper Saddle River, NJ: Prentice Hall / Pearson), 2006). I am trying to retrace what this person's last keystrokes were, something about looking for different kinds of help pages. Any ideas where to start to get back to the root directory? Initially, we were trying to set up the first user account just after installing Red Hat LINUX on the PC. Graham cautions against using the root directory all the time. Any help appreciated.
What do you mean by "lost the command line", could you be more specific?
Quote:
Graham cautions against using the root directory all the time. Any help appreciated.
Do you mean root account? Root directory means /, the "base of the directory structure", i.e. a place which is the topmost. Like C:\ on Windows, if you like to think it that way. root account on the other hand means the system administrator user account, i.e. the user who has most power over the system.
If you could provide more information or a better description of what exactly has happened, it would be easier to help.
There was a line called something like "root/dvdrecorder" and you could type things like "pwd" or "ls" and get information. That's what I'm calling the command line, the place where you typed-in LINUX commands.
This is also what I meant by "root directory". I think it's the root directory, because no accounts have been set-up, yet, not even a system administrator account.
Right now, if you look at the screen, the main menu up at the top has "Applications" and "Actions". There are 4 icons in the main display "Computer", "root's Home", "InHouseSoftware" and "FLEXTOOLS-UNIX".
Is that enough info? We were trying to type in "useradd [-d directory][-s shell] userName" and that's why he was trying to figure out what a directory was and what a shell was. I think we have a GNOME Desktop Environment.
There is a "User Manager" dialog box, that shows maybe he did create a su account (User Name-->Engineer User ID-->500 Primary Group-->su Full Name-->Engineer Login Shell-->bin/bash Home Directory-->/home/Engineer). If I could just get back to that account it would be sufficient.
This might be the solution I was looking for. Just right-clicked on the open background and got a dropdown menu. Selected "Open Terminal" and it gave me the "[root@MyCompany ~]# " command line. From here I hope Graham's book will show us how to set up user accounts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.