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.
Hi guys, I`m studying for the LPIC-1 exam, and reading a book that they recommend: "Introduction to Linux: A Hands-on Guide", by Machtelt Garrels.
There's one question on the 4th chapter (Processes), that I found confusing:
Question: Based on process entries in /proc, owned by your UID, how would you work to find out which processes these actually represent?
What does he mean? If I run the command (considering that my username is sl33p):
$ps -u sl33p
...gives me the right answer?
The ps man page says:
Select by effective user ID (EUID) or name.
This selects the processes whose effective user name or ID is in userlist. The effective user ID describes the user whose file access permissions are used by the process (see geteuid(2)). Identical to U and --user.
and could conclude that they have the same files inside /proc folders because one is the parent (bash) of the other (write).
This might sound obvious for you senior members anyways, but it shows (as far as I understood from the book) that the write process was originated by the fork/exec process from bash. Is that correct?
PS: Shame on me, about the he/she mistake, lol!
... and see what you might be able to find out about process #2396?
Gosh... all those files... what happens if I try: cat /proc/2396/cmdline ...?
(I've worked with many operating systems over the years, with all kinds of funky programs doing bug-ridden things to get system-information like that. The /proc/nnnn/ system is, if I may say so, " -ing brilliant ...")
Last edited by sundialsvcs; 05-21-2009 at 06:53 PM.
As we're gonna be almost the first ones to realize this new LPI exam, what I decided to do is to "forget" about the LPI objectives... Just trying to learn Linux essentials.
What I mean is that even if you know that they can ask you about the at command, you cannot be so sure they actually will.
If you read the books they recommend on the materials sections of the website, you can fulfill the topics and go even further because it makes you read man pages )
My test is in June 30th and I'm confident about it. After reading the book, just enforce the knowledge about the topics they list on lpi.org
Break the question down- 1: based upon the entries in /proc ownded by your UID
- How do you see which in here is owned by your UID?
- How can you return a sorted list of these? 2: how would you work to find out which processes these actually represent?
- Where can you get a list of processes, both with UID and Command?
- Are there tools to do this?
- Is scripting a solution a viable option?