From 41d2a810e609c58364ac401225b66c1f27f90fd7 Mon Sep 17 00:00:00 2001 From: Brandon Pierce Date: Wed, 13 Aug 2014 10:49:56 -0700 Subject: [PATCH] add debugging examples for bash add new command route --- cheat/cheatsheets/bash | 6 ++++++ cheat/cheatsheets/route | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 cheat/cheatsheets/route 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