mirror of
https://github.com/cheat/cheat.git
synced 2025-04-09 11:14:03 +02:00
Merge pull request #183 from ihashacks/master
add debugging examples for bash, add new command route
This commit is contained in:
commit
cb706de241
@ -12,3 +12,9 @@ in
|
|||||||
2) echo "two found";;
|
2) echo "two found";;
|
||||||
3*) echo "something beginning with 3 found";;
|
3*) echo "something beginning with 3 found";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Turn on debugging:
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# Turn off debugging:
|
||||||
|
set +x
|
||||||
|
5
cheat/cheatsheets/route
Normal file
5
cheat/cheatsheets/route
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user