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.
you guys & gals are too good to me!! I owe each one of you a cyber beer LOL.
my ~ has a couple log and cfg files in it, but when i go to home, i dont see any of that stuff. I definitely need to start reading! but at least I can do a ls to view stuff in the directories!!
When you say you go to your "home", I'll assume you mean from the graphical desktop. And, if you are using CentOS 5.3, that's most likely Gnome Desktop. Anyway, the file browser will filter out a lot of those "hidden" files for you. If this is the case you are talking about. In the "view" menu option, there's a check box for "show hidden files". That will show you everything. Also, just for future reference, any file whose name starts with a "." is a "hidden" file and won't show up in an ls unless you use the "-a" option.
Last edited by nuwen52; 07-06-2009 at 03:08 PM.
Reason: grammar error
I didn't install any GUI, although I used the GUI to install to save me a headache. What I was talking about was when I do a ls in ~ and in the actual /home directory, I see different stuff.
I'm pretty sure I wasn't clear before, as I'm just learning here. but thanks for the files starting with . tip too.
Oh. /home directory is the container for all the home directories. No one user owns that. ~ for you would be "/home/rjo98" (or whatever). cd to ~ and do a pwd. That will give you the full path to "your" home directory.
Also, I see now that you didn't install the GUI, and I had read that before. But, for some reason that didn't register in my brain. sorry.
I hope you aren't doing much while logged in as root. I generally stay logged in with a non-root account and use su and sudo to run whatever commands I need to as root. Running as root can be dangerous. I learned that the first time I did an rm -rf in the wrong place (and, I did have backups, so it wasn't a total disaster). Once you get a little more time going, I suggest creating a normal user account and setting up that user as able to run su and/or sudo, if you haven't already. A normal user can't trash what isn't theirs. Root can trash everything.
yeah, as soon as i figure out how to create another account, I planned on doing that so I don't fubar something logged in as root. Right now i'm just trying to figure out how to power this box down without holding the power button down LOL.
Will set up a basic account. You can explore the system using that (mostly) and use root when you have to. Then, set up the su and sudo stuff when you have time.
Do:
Code:
man useradd
for more options.
There's some tricks to use with the halt and shutdown users that you will discover along the way. For now, you can log in as root and do "shutdown -h now".
BTW, if you know all this stuff, just tell me to shut up.
Meh, it's not as if a GUI gets in your way if you want to learn CLI stuff. Just type Ctrl + alt + F1-6 and your GUI turns into a console; press Alt + F7 and the GUI is back.
nuwen, believe me, I know nothing, so any help is appreciated.
as far as for the GUI stuff, its not installed on any of the servers (at least from what i'm told) that i need to learn to support, so that's why its not installed on my CentOS test system. some other people made points as to why to keep it the same in previous posts.
/sbin/poweroff or /sbin/reboot (as root) will do it
There are web-based tools (like Webmin if that's on RHEL) for Admin that you could start from your laptop browser, if there's a web server running on your RHEL machine - GUI without the GUI so to speak!
One quick tip - "/var/log" is where all the log files are, and having a scan through them can give you a good idea if something goes awry. If you do
tail -f <logfile name> # probably /var/log/something(anything after hash is a comment in bash scripts
then the last 10 lines or so will be displayed, & updated live so you can see what's logged when you(or another user) do something.
Linux directory structure (don't take all this as gospel, I might be mistaken about details)
- system binaries are in "/sbin" & "/usr/sbin"(not on normal users path, just root),
system-wide apps are in "/bin" & "/usr/bin" ,
user installed apps are supposed to go in "/usr/local/bin",
& I think self-contained apps(like a member of Program Files in MS)are meant to go in "/opt",
config stuff is in "/etc" (you'll be looking at files here a lot)
"/home" you've already mentioned,
"/tmp" is obvious,
Docs are in "/usr/share/docs/<app name>",
"/boot" is where the boot loader lives and the (surprise)boot scripts are
"/dev/" devices - every device in GNU/Linux is represented by a directory
"/proc" is interesting - all the subdirectories are actually memory locations that contain device info like all the PCI & USB stuff- can be helpful in troubleshooting,
"/mnt" is where you 'mount' external disks/DVD drives - or was, USB meaning external drives are auto-mounted now, without any need for drivers etc.
Good Luck with things
Last edited by andywebsdale; 07-06-2009 at 04:42 PM.
Reason: clarification
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.