Hi all ,
could you please guide me for learn bash Linux shell script.
Actually I need to learn all bash shell script concepts with detailed description and syntax with examples. If possible could you please share .
The way I learnt bash was by reading the man page and starting to code. Bash compound commands (for, case, if, while etc), conditional expressions, shell builtin commands (break, continue, getopts, popd, pushd, read etc), exit status codes and much more:
$ man bash
There are examples too!
Hi @Lisenet,
thanks for share but how to learn use by man <command> .
i think man <command> only shows usage arguments with command.
but start from initial stage to write programs/jobs/automation scripts .
if possible any video tutorial or kindly share book or blog for learn shell script.
Thanks
Well, this is how you start from the initial stage, you read about bash. Unless you use another shell, then in most cases "shell scripts" are written in bash. The man page has a lot of information.
Hi @Larry,,
thanks for share.
i already enrolled but video classes contain until chapter 3 and remain chapters no video session. I am not sure from chapter 4 to end chapter no videos. I think they still developing videos for upload . Kindly check from your end from chapter 4 videos sessions are available or not . Kindly find below screenshot and without video
You might find Greg's Bash Guide useful. Full is examples and best practices.
As mentioned above, your best bet for learning initially is to just start scripting. Find very basic things you can script/automate, then just keep making them better and better. Never quit trying to make your script more functional, or better written.
When you have the basics down, I really recommend this cheatsheet for reference, and the Bash Hacker's Wiki
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.