nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

Exit command in Linux/Unix

Posted: 11 Jun 2020 03:12 AM PDT


{Updated} Sometimes we need to stop the execution of our script when a condition is satisfied. For example, if tar command not installed, stop the execution of our shell script. We can also take action based on the exit code of the command. Say if ping command is successful, continue with script or exit with an error. Let us see how to use the exit command and the exit statuses in our scripts.

The post Exit command in Linux/Unix appeared first on nixCraft.

How To Set Up WireGuard Firewall Rules in Linux

Posted: 10 Jun 2020 04:57 AM PDT

set up WireGuard Firewall rules (iptables) in Linux
How do I set up WireGuard Firewall rules (iptables) in Linux?

The post How To Set Up WireGuard Firewall Rules in Linux appeared first on nixCraft.