LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2008, 11:42 PM   #1
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 16
Question Linux Shell Scripting


How difficult is to learn Linux Shell Scripting. All LINUX Administrator job require to have strong knowledge of Linux Shell Scripting;

Any recommendation.
 
Old 09-26-2008, 11:48 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
It depends on whether or not you already know a programming language. It takes a long time to learn your first programming language. Once you know one language learning an additional languages is fairly easy.

Anyway, here is a bash scripting tutorial:

http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html

---------------------
Steve Stites
 
Old 09-26-2008, 11:58 PM   #3
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
not hard at all if you are already familiar with the linux command line. check out this link.

http://tldp.org/LDP/abs/html/

it's like the bible of bash scripting. don't be intimidated just refer back to it when necessary.
 
Old 09-27-2008, 12:03 AM   #4
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 16
Linux Shell Scripting.

Thank you for the links. I will use them to learn how to script. I already have knowledge in JAVA.
 
Old 09-27-2008, 12:12 AM   #5
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by latinmusic74 View Post
How difficult is to learn Linux Shell Scripting.
since you have Java knowledge, you can try Python. Its easy to learn than shell and can do more stuff.
 
Old 09-27-2008, 12:14 AM   #6
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 16
Shell

Can I replace shell scripting with PYTHON for doing scripting in a working environment?

When company ask for "Good scripting knowledge ( Perl, shell, awk, Unix utilities, Python)" do they want the candidate to know one of this technologies or all?

thanks

Last edited by latinmusic74; 09-27-2008 at 12:16 AM.
 
Old 09-27-2008, 12:45 AM   #7
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by latinmusic74 View Post
Can I replace shell scripting with PYTHON for doing scripting in a working environment?
yes of course, provided your working environment supports Python as one of the tools for scripting.

Quote:
When company ask for "Good scripting knowledge ( Perl, shell, awk, Unix utilities, Python)" do they want the candidate to know one of this technologies or all?

thanks
of course if you know them all, you will be considered more "valuable".
however, in terms of doing the actual scripting and administering the scripts and servers, its is best to standardize on a common language that is easy to understand its syntax and maintain.
this is just my experience and $0.02.
 
Old 09-27-2008, 12:53 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I noticed back when I used Mandrake linux, that they tended to use Perl. SuSE uses Bash for it's scripts. Some packages also supply scripts. For example Udev scripts tend to be written in Python.

You will need to understand bash, because the startup scripts in /etc/init.d/ will probably be bash. It is very common for sysadmins to write there scripts in Perl. So you probably want to learn both. You will need to be able to read them at least and maybe modify them.
 
Old 09-27-2008, 01:43 AM   #9
latinmusic74
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 16
Shell

So in the end, which ones do I need to learn? Perl, bash, python, atc


which one is common language that is easy to understand its syntax and maintain.
thanks

Last edited by latinmusic74; 09-27-2008 at 01:51 AM.
 
Old 09-27-2008, 02:23 AM   #10
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by latinmusic74 View Post
So in the end, which ones do I need to learn? Perl, bash, python, atc
A bit of bash + lots of Python. You can forget about Perl for now.

Quote:
which one is common language that is easy to understand its syntax and maintain.
thanks
Python.
 
Old 09-27-2008, 04:19 AM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Quote:
Originally Posted by johnson_steve View Post
not hard at all if you are already familiar with the linux command line. check out this link.

http://tldp.org/LDP/abs/html/

it's like the bible of bash scripting. don't be intimidated just refer back to it when necessary.
I agree, this is the best tutorial out there.

It took me around 2 weeks to learn bash to an acceptable level, but several months of writing scripts to become good at it.
 
Old 09-27-2008, 08:19 AM   #12
catweasel28
Member
 
Registered: Mar 2007
Location: United Kingdom
Distribution: Mint, OpenSUSE,Dream
Posts: 68

Rep: Reputation: 17
In addition to the Mendel Cooper book, I found this one invaluable for learning shell scripting.

http://www.pearson.ch/Informatik/QUEPublishing/1471/9780672326424/Linux-Shell-Scripting-with-Bash.aspx
 
Old 09-27-2008, 01:38 PM   #13
jgallo
Member
 
Registered: Sep 2008
Posts: 39

Rep: Reputation: 15
like someone above said, it will take a little while to learn your first language

but after that, theyre all very similar, its just syntax differences

once you can think like a computer does, you can virtually learn any language

Last edited by Tinkster; 10-30-2010 at 04:53 PM.
 
Old 09-27-2008, 03:27 PM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Quote:
Originally Posted by jgallo View Post
once you can think like a computer does, you can virtually learn any language
Actually, if you can do that, then you should rename yourself "Neo".
 
  


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
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 05:29 AM
Linux Shell Scripting yaadhav Linux - Newbie 4 08-20-2005 04:05 PM
Linux Shell Scripting Help RowanB Programming 13 11-12-2004 05:07 PM
Linux Shell Scripting using BASH Help! fooforon Programming 5 02-05-2004 10:16 AM


All times are GMT -5. The time now is 11:04 PM.

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