Solved

linux language

Posted on 2004-03-27
6
223 Views
Last Modified: 2010-04-22
I am just trying to find out what programming language linux uses(i.e. c, c++).  So I know where to start learning at.
Thanks,
dharing
0
Comment
Question by:dharing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 10697530
Linux it primarily implemented in ANSI C. (with small parts of assembly language).


0
 
LVL 8

Expert Comment

by:manish_regmi
ID: 10697544
hi,
 If u are trying to make programs for linux, u can use any languages like c, c++, java, perl, fortan etc etc.
The linux kernel was programmed in c.
U can use gcc to compile programs written in most languages. I like c/c++ better.
more info here.
http://gcc.gnu.org/

regards manish
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 50 total points
ID: 10698080
You've received two different answers. Which one is the right one depends on how one interprets your question:

Linux is only the kernel that runs on your system. This kernel is mainly written in C (and some assembler). So if you want to eventually program in kernel space, you need a very good understanding of C.
If by Linux, you mean a complete distribution (like SuSE, RedHat, Mandrake), then you find a big selection of programming languages and environments. It's probably still true that most applications are written in C or C++, but you also have scripting languages (Shell script, Perl, Python, PHP, ...), Java or languages like Lisp. But you can even find Basic programs.
At the end you can do almost anything in any language. To program in a Unix environment you need a strong background in scripting and C/C++.
It all depends on what you want to do, and which language you like best.
0
 

Expert Comment

by:ray_pro2
ID: 10882836
Your question is a bit confusing but the comment from khkremer almost answers it for you. Just to reiterate him - ' Linux is mostly coded in ANSI C, with some support from assembly language'. By saying linux, I mean only the kernel and not any complete linux distribution.

Presently a lot of languages are supported by linux. A compiler exists for almost every popular programming language on linux platform. The best among them are GNU compilers gcc which are excellent C/C++ compilers both in terms of compatibility and efficiency. C programs are obvious choices for most serious linux programmers.

Linux has no native languge - so if you are looking for one, shell script is closest to an answer. A shell program 'speaks the language of the shell' and thus in a way can be thought of as the language that 'Linux uses'(This is precise what your question reads anyway). But there are other very powerful scripting languages like PERL are also available.

If your question simply means which is the programming language I use to write programs on Linux, it can be a lot of things, most commonly C or C++. If your question means which language does the OS (actually the shell) understands - your answer is shell programming language. If none of these are what you want, consider rephrasing your question!
0

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question