LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2004, 06:21 AM   #1
focuslessmind
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Rep: Reputation: 0
what is linux programming ?


what is linux programming ?

what we can do and how can we do ?


i am new to linux, recently installed redhat 9.0 on amd athlon
 
Old 08-26-2004, 06:37 AM   #2
Stor_G
Member
 
Registered: Aug 2004
Posts: 50

Rep: Reputation: 15
what experience (if any) do you have in programming?
basically, linux provides support for programming in various ways.
you can write shell/perl scripts (similar to vb/ActivePerl scripts in windows) you can write C/C++ code, Java, and lots more.
basic linux distribution usually come with a standard gcc/g++ compiler (gcc - for C programming g++ - for C++) and a perl interperter and you can of course can program in the shell scripting language (depends on which shell you are using).
that's all that comes to mind currently.
 
Old 08-26-2004, 07:31 AM   #3
focuslessmind
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
thankyou very much

actually i know C++ and do programming in C++ but not OS programming

can u please guide me from where to start ?
what is the scope of programming linux ?
i have REDHAT 9.0 installed


thanks again
 
Old 08-26-2004, 07:53 AM   #4
Stor_G
Member
 
Registered: Aug 2004
Posts: 50

Rep: Reputation: 15
Well,
i'm not sure where to find specific documentation for linux programming (you can always try to google for something specific).

what i can give you is a general idea on how to start.
first of all, every linux command (wether it is in programming or a command you write in the command prompt) has documentation. usually you find the documentation in the linux manual.
to access a certain command write 'man command' without the ' '.
for example if i want to find information about a command called write i'll write
Code:
man write
in write's example, however, we have a problem. write is a shell command and a programming command too.
if you write 'man write' it will give you the first result found meaning the shell command write and not the programming command.
to solve this the man is divided into sections.
sections 1-4.
1 is for shell commands, 2,3 are for programming commands (not sure about the difference here maybe someone else can tell me too) and not sure what 4 is for either.
if you want to find the shell command 'write', write
Code:
man 1 write
1 stands for section 1
and if you want to find the programing command 'write', write
Code:
man 2 write
if you're not sure which section is the command you want, you can write
Code:
man -a write
that will open all available manual pages for write. after you close the first one, the other will open and so on...

remember: the manual is your friend. it can help you a lot if you use it right.
you can also run a search on the internet in the same way.
sometimes when i have problems with the manual, i go to google and write
Code:
man 2 write
and it directs me to an online linux man page. very useful at times.

this is for using the manual.

now the compiler in linux is called gcc.
u can use it to compile c code. for compiling c++, use g++ which is gcc for c++.

u can write 'man gcc' or search the internet for using gcc because explaining it full is way too long to be written in a post.

to make life easier though, a utility called make was introduced.
make uses an input file you can write to automatically compile and link files to your request. look for information about it too.
if anyone can provide appropriate links, that would be good.
this is all you need to start. (at least what i needed). if you have more questions, please ask.

ohh 2 more things:
1) to run a file you created (binary files you compiled and linked) write
Code:
./ProgramName
the./ is important.

2) if you have permission problem executing the code, you need to change the permissions.
use chmod to do this (more info at....that's right 'man chmod' )

good luck
 
Old 08-26-2004, 07:56 AM   #5
Stor_G
Member
 
Registered: Aug 2004
Posts: 50

Rep: Reputation: 15
lol
just found that there's a thread talking about programming in linux 4 posts down.
here's a link:
http://www.linuxquestions.org/questi...hreadid=216735
 
Old 08-26-2004, 08:05 AM   #6
focuslessmind
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
thnaks for detailed reply

i look into it and let u know

regards
 
Old 09-09-2004, 02:25 PM   #7
rhash
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
I am actually reading a book called Beginning Linux Programming 3rd edition made by wrox. It seems to be pretty good and easy to follow so far. If you would like i could send you and update how much i picked up from the book when i finish.
 
  


Reply



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
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
New Forum for Linux-Gurus[Programming/Administration] or Linux-Advanced Users [ Progr raees LQ Suggestions & Feedback 5 04-12-2005 07:35 PM
C/C++ programming for linux leeman_s Linux - General 6 01-28-2003 06:16 PM
Exp. Windows/Linux-Script Programmer - Need Linux Programming Mentor! ruttiger Linux - Newbie 2 10-28-2001 11:00 AM
New to Linux programming .... need help Izhar Programming 2 10-17-2001 03:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:10 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