LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Closed Thread
  Search this Thread
Old 10-23-2007, 05:35 PM   #1
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Rep: Reputation: 15
HELP URGENT i have a few questions-thanks


1)Given the following entry in the /etc/passwd file:
unknown:*:99:99:unknown
user:/var/empty:/usr/bin/false

is this user a system user?
what does the * indicate?
what is the user's home directory?
what is the user's default shell?

2)Given rcc$>ls
fileA.tet fileB.txt
rcc$>

what command would i use to combine the two files together to produce fileC.txt

Given:
rcc$>more widget
#!/bin/sh
echo"this is a text file"
rcc$>

what is the#! called?
why is it there?

please reply ASAP.thanks
 
Old 10-23-2007, 05:38 PM   #2
dafunks
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 12
Posts: 62

Rep: Reputation: 15
This looks like school homework
 
Old 10-23-2007, 05:39 PM   #3
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Original Poster
Rep: Reputation: 15
it is that's why i'm asking for help >.>
 
Old 10-23-2007, 05:40 PM   #4
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
lol defo homework

I'll bite and give a start....the * means the password is elsewhere...now go find out where and why
 
Old 10-23-2007, 05:46 PM   #5
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Lol,thanks you wanna help me with the others too? i'm a linux noobie still learning
 
Old 10-23-2007, 06:04 PM   #6
Beads
Member
 
Registered: Nov 2004
Location: Washington
Distribution: Mint
Posts: 104

Rep: Reputation: 17
Well, here's another tidbit: If you're attempting to find your user, or worse, root password, you're out of luck! Linux ain't that easy!
 
Old 10-23-2007, 06:07 PM   #7
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Original Poster
Rep: Reputation: 15
can you help me?lol
 
Old 10-23-2007, 06:18 PM   #8
Beads
Member
 
Registered: Nov 2004
Location: Washington
Distribution: Mint
Posts: 104

Rep: Reputation: 17
Quote:
Originally Posted by mrryanthai View Post
1)Given the following entry in the /etc/passwd file:
unknown:*:99:99:unknown
user:/var/empty:/usr/bin/false

is this user a system user?
what does the * indicate?
what is the user's home directory?
what is the user's default shell?

2)Given rcc$>ls
fileA.tet fileB.txt
rcc$>

what command would i use to combine the two files together to produce fileC.txt

Given:
rcc$>more widget
#!/bin/sh
echo"this is a text file"
rcc$>

what is the#! called?
why is it there?

please reply ASAP.thanks

OK. You know what the '*' means, so next would be user's home directory. All users get a profile in the /home directory. Looking at your $> prompt tells me your directory is in /home/rcc. If you add another user, like homer, homer will have a directory in /home; and so forth. This is to keep other users files and configurations separate from each other.

The default shell is the environment used by your distro when you start a console. Usually, it is BASH. OK so far?
 
Old 10-23-2007, 06:23 PM   #9
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks a lot man do you know how to install ubuntu on something that's not taking it?lol cause my dell e1505 with ati x1400 isn't taking it for some reason and i heard from some people that ubuntu doesn't like ati x1400
 
Old 10-23-2007, 06:25 PM   #10
Beads
Member
 
Registered: Nov 2004
Location: Washington
Distribution: Mint
Posts: 104

Rep: Reputation: 17
Well, I'm an openSuSE user, so I'm not all too familiar with the problem. However, when you say "not taking it" what exactly do you mean?
 
Old 10-23-2007, 06:30 PM   #11
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Original Poster
Rep: Reputation: 15
it's not installing like when i get to the install screen i can run it then it says some kind of error i don't have my laptop with me atm so i can't tell you what it says. it's basically not letting me install it...you mind helping me with the other 3 questions i had?thanks man
 
Old 10-23-2007, 06:44 PM   #12
Beads
Member
 
Registered: Nov 2004
Location: Washington
Distribution: Mint
Posts: 104

Rep: Reputation: 17
OK, well when you get back to your laptop, maybe an ubuntu user will have chimed in with some answers. There are many drivers for the ATI chipset out on the internet; and I'm sure there's a work-around to get things going until then.

Now. Back to the other questions.

There are myriad ways to combine text files. One easy way is to open a file editor such as Kate, and simply merge the two files together. If your bent on using the console, not that that is a bad thing, then you can concatenate the files as lists; or use the merge command to combine two files into one. When you get to a linux box open a console and type "man merge" <enter>. That will instruct you how to do this. One thing, in UNIX based systems, which Linux is, you can find out the syntax of any command by typing "man <command>" <enter>. Man, here, is short for MANUAL. In other words, something you read when you don't know the answer; like how to operate your new cell phone. READ THE MANUAL.

Next question: What is the #! called? It's called a prompt. It is coming from BASH. No different than any other console prompt. It just announces who it is.

Why is it there? Because, I said so. Oh alright, look at the explanation above.
 
Old 10-23-2007, 06:50 PM   #13
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
According to the LQ rules you aren't suppposed to post homework questions, so be prepared for a mod to close this thread
 
Old 10-23-2007, 06:51 PM   #14
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Original Poster
Rep: Reputation: 15
thanks a lot man yeah hopefully someone will post something about my dell problem.
 
Old 10-23-2007, 06:54 PM   #15
Beads
Member
 
Registered: Nov 2004
Location: Washington
Distribution: Mint
Posts: 104

Rep: Reputation: 17
I thought I was helping someone. I was under the assumption that was what LQ was about. Sorry. Won't happen again. Ever.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 08:07 PM
Urgent Questions ricki Linux - General 2 07-31-2005 04:22 PM
help me out to the three questions plz? its urgent lexersrp Linux - General 2 01-22-2005 01:28 AM
mplayer questions--urgent taoweijia Linux - Software 2 10-08-2003 09:23 PM
Many questions that need an urgent answer! squall14716 Linux - General 7 10-03-2003 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration