cancel
Showing results for 
Search instead for 
Did you mean: 
jeesshnasree
Flight Engineer
Flight Engineer
  • 3,560 Views

Could you please share the shell script for learn

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 .

0 Kudos
17 Replies
Lisenet
Starfighter Starfighter
Starfighter
  • 2,996 Views

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!

jeesshnasree
Flight Engineer
Flight Engineer
  • 2,991 Views

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 

0 Kudos
Lisenet
Starfighter Starfighter
Starfighter
  • 2,981 Views

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.

0 Kudos
jeesshnasree
Flight Engineer
Flight Engineer
  • 2,830 Views

Hi @Lisenet ,

 

thanks for suggestion .

0 Kudos
Larry
Flight Engineer Flight Engineer
Flight Engineer
  • 2,987 Views

In fact, you can use:

man man

Also, check this Fundamentals of Red Hat Enterprise Linux

0 Kudos
jeesshnasree
Flight Engineer
Flight Engineer
  • 2,973 Views

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 

C61EABE6-44ED-4024-BC53-139B1E4D4DA5.jpeg

0 Kudos
dennisk
Flight Engineer
Flight Engineer
  • 2,953 Views

You might find Greg's Bash Guide useful. Full is examples and best practices.

0 Kudos
jeesshnasree
Flight Engineer
Flight Engineer
  • 2,887 Views

Hi @dennisk,

 

thanks for share 

0 Kudos
Joshua_Hinton
Flight Engineer Flight Engineer
Flight Engineer
  • 2,899 Views

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

https://devhints.io/bash

https://wiki.bash-hackers.org/

0 Kudos
Join the discussion
You must log in to join this conversation.