Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
now that I have some experience with Linux I would like to learn basic Linux Programming and scripting. Can anyone give me an advice where to start? I have 0 programming experience other than Qbasic when I was about 9 years old! (long time ago)
Your help is greatly appreciated!
You can start with a scripting language, for example python, there are several tutorials about python for free on the internet, on the other hand, if you want to put fun into your programming adventure you can try C
It's not really that different than programming on another operating system I'd imagine (obviously there will be some differences, however). Just pick a language and get a good book. I think it depends more on what exactly you want to do.
Use the net. Search on 'linux' 'programming' and 'tutorial' (plus other terms) for example
I note that I'm not the first to say 'python', but I still wanted to say it anyway. As languages go, its quite 'clean' and consistent, which makes it a better place to start than, perl, say and yet it is sufficiently closely related to C/C++ that you could go to one of those afterwards without a great culture shock. And you can still do quite serious stuff with it.
The book is quite a good reference on the linux environment generally (also consider almost anything published by O'Reilly with an appropriate title).
Having said those two, there are loads of useful tutorials, guides and other documents scattered around the web. And generally that is free, where buying books isn't. And if your distro of choice has an 'install extra documentation' option, take it. There is often useful stuff hiding in there, too (howto's, etc).
Shell scripting is only one of the scripting languages. It may have features that do not appeal to everyone, but it is indispensable for many aspects of *nix:
Quote:
To apply the Unix philosophy effectively, you'll need more than
just C in your toolkit. You'll need to learn how to use some of
Unix's other languages (especially the scripting languages), and
how to be comfortable mixing multiple languages in specialist
roles within large program systems.
The Art of UNIX Programming, Raymond, 2004, page 322
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.