Spud1200
Fully Optimized
- Messages
- 2,570
- Location
- England, UK
Over the past couple of weeks I've been really trying to wrap my head around around writing my own bash scripts simply for the purpose of understanding more about what goes on under the hood of Linux.
I'm curious to know if anyone has any useful commands when writing there own scripts .
What I'm getting at is not necessarily the likes of your most used common commands like echo.
I've been asking google questions for days but don't seem to be getting any further forward.
I'll give you an example.
When writing a script and using the likes of the sleep command or for a user input something like yn and to end a script using the likes of end .
I'm most deffo not 100% on BASH Scripting, I'm pretty versed in the most used commands like grep, ls and overall navigating my way around the file system and even the like of du for example.
I really don't know how to explain what it is I'm trying to get at but say for example starting a program from the bash script and exiting a program, those commands what the likes of a pro would use when writing a new script .
If anyone can provide any commands to use with an explanation and even an example of how it would be executed would be a really big help.
I know this is a massive subject and its not possible to learn every command in the BASH man but at this point anything would be better than going back to google and banging my head against the wall.

I'm curious to know if anyone has any useful commands when writing there own scripts .
What I'm getting at is not necessarily the likes of your most used common commands like echo.
I've been asking google questions for days but don't seem to be getting any further forward.
I'll give you an example.
When writing a script and using the likes of the sleep command or for a user input something like yn and to end a script using the likes of end .
I'm most deffo not 100% on BASH Scripting, I'm pretty versed in the most used commands like grep, ls and overall navigating my way around the file system and even the like of du for example.
I really don't know how to explain what it is I'm trying to get at but say for example starting a program from the bash script and exiting a program, those commands what the likes of a pro would use when writing a new script .
If anyone can provide any commands to use with an explanation and even an example of how it would be executed would be a really big help.
I know this is a massive subject and its not possible to learn every command in the BASH man but at this point anything would be better than going back to google and banging my head against the wall.
