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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-23-2015, 10:52 AM
|
#1
|
Member
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50
Rep:
|
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?
|
|
|
01-23-2015, 11:04 AM
|
#2
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
01-23-2015, 11:11 AM
|
#3
|
Member
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
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.
|
|
|
01-23-2015, 11:46 AM
|
#4
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,191
|
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.
|
01-23-2015, 12:10 PM
|
#5
|
Member
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50
Original Poster
Rep:
|
Quote:
Originally Posted by DavidMcCann
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.
|
|
|
01-23-2015, 12:50 PM
|
#6
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
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
|
|
|
01-24-2015, 04:09 PM
|
#7
|
Member
Registered: Jan 2015
Posts: 33
Rep:
|
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.
|
|
|
01-24-2015, 04:50 PM
|
#8
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
Quote:
Originally Posted by Nexusfactor
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.
|
|
|
01-24-2015, 05:17 PM
|
#9
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|