Monday, May 24, 2010

Since Unix was built using "C" does that mean working in it, is just like working in C or C++?

I am asking this because I want to start working in Unix but I only have knowledge of C++, will it be easy to do?

Since Unix was built using "C" does that mean working in it, is just like working in C or C++?
Knowing Linux commands and bash scripting is far more important for everyday use. Many programs for Linux are obtained by downloading the source code its self and in my experience they are nearly all ways written in C or C++ therefore you need to know how to compile them. By the way KDE is written in C++ and Gnome is written in in C. I like you prefer C++ so I write all my Linux programs for KDE. In theory you can use any language for writing Linux programs your just more likely to see C++ for KDE and C for Gnome.
Reply:nope but unix is not that hard. syntaxes r entirely diff in both these cases!
Reply:Unix is so highly configurable that you can make it work in any way that you like. Seriously, as mentioned shells usually have their own syntax. From a programming perspective, the only time that you will encounter C is when doing low-level system programming. Some examples here include opening sockets or setting up pipes programattically mainly because these deal with file descriptors instead of stdio or iostream file handling libraries. It is pretty straight-forward to write an OO wrapper in C++ around these so that you don't have to deal with them directly in your applications.
Reply:using UNIX is nothing like C++ or C


it mostly depends on the shell you use (if you are doing shell scripting) otherwise you just run commands. there are some technical problems with some shells (like csh) that make some programs malfunction. but the point is, no, it's nothing like C++ or C


it's more like DOS, if that helps

nobile

No comments:

Post a Comment