LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-27-2012, 06:57 PM   #1
tw1tch
LQ Newbie
 
Registered: Sep 2012
Distribution: Windows 7, Ubuntu 12.10, Fedora 17
Posts: 27

Rep: Reputation: Disabled
How do i learn to write scripts? Ubuntu


Id like to start writing my own scripts for my distro(Ubuntu 12.04) , what programming or scripting languages should i learn for this?

*Note: I only know HTML but i doubt that helps
 
Old 10-27-2012, 07:03 PM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 609

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

This is a good introduction to bash scripting at the Linux Documentation Project.

"Bash" is the main command interpreter on your system (and almost all Linux systems); it's the program you are interacting with when you use the command line. It is fully scriptable and is backward compatible with previous UNIX shells.

In addition to bash, there are other script interpreters included with Ubuntu, but that's the place I'd recommend starting.

What do you want to do with scripting? Do you just want to learn how to script in general, or do something more specific?

A good complement to your HTML abilities for web design would be PHP, Javascript, or Ruby, all of which are also included with your distro.

Last edited by foodown; 10-27-2012 at 07:08 PM.
 
Old 10-27-2012, 07:21 PM   #3
tw1tch
LQ Newbie
 
Registered: Sep 2012
Distribution: Windows 7, Ubuntu 12.10, Fedora 17
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by foodown View Post
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html

This is a good introduction to bash scripting at the Linux Documentation Project.

"Bash" is the main command interpreter on your system (and almost all Linux systems); it's the program you are interacting with when you use the command line. It is fully scriptable and is backward compatible with previous UNIX shells.

In addition to bash, there are other script interpreters included with Ubuntu, but that's the place I'd recommend starting.

What do you want to do with scripting? Do you just want to learn how to script in general, or do something more specific?

A good complement to your HTML abilities for web design would be PHP, Javascript, or Ruby, all of which are also included with your distro.

Just scripting in general, ill look into bash and post again if i encounter any issues i guess
 
Old 10-28-2012, 08:47 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Ummm---I'm not sure that ALL of those are obligatory.....

I'd start with these 2:
http://www.tldp.org/LDP/Bash-Beginne...tml/index.html
http://tldp.org/LDP/abs/abs-guide.pdf
 
Old 10-28-2012, 09:12 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Welcome to this forum!
Well, first thing keep in mind that there's no shortcut to learn scripting. It will need practice, practice and... practice!
Unix shell scripting doesn't actually depend upon your OS but on the shell (i.e. bash, csh, ksh etc) that you're using, thus termed as "shell" scripting.
So I'd suggest you to pick a reference book (only one at a time, else you'll find yourself confused), and go through all the chapters one by one and keep practicing what's suggested in the book.
Just a tip: HTML won't help you, so forget it while scripting! Good luck!

Last edited by shivaa; 10-28-2012 at 09:15 AM.
 
  


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
book to learn shell scripts icecubeflower Linux - Newbie 2 04-01-2009 12:36 PM
I have some scripts that I need to write.... Meekal Programming 2 12-05-2004 04:03 PM
Some scripts I need to write.... Meekal Linux - General 1 12-05-2004 04:01 PM
Need to learn how to write a script for my RH Linux box. NssOne Programming 3 04-02-2004 11:03 PM
hello people ,I am a learner about shell scripts ,I find it very hard to learn . zhanglinbao Programming 6 07-22-2003 03:06 AM


All times are GMT -5. The time now is 01:44 PM.

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