mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 03:00:19 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
29
tldr/ifconfig
Normal file
29
tldr/ifconfig
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ifconfig
|
||||
|
||||
> Network Interface Configurator.
|
||||
> More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
|
||||
|
||||
- View network settings of an Ethernet adapter:
|
||||
|
||||
`ifconfig eth0`
|
||||
|
||||
- Display details of all interfaces, including disabled interfaces:
|
||||
|
||||
`ifconfig -a`
|
||||
|
||||
- Disable eth0 interface:
|
||||
|
||||
`ifconfig eth0 down`
|
||||
|
||||
- Enable eth0 interface:
|
||||
|
||||
`ifconfig eth0 up`
|
||||
|
||||
- Assign IP address to eth0 interface:
|
||||
|
||||
`ifconfig eth0 {{ip_address}}`
|
||||
Reference in New Issue
Block a user