Tag: shell
-
How to switch users in Linux Bash Shell script and execute multiple commands as different user
If you search you will find different answers to this. You can do this in multiple ways, here I will talk about 2 ways, single command and multiple commands. First the idea is to switch from say root user to a named user you created or was created for you on your Linux server to […]
-
BASH shell scripting links and resources
Bash scripting manual 5.1 Advanced Bash scripting guide Bash script cheat sheet Bash Scripting: Everything you need to know about Bash-shell programming Respond to prompt in Bash Script – a tutorial on how to respond to prompts in Bash scripts. How To Write a Bash Script That Answers Interactive PromptsĀ MySQL: Run Query from Bash […]