Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
The book The Linux Command Line by William Shotts has dedicated the dozen or so chapters in its fourth section to writing shell scripts. I'd recommend ordering a paper copy of the latest edition since it is much more practical to work with along side the computer, especially when learning something new.
I would also recommend working through sections 1 through 3 at least superficially first, even if they would just be review, before then digging into section 4. It will get you going with shells scripts and if you go through section 4 carefully, it you can actually learn quite a bit more than just the basics.
pl suggest any book or tutorial for linux scripting from start
with practice examples
What is commonly understood as linux scripting? Is it the knowledge of bash or some sort of understanding the topology of features and how best to interact with them in general?
What is commonly understood as linux scripting? Is it the knowledge of bash or some sort of understanding the topology of features and how best to interact with them in general?
A script is pretty much ANYTHING that is executed in a file, be it system commands, binaries, logic loops, etc. And can be bash, zsh, csh, or other languages.
Quote:
Originally Posted by atul2020
thank for ur suggestion
Read the LQ Rules about text-speak, and not using it, please.
A script is pretty much ANYTHING that is executed in a file, be it system commands, binaries, logic loops, etc. And can be bash, zsh, csh, or other languages.
Yes i don't know how much i could contribute to this thread with my humble knowledge but the bash scripting guides there are definatley very good.
Scripting seems like a flexible concept to me, i think many things that seem complicated at first can be done by a few words in the right file. I think the first thing to do before writing a script is defining what i want to achive with it.
Yes i don't know how much i could contribute to this thread with my humble knowledge but the bash scripting guides there are definatley very good.
Scripting seems like a flexible concept to me, i think many things that seem complicated at first can be done by a few words in the right file. I think the first thing to do before writing a script is defining what i want to achive with it.
You are exactly right. ANY computer program requires planning and thought about the task to be accomplished, the tools to use (which may include a simple script, another already existing app, the language to to be used, etc.), and the steps required. A shell script requires at least a basic knowledge of the shell language and what it may do. Thus the suggestion by @Turbocapitalist to study and learn before possibly doing some harm by lack of knowledge.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.