LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-26-2011, 11:02 AM   #1
huracan10033
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Which scripting language to learn for Linux Administration


Which scripting language to learn for Linux Administration? Python, Ruby, Perl, or PHP?

Thanks
 
Old 05-26-2011, 11:27 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

primary is use ksh, perl and python for my job. Some knowledge of C is definitely a plus.
 
1 members found this post helpful.
Old 05-26-2011, 11:46 AM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,899

Rep: Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541
The most important scripting language for Linux administration is BASH

Last edited by dugan; 05-26-2011 at 11:48 AM.
 
1 members found this post helpful.
Old 05-26-2011, 06:06 PM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

i agree with dugan that bash is definitely the Linux standard shell. But in case you require your script running on different *nix OS i would prefer ksh which is available on any *nix and on Linux.
 
1 members found this post helpful.
Old 05-26-2011, 08:11 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Mostly agree with the previous two posters, but IMO for portability script in Bourne shell.
 
1 members found this post helpful.
Old 05-27-2011, 09:10 PM   #6
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
bash sed awk, be sure to learn how regular expressions work and how to use them. When you get those three down any other language is trivial to write in with a refrence manual beside you.

As for bash vs ksh, the two are close enough for a beginner to start with either. There are small differences between the two and.knowing those difference will never hurt.

Last edited by trey85stang; 05-27-2011 at 09:12 PM.
 
Old 05-28-2011, 09:40 AM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved to Programming.
 
Old 05-29-2011, 10:15 AM   #8
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
You are going to need to know some level of bash scripting, for sure. After that, almost any of the ones you listed are probably equally useful. Your choice should probably be dictated by existing work. If you have to maintain code written by someone else or vice versa, it is obvious that you will need to know something about the language used. In previous years it would be hard to go far wrong with Perl, but if you're starting from a greenfield setting, Python might be a better choice.
--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which scripting language to learn max_cherry Linux - Newbie 11 11-27-2008 01:47 PM
Is this book good to learn LINUX Administration latinmusic74 Linux - Newbie 8 07-24-2008 11:33 PM
When you and Linux learn to speak the same language! mohtech LinuxQuestions.org Member Success Stories 5 12-23-2006 07:27 AM
What programming language, languages to learn for linux. gimmee Programming 11 11-28-2006 08:30 PM


All times are GMT -5. The time now is 07:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration