Update and some new examples

* Update a mistake in ifconfig
* Add example for a SOCKS proxy in ssh
* Add an example for mounting a NFS dir in mount
* Add a description for git blame
* Add some examples in grep
* Add example for specifing an interface in dhclient
* Add a description for apt-get install
* Add some commands in apt-cache
* Add an example of pretty printing jsons using python
This commit is contained in:
Erethon
2013-12-03 22:20:11 +02:00
parent d8ff70dd57
commit 7afb33aee4
9 changed files with 34 additions and 1 deletions

View File

@ -5,9 +5,10 @@ ifconfig wlan0
ifconfig -a
# Take down / up the wireless adapter
ifconfig {up|down} wlan0
ifconfig wlan0 {up|down}
# Set a static IP and netmask
ifconfig eth0 192.168.1.100 netmask 255.255.255.0
# You may also need to add a gateway IP
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1