LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2015, 10:52 AM   #1
Nexusfactor
Member
 
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50

Rep: Reputation: Disabled
Do you think itís worth it to learn bash scripting in 2015?


I really am interested in getting a Linux job, so I started learning bash scripting on my own, but, I did a search recently, and found that a lot of people recommended using Perl or Python, because it’s more powerful. I don’t mind learning those two languages, but concepts such as multi-threading seem difficult, and it will take time for me to understand it.

As of right now, should I stop learning bash and start learning Python or Perl? Would an employer look highly on someone who has knowledge in shell scripting?
 
Old 01-23-2015, 11:04 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860
Learn Bash. It simply is the standard in scripting on Linux for administrative tasks and you will need it. While it is true that you can write scripts for those tasks in Perl or Python, those languages are usually used for more complex tasks, especially when it comes to string handling. You will likely never need multi-threading in scripts doing administrative tasks, so forget about that now.

In short: Learn Bash first, if you are proficient with that think about learning one of the other languages.
 
1 members found this post helpful.
Old 01-23-2015, 11:11 AM   #3
Nexusfactor
Member
 
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Learn Bash. It simply is the standard in scripting on Linux for administrative tasks and you will need it.
That's what I wanted to here. I was getting discouraged, and the idea that I might have to switch seemed daunting.

Thanks.
 
Old 01-23-2015, 11:46 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Xubuntu
Posts: 5,112

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
I'd add further encouragement. Bash, like vi, is always there. You cannot guarantee that, in an emergency, you will actually have Perl or Python.
 
1 members found this post helpful.
Old 01-23-2015, 12:10 PM   #5
Nexusfactor
Member
 
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
I'd add further encouragement. Bash, like vi, is always there. You cannot guarantee that, in an emergency, you will actually have Perl or Python.
Never thought of that! Very true.
 
Old 01-23-2015, 12:50 PM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,187

Rep: Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037
Since Bash essentially executes cli commands in sequence, it is very well suited for repetitive system tasks. Any system administrator should master that.
System tasks can be done in Perl or Python but in a less direct way. That is not to say Bash is a better language for everything which is usually coded in Perl or Python.

jlinkels
 
Old 01-24-2015, 04:09 PM   #7
Bret W
Member
 
Registered: Jan 2015
Posts: 33

Rep: Reputation: Disabled
I would learn a little from each: bash, python, perl, etc...the more knowledge you have, the better.

I'm not in IT, but bash, sed, awk, and other gnu utilities is enough for me to get the job done.

To really learn, mimic what you can do in bash and research on how to do it in python and/or in perl. For example, if you know how to do a for loop in bash, research on doing loops in python.

Good luck on your linux job search

Last edited by Bret W; 01-24-2015 at 04:36 PM.
 
Old 01-24-2015, 04:50 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,345
Blog Entries: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by Nexusfactor View Post
should I stop learning bash and start learning Python or Perl? Would an employer look highly on someone who has knowledge in shell scripting?
No, stay with Bash and learn perl/python. and Yes.
 
Old 01-24-2015, 05:17 PM   #9
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
I'll chime in in support of bash on this one as well.
The other thing I'd suggest is most large shops I'm aware of use RHEL, so combining bash knowledge with famililariety with the RHEL or RHEL derived interface would probably make you stand out in any "entry level admin" cattle call.
 
  


Reply

Tags
bash, linux, python, shell, terminal


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting mplayer - is it worth my while to go on? nokangaroo Linux - Software 3 01-23-2014 08:12 AM
want to learn driver coding..can any one recommend me something worth and working . jayeshsharma52 Linux - Newbie 1 08-05-2012 08:47 AM
LXer: Open source hardware worth £1billion by 2015 LXer Syndicated Linux News 0 06-12-2010 02:30 PM
Is shell scripting worth it? Canadakid Programming 13 03-30-2007 09:15 AM
Is scripting worth learning ChimpFace9000 Linux - General 3 07-05-2001 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration