mirror of
https://github.com/cheat/cheat.git
synced 2024-11-30 09:46:53 +01:00
7afb33aee4
* 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
11 lines
244 B
Plaintext
11 lines
244 B
Plaintext
# To release the current IP address:
|
|
sudo dhclient -r
|
|
|
|
# To obtain a new IP address:
|
|
sudo dhclient
|
|
|
|
# Running the above in sequence is a common way of refreshing an IP.
|
|
|
|
# To obtain a new IP address for a specific interface:
|
|
sudo dhclient eth0
|