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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 04:08 PM.
Reason: grammar error
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.
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 05:42 PM.