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 |
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.
|
 |
07-28-2017, 03:23 AM
|
#1
|
LQ Newbie
Registered: Jul 2017
Posts: 12
Rep: 
|
Shell Scripting
Hi ALL,
I have been using linux from past few months and can anybody suggest how to start writing shell scripts an any sites which helps in this.
Also help me in sharing a site which will be helpfull in learning linux indepth
|
|
|
07-28-2017, 04:38 AM
|
#2
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,756
|
Welcome.
There are more shell scripting tutorials around than you can shake a stick at. It is a little hard though to sort the good ones from the not so good ones. This one seems ok but has a little bit long introduction:
https://bash.cyberciti.biz/guide/Main_Page
http://tldp.org/LDP/abs/html/
I'd recommend learning bash, which is usually the default. zsh and ksh should also be fairly compatible. But keep an eye on the bare POSIX shells such as dash. Use one of them for scripting when you can.
You'll get the most practice if you run natively. So I'd also recommend upgrading the desktop or notebook you are using to Linux Mint or Ubuntu, if it does not already have a distro "on bare metal". If you need legacy systems, they can be run better in a VM with snapshots to save the last known good version.
|
|
|
07-28-2017, 05:45 AM
|
#3
|
Member
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567
|
|
|
|
07-28-2017, 05:53 AM
|
#4
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,298
|
If your system uses sysvinit, go through the boot scripts step by step. You can learn a lot that way.
|
|
|
07-28-2017, 07:06 AM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441
|
Quote:
Also help me in sharing a site which will be helpfull in learning linux indepth
|
That's a big ask; its a very large subject... 
Try this www.linuxtopia.org
|
|
|
07-28-2017, 08:02 AM
|
#6
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,955
|
Quote:
Originally Posted by sampy12345
I have been using linux from past few months and can anybody suggest how to start writing shell scripts an any sites which helps in this.
|
The links on bash scripting offered by aragorn2101 and Turbocapitalist are either exact ones which I would've offered, or fairly close.
I also have an old blog entry on bash scripting if you wish to read some techniques about debugging shell scripts.
Start reading shell scripts, especially the examples shown in the beginners guide to bash scripting, and start writing your own scripts.
Use the Programming forum to aid you with your script questions as you proceed with your attempts. Please be aware that if you do nothing and merely ask for scripts, you'll receive responses asking what you have tried.
Quote:
Originally Posted by sampy12345
Also help me in sharing a site which will be helpfull in learning linux indepth
|
LinuxQuestions.org
|
|
|
All times are GMT -5. The time now is 07:19 PM.
|
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
|
|