LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HELP URGENT i have a few questions-thanks (https://www.linuxquestions.org/questions/linux-newbie-8/help-urgent-i-have-a-few-questions-thanks-594020/)

mrryanthai 10-23-2007 05:35 PM

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

dafunks 10-23-2007 05:38 PM

This looks like school homework :tisk:

mrryanthai 10-23-2007 05:39 PM

it is that's why i'm asking for help >.>

The_JinJ 10-23-2007 05:40 PM

lol defo homework

I'll bite and give a start....the * means the password is elsewhere...now go find out where and why ;)

mrryanthai 10-23-2007 05:46 PM

Lol,thanks you wanna help me with the others too?:p i'm a linux noobie still learning :p

Beads 10-23-2007 06:04 PM

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! :eek:

mrryanthai 10-23-2007 06:07 PM

can you help me?lol :p

Beads 10-23-2007 06:18 PM

Quote:

Originally Posted by mrryanthai (Post 2934208)
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?

mrryanthai 10-23-2007 06:23 PM

Thanks a lot man :D 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

Beads 10-23-2007 06:25 PM

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?

mrryanthai 10-23-2007 06:30 PM

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

Beads 10-23-2007 06:44 PM

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.

AceofSpades19 10-23-2007 06:50 PM

According to the LQ rules you aren't suppposed to post homework questions, so be prepared for a mod to close this thread

mrryanthai 10-23-2007 06:51 PM

thanks a lot man :D yeah hopefully someone will post something about my dell problem.

Beads 10-23-2007 06:54 PM

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

Bruce Hill 10-23-2007 06:57 PM

Quote:

Originally Posted by mrryanthai (Post 2934292)
thanks a lot man :D yeah hopefully someone will post something about my dell problem.


Please read How To Ask Questions The Smart Way. If you have the time, this article is, IMO, well worth a read. If you don't have the time, and you still want to get questions answered by the hacker volunteers who man free software projects, then you really should make the time anyway and read this article.

The_JinJ 10-24-2007 10:58 AM

Have a read through these
http://www.ibm.com/developerworks/li...&S_CMP=LPLINUX
You'll need to sign up but worth it - then you'll be able to answer your own questions...and others!!

ehawk 10-24-2007 02:02 PM

http://www.linuxcommand.org/
http://linux.about.com/od/commands/l/blcmdl1_cat.htm

AceofSpades19 10-24-2007 06:16 PM

Quote:

Originally Posted by Beads (Post 2934299)
I thought I was helping someone. I was under the assumption that was what LQ was about. Sorry. Won't happen again. Ever.

People should figure out homework questions on their own. If the OP had a genuine question, its a bit different

Tinkster 10-24-2007 07:32 PM

Homework questions, dupes all over the place ...


sudden drop in popularity, methynks.


All times are GMT -5. The time now is 01:21 AM.