Version 2 of GNU Bash
In this post we will review how to declare, iterate over, and check a value of an indexed arrays and associative arrays.
Stop worrying about your VPN connection dropping and your remote job to get kill. You can work on a remote server from your laptop or desktop in a safe and controlled way by detaching your screen session and reattaching later.
When you attempt to modify a file without write permission on it, you will end-up with a
permission denied error.
$ touch donottouch.txt && sudo chown root donottouch.txt $ cat donottouch.txt $ echo "change stuff" > donottouch.txt -bash: donottouch.txt: Permission denied
Using sudo before echo won't help since the redirection will still apply within your shell environment. Here is few approaches to this problem.