Results 1 to 7 of 7
Hi guys!
I'm working on some training which provides me with minimal information on what it is I'm supossed to do and how. I'm not a unix messiah. hehe
I'm ...
- 06-26-2006 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 2
Help with UNIX
Hi guys!
I'm working on some training which provides me with minimal information on what it is I'm supossed to do and how. I'm not a unix messiah. hehe
I'm supossed to get and store some lines of /etc/group that contain "user" in a file apparently on my home directory (though I don't know what lines they're talking about or what file on my home directory) and store and append them (to that same file) the lines of /etc/passwd that contain "user"
Please please help!
- neon
- 06-26-2006 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,085
Is this homework for school?
oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 06-26-2006 #3What do you want to do exactly? Please give some clarifications. You want to copy those files in your home directory?
Originally Posted by iamneon
Here is a little Unix tutorial, it might help you :
http://www.ee.surrey.ac.uk/Teaching/Unix/"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
- 06-26-2006 #4Just Joined!
- Join Date
- Jun 2006
- Posts
- 2
hahhaha nooooo I'd be dammed if I were still in HS!
Im supossed to be doing a unix training, and i've submitted my answers like, 12 times. Its frustrating because my instructor won't tell me what lines i'm supossed to add or even hint me on the command or even let me know if I'm close. All he says is: try again. I need to advance into the other modules but this is the only mini lab preventing me to do so. I just can't understand it and my instructor won't help me out with it. Its through O'Reilly. Usually, they're really good. I don't know what's up with them this time.
- 06-26-2006 #5Just Joined!
- Join Date
- Jun 2006
- Posts
- 2
That's exactly the problem. THEY won't even clarify it for me.
I'm gonna read over the tutorial!! Thank you so much!! Maybe I can figure this out... or maybe... just curl up in a binary corner and freeze
- 06-26-2006 #6
Let me get this straight. You want to basically get the lines with the word "user" in them from /etc/groups and /etc/passwd and store them in a file that you can append with your user at a later date?
If so, you need to learn about cat and grep.
If that isn't what you are trying to do, then I am sorry. If that is what you want to do, then it is a simple one line command that you do for what your instructor wants (maybe not simple for you because you haven't done it before). Maybe let us see some of your failed attempts and we can tell you what you did wrong.Code:man cat man grep
Your instructor won't tell you why it is wrong because if he told you, then it would give the answer away because there really isn't much to it.
- 06-27-2006 #7
This may not be homework for high school, but this is still homework.
I am locking this thread under the no homework rule.How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger
New users read The FAQ



