Author Topic: Linux programming  (Read 3228 times)

0 Members and 1 Guest are viewing this topic.

Offline Fractal Cat

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Linux programming
« on: December 28, 2014, 09:32:17 pm »
Hi,

Can anyone recommend a good Linux programming book?

Thx

FC.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18121
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Linux programming
« Reply #1 on: December 28, 2014, 09:38:32 pm »
Hi Fractal Cat, and welcome to the forum :)

Linux is an OS kernel, not a programming language .. so what language are you looking at, or what are your goals ?

Or do you mean shell scripting (such as bash) ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Fractal Cat

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Linux programming
« Reply #2 on: December 28, 2014, 09:49:00 pm »
Hi Mark,

I've been using Windows for many years and have programmed some things myself.  I want to be able to write programs
for Linux, like I do with Windows.  I would hopefully be using C/C++ or Java.

Thanks for the prompt response.

Thx

FC.

Offline chemicalfan

  • Hero Member
  • *****
  • Posts: 1166
  • Karma: 36
  • Gender: Male
  • I've been here a little while!
    • View Profile
    • Awards
Re: Linux programming
« Reply #3 on: December 29, 2014, 01:25:13 pm »
Java should be the same for both Linux & Windows - it's one of the project's goals  ;)

Offline Jambi

  • Jr. Member
  • **
  • Posts: 5
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Linux programming
« Reply #4 on: January 31, 2015, 03:18:53 pm »
As stated in the post above, programs written in Java should work under both Windows and Linux, you only need to have Java installed.

You can use shell scripting for programs in Linux, though. A couple of links that can help you get started:

http://linux-bible.com/writing-shell-scripts/
http://linuxcommand.org/lc3_writing_shell_scripts.php
http://www.howtogeek.com/67469/the-beginners-guide-to-shell-scripting-the-basics/

Offline seco

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Like Geeks
    • Awards
Re: Linux programming
« Reply #5 on: March 11, 2019, 02:27:19 pm »
This reminds me when I started learning Bash scripting.
I found this https://likegeeks.com/write-shell-script/ a good start for me in Bash scripting.
However, Linux programming is not only about Bash. You can use any other scripting language like Python.
I'll not say Bash is not suitable, but anyone should take a look at the alternatives.

Best,

Offline Keith

  • Hero Member
  • *****
  • Posts: 918
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Linux programming
« Reply #6 on: March 12, 2019, 12:43:50 pm »
Each language has its own pros & cons and comes down to personal preference and the particular application. 

Bash is perfect for my requirements and I began with the book "The Linux Command Line" by W.E Shotts (available both in hard copy and as a free PDF download) and make much use of web tutorials such as the one in the previous post. 

Offline WiltonLun

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Linux programming
« Reply #7 on: March 30, 2019, 02:23:07 pm »
Did it take you long to grasp the basics of Bash, Keith? Is it intuitive?

Offline Keith

  • Hero Member
  • *****
  • Posts: 918
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Linux programming
« Reply #8 on: April 19, 2019, 06:34:25 pm »
Hi Wilton.

Sorry for the delay in replying - I didn't receive the usual auto-email until today !
Beginning with the book was very helpful and I soon got the hang of the basics.  As for intuitive: like most things it becomes intuitive with practice! 

The best way to get the hang of scripting is to have a definite task to perform and accept that one needs to refer to the book a lot at first.  I needed to do some really weird things and found many solutions on the web - in fact I that is my major source of solutions now.  This Forum is also a good source of info as there are so many knowledgeable people here willing to help.  As Mark once told me: "There are no daft questions". 
There are also the "man" pages - the scripting manual built into Linux.  I find it hard going but it's always worth trying first. 

Good luck with your scripting.
   Keith
« Last Edit: April 19, 2019, 08:45:40 pm by Keith »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal