LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-01-2012, 12:53 AM   #1
pkrg
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
How to learn shell programming in simplest way


How to learn shell programming in simplest way
 
Old 11-01-2012, 01:36 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 481

Rep: Reputation: 179Reputation: 179
Welcome to the forums.

There a plenty of resources available online - just google for what you're looking for.

The links at https://en.wikipedia.org/wiki/Shell_...External_links should get you started, though.

Good luck!
 
Old 11-01-2012, 02:39 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,255

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
The best way I have found is to solve practical real world problems that affect you. This gives you both incentive and a requirement
 
Old 11-01-2012, 04:45 AM   #4
nickmh
Member
 
Registered: Apr 2012
Distribution: xUbuntu
Posts: 42

Rep: Reputation: Disabled
I have spent my entire computing life with Microsoft, Since the Demise of the Apple II's Starting at DOS and Windows 3.1. The common element in productivity in learning has always been solving real world problems. Find a problem and fix it.

I constantly get asked... "But what can this fandangled Linux thing do"? The answer is always "anything you want"!

You have to decide what you want from the system, the program, the routine you want to build. Which brings us to, "You must have a purpose".

Linux, The Shell and the underlying system offers enough tools and variety of interfaces to accomplish any task. From running calculations for the Large Hadron Collider to driving the entertainment systems in cars and your freindly neighbourhood PVR.

The freedom offered by the Open Source system is boundless. This is where the complications arise. Most people are not used to thinking and analysing for themselves. "Oh but it's so complicated" you hear. No it's not! Most people don't what they want now that they're faced with a multitude of choices, all of which have they have to decide for themselves

Due to the total freedom that open source (FOSS), in combination with Linux's accessability delivers, asking "where should I start"? is similar to asking "how long is a peice of string"

Find a problem, start reading and let yourself get distracted. It's a wonderful exploritory experience!

Good luck.

We look forward to downloading your scripts and hacking at them ;-)
 
Old 11-01-2012, 05:15 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by pkrg View Post
How to learn shell programming in simplest way
The simplest way is to start writing scripts. I would start with the Bash Guide for Beginners---free download here:
http://www.tldp.org/guides.html
 
Old 11-01-2012, 07:43 AM   #6
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,186
Blog Entries: 10

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Quote:
Originally Posted by pkrg View Post
How to learn shell programming in simplest way
No skill worth having ever came easy.
Linux is self-serve.

Alien's Bash Tutorial
 
Old 11-01-2012, 09:05 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
There's no shortcut! Just pick a book, start reading, understanding & writing small & easy scripts. One by one go through all chapters and keep practising and solve the assignments.
Give yourself challanges, as practice is only way to reach to your goal. If you stuck at any point, you can return to this forum... We'll be happy to help you! Good luck!
 
Old 11-01-2012, 01:35 PM   #8
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,659

Rep: Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584Reputation: 584
Shell Programming

OP: do you mean "shell programming" or "shell scripting"?

Shell programming is programming focused on creating a new or modified shell. This is how provate versions of BASH, NBASH, VNBASH, NBSD, NZSH, etc came about as programmers made private shells that implemented their own 'improvements', the best of which have been folded into the current mainstream shells.

Shell scripting is creating shell scripts to solve problems or automate complex tasks USING the shell.

These are two very different things. Most of the answers already mentioned relate to shell scripting, not shell programming. (Both are GREAT fun and good to know!)

The correct answer depends directly on the real meaning of your question. Can you clarify?
 
Old 11-01-2012, 03:04 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,547
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Member Response

Hi,

Look at these to enhance your experience;
Quote:
Just a few links to aid you to gaining some understanding;



1
Linux Documentation Project
2
Rute Tutorial & Exposition
3
Linux Command Guide
4
Bash Beginners Guide
5
Bash Reference Manual
6
Advanced Bash-Scripting Guide
7
Linux Newbie Admin Guide
8
LinuxSelfHelp
9
Utimate Linux Newbie Guide
10
Linux Home Networking
11
Virtualiation- Top 10

The above links and others can be found at '
Slackware-Links'. More than just SlackwareŽ links!
 
1 members found this post helpful.
Old 11-01-2012, 06:06 PM   #10
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
onebuck,
great set of bedtime reading, seriously, a good collection of stuff even if not all about scripting.

Fred.
 
Old 11-01-2012, 06:39 PM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,547
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Member Response

Hi,
Quote:
Originally Posted by Fred Caro View Post
onebuck,
great set of bedtime reading, seriously, a good collection of stuff even if not all about scripting.

Fred.
You might want too look at a few before making a statement.
Quote:
1. LDP is a good source of information on bash.
2. Rute has some useful help within the tutorial
3. You had better know the Linux commands in order to learn to use them in scripting
4. Bash Beginners Guide is a good starting point.
5. Bash Reference manual is a good reference
6. Advanced Bash-Scripting guide provides some advanced information
7. Good newbie admin guide to enhance
8. Another good newbie guide
9 Still another good source for a newbie
10. Sugar
11. Milk
Everything I suggested will help a newbie advance their skills, more than casual reading. You can learn a lot from these references to build your understanding about scripting.

Hope this clears things a bit.

Next time, I suggest that you look before you leap!
 
  


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
LXer: Zero to Z-Shell: Learn what all the fuss is about with Z-Shell LXer Syndicated Linux News 0 10-11-2007 08:41 PM
The simplest possible v4l programming example? rylan76 Linux - Software 0 01-06-2006 07:37 AM
simplest type of device driver to learn? infamous41md Programming 5 04-06-2004 12:09 AM


All times are GMT -5. The time now is 02:10 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