ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Most Shell scripting is done in a Bash shell these days.
Perl and Python (and Ruby and ..) are scripting languages but not shell scripting. Shell scripting refers to writing a script with the tools / language available in the shell itself. Python and Perl are external languages that exist independent from the shell.
A Linux admin can and will use any and all scripts that fit the job. Bash, Python, Perl and Ruby are obvious starting points to learn scripting.
Technically, Perl and Python are not shell scripts.
I wouldn't waste time for csh, tcsh and I have no idea what “kron” is. Did you mean ksh? In that case I wouldn't waste time for it either.
It seems that many people no longer look at Perl favourably, so some folks may look at you weird if you tell them you are learning Perl. I personally have put Perl and Python in pretty much the same category.
But with what we're left, Perl, Python and Bash, the last one is something completely different then the first two. Bash is shell after all, and to be honest, you should know both shell scripting and Perl/Python, so I'd recommend learning (Bash and Perl) or (Bash and Python).
some pepple tell me perl is the best choice..because perl is easy and as similar as c++ language.because i hav no more time to learn both bash and perl...
what would u say about perl..
Perl is good, there is a large community and a lot of free online information.
Perl is however not similar to C++. And I mean really, really not similar.
So, to learn scripting / programming Perl is a good a choice.
If you want to be a Linux Network Admin Shell scripting is mandatory imho. It is the quick and dirty way to make things happen when you're in a hurry.
So if that is your goal: take the time to learn both - it will help a great deal to land a job.
Generally, when you write a script, and start it with #!/bin/sh you cannot tell what shell will actually interpret it: ksh, bash, dash or other. So test it with dash: it is a minimalist shell with minimal flexibility and no extensions.
ok you mean to say firstly i learn bash and than perl to..
that both are helpful for me.
k jazz and mina,kooru thank u so much for the suggestion..
pls if u have any tutorial or any document in a soft copy or any link to learn bash and perl
pls send me
my Mail ID - vaibhavatalkar@gmail.com
ok you mean to say firstly i learn bash and than perl to..
that both are helpful for me.
k jazz and mina,kooru thank u so much for the suggestion..
pls if u have any tutorial or any document in a soft copy or any link to learn bash and perl
Spell out your words, please. And you don't have to learn anything in any particular order...learn bash first, or perl, or any other language...just pick one. Go to Google, and look up any of the many thousands of easily-found tutorials/documents, and read them. Do some exercises, write scripts, and figure things out. That's how you learn. There is a link to bash scripting tutorials in my posting signature, and many more you can find with a quick Google search.
Quote:
pls send me
No...we are not going to email you tutorials. This is a community forum, not the place to come for personalized, one-on-one email support/training.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.