diff --git a/cheat/cheatsheets/bash b/cheat/cheatsheets/bash index e74a768..5b7a702 100644 --- a/cheat/cheatsheets/bash +++ b/cheat/cheatsheets/bash @@ -12,3 +12,9 @@ in 2) echo "two found";; 3*) echo "something beginning with 3 found";; esac + +# Turn on debugging: +set -x + +# Turn off debugging: +set +x diff --git a/cheat/cheatsheets/route b/cheat/cheatsheets/route new file mode 100644 index 0000000..032dcac --- /dev/null +++ b/cheat/cheatsheets/route @@ -0,0 +1,5 @@ +# Add a default gateway: +route add default gateway 192.168.0.1 + +# Display routing table IP addresses instead of host names: +route -n