-
How to Discover, From Inside a Bash Script, the Path the Script Is In
When you develop complex Bash scripts and start putting various scripts into a folder, where one script interacts with another by, for example, starting it, it quickly becomes necessary to ensure we know the path the script was started from, so we can start the other scripts with a fully...
-
Run entire shell script as root
$ #!/usr/bin/sudo /bin/bash Placing sudo in the shebang line of a shell script runs the entire thing as root. Useful for scripts designed to, e.g. automate system upgrades or package manager wrappers — makes prepending everything with sudo no longer necessary View this command to comment, vote or add to...
-
How to identify potentially vulnerable network daemons on your Linux systems
Identifying vulnerable network daemons for remediation and how attackers find vulnerable resources. Article Source.