LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   several dumb questions :) (https://www.linuxquestions.org/questions/linux-general-1/several-dumb-questions-53641/)

k4zau 04-05-2003 11:38 PM

several dumb questions :)
 
I have been using Linux daily for about 2 months, but today I set up an old 486 with Slackware, but didn't install X or any form of desktop. It is now apparent that I don't know quite as much about Linux as I thought.

I have a few general questions.

1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package?

2) I tried to set up a PCI modem with pppsetup and I thought I got all the parameters right, but when I ran ppp-go it stated Error Signal 2 and refused to connect. Is there a problem with the modem or is my config file incorrect... what exactly does Signal 2 indicate?

3) How can I find the amount of space remaining on a drive?

4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames.

Thanks!
:newbie:

frieza 04-05-2003 11:42 PM

Re: several dumb questions :)
 
Quote:

Originally posted by k4zau
I have been using Linux daily for about 2 months, but today I set up an old 486 with Slackware, but didn't install X or any form of desktop. It is now apparent that I don't know quite as much about Linux as I thought.

I have a few general questions.

1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package?

2) I tried to set up a PCI modem with pppsetup and I thought I got all the parameters right, but when I ran ppp-go it stated Error Signal 2 and refused to connect. Is there a problem with the modem or is my config file incorrect... what exactly does Signal 2 indicate?

3) How can I find the amount of space remaining on a drive?

4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames.

Thanks!
:newbie:

in answer to number 3, the command is 'df'
or more easily 'df -h'
as for the others, good luck :)

rose_bud4201 04-05-2003 11:51 PM

In answer to #1, I'm not sure but what you might not need to try g++ instead of gcc. I've not had much experience with C programming (as opposed to C++) but that might work.

slakmagik 04-05-2003 11:55 PM

For #1, I think you can get just the headers from the package - I'm not sure. Do 'locate' of course, to make sure they didn't get lost.

For #4, depending on how old your 'less' is, try ls | less -R. Maybe ls | less -r depending, but R is what you want, I think. Less is better than more. *g* You can scroll up and everything.

Not sure about #2.

m0rl0ck 04-06-2003 12:56 AM

1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package?


Try installing the glibc and c and c++ libraries and devel libraries (a guess).


4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames.



ls -al --color|less -R

2damncommon 04-06-2003 09:45 AM

Quote:

2) I tried to set up a PCI modem with pppsetup and I thought I got all the parameters right, but when I ran ppp-go it stated Error Signal 2 and refused to connect. Is there a problem with the modem or is my config file incorrect... what exactly does Signal 2 indicate?
I have found that I need to change the modem string to be able to connect with Slack ppp.
Sorry, don't have "to what" in front of me. Perhaps check your other box for a clue.
Quote:

but today I set up an old 486 with Slackware, but didn't install X or any form of desktop. It is now apparent that I don't know quite as much about Linux as I thought.
Heh, heh, heh...yep.
:D

k4zau 04-07-2003 03:52 PM

thanks everyone, i will try these solutions.

frieza 04-07-2003 08:49 PM

no problem, that's what this site is all about, the only dumb questions are:
the ones that aren't asked
the ones you already know the answer to but ask to be pesky
the ones not pertaining at all to the topic at hand :)
the ones asked with the intention of being annoying
yours don't fit into any of those categories, to call your little questions dumb would be stooping to the level of microsoft :D
besides, we all have to start somewhere, and if everyone snubbed the newbie, we'd ALL be using MS windows :p


All times are GMT -5. The time now is 07:14 PM.