Se afișează postările cu eticheta Commands. Afișați toate postările
Se afișează postările cu eticheta Commands. Afișați toate postările

vineri, 7 ianuarie 2011

The Top Ten Concepts for Linux Beginners - Number 8, Programming Language Support

Damn Small Linux can be an ideal platform for supporting a wide range of programming languages. You can even program directly from the command line via a programming shell such as Bash. Major programming languages used in this environment include C, C++, and Java. If you are developing for the Internet you may want to use PHP, a web programming language and MySQL, a language for database system development. All these programming languages are also available in the Windows environment. So the question arises, why would you want to program under Linux rather than under Windows?
Many web developers and Internet service providers feel that Linux provides a more stable web site environment than does Windows. The most widely used web server, Apache, is available under both these operating systems but its new features, security enhancements, and bug fixes always are made available first on the Open Source (LAMP) version. And then they filter down to the Windows version. At the time of this writing the Windows version of Apache has problems with its cryptographic functions.
While programming languages are essentially the same across these two operating systems, their libraries are quite different. Basically, when you write complicated programs you want to make use of as much prewritten software as possible to reduce your programming and debugging effort. One example is handling the graphical user interface. As programmers often say, why reinvent the wheel? Linux provides a wider choice of libraries and graphical user interface toolkits.
When you program in Linux it is often fairly easy to port your programs to the Windows environment. Unfortunately, the inverse is rarely true. Of course as Linux systems become more popular, you will find more and more Windows-based programming systems that enable you to convert your programs to run under Linux. To do so makes clear economic sense.
Program conversion tools may be fairly difficult to develop. For example, executing programs must access the actual computer hardware. As you may imagine Linux and Windows programs access hardware quite differently. The modules that manage hardware access are called drivers. Linux drivers tend to be of higher quality than Windows drivers.
These two operating systems differ substantially in the way they manage programs during their execution. In other articles we discussed Linux's increased security compared to Windows. We conclude this article by repeating a point that we have often made; you can run Damn Small Linux and its associated applications on very reduced hardware. You can do Linux, PHP, and MySQL development on old computers, ones that may have seemed ready for the garbage heap. In contrast many Windows competitors such as SQL Server Developer Edition require substantially more powerful computers, the kind of computers that people purchase for one or a few thousand dollars. When your programs will be used by dozens of people simultaneously, you will need powerful hardware. Don't forget the operating system; can you guess which one we recommend? Our next subject is the graphical user interface.
Read more: http://www.articlesbase.com/computers-articles/the-top-ten-concepts-for-linux-beginners-number-8-programming-language-support-652795.html#ixzz1ALJfTugE
Under Creative Commons License: Attribution

Continue Reading »

Know the System Call : system call in linux

In theory System calls provide the interface between the program (user program current) and the Operating System. System call is to be a bridge between the processes and systems operation. The system call is written in assembly language or high-level language engine control (C).

Example: UNIX provides system calls: read, write is input and output operations to the file.
Know the System Call
Now we will discuss about the system call in linux. As mentioned above that the system call is actually a bridge between the process and the operating system, for example, when if we make a program that can give voice may often known as winamp, then the program should be able to access hardware that acts to produce a sound that is soundcard. How to access the program can not directly communicate with the hardware is concerned, therefore we need a system call. Simply by calling the system call associated with accessing soundcard way, then we create a program that can run. system call itself is a function that is made with C language on the Linux operating system, there are hundreds of system calls with different functions.
To access the system call, there are two ways, first by using a command interpreter or shell which is often known, both through a program created by the language C. Accessing the System Call Through the Linux Shell has some kind of shell, like Cshell, kornshell, BASH, etc.. Here are some shell commands, namely:

cp: Copy files .
rm: Delete files .
mkdir: Make directories .
ls: Displays information file .
more: Displays the contents of the file in screen.
cat: Displays the contents of the file .
man: Displays documentation .
mv: Moving files to another directory or rename files .
cd: Change working directory .
rmdir: Remove directory .
touch: Create an empty file.

Read more: http://www.articlesbase.com/operating-systems-articles/know-the-system-call-system-call-in-linux-2911455.html#ixzz1ALI4y2uE
Under Creative Commons License: Attribution

Continue Reading »