change ``bash headers to
``sh
This commit is contained in:
@@ -7,27 +7,27 @@ tags: [ "networking" ]
|
||||
|
||||
Stats on local net usage within domain.
|
||||
|
||||
```bash
|
||||
```sh
|
||||
iftop -p -n
|
||||
```
|
||||
|
||||
```bash
|
||||
```sh
|
||||
whois domain.com
|
||||
```
|
||||
|
||||
Info on domain, whether it's taken, et c.:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
dig domain.com
|
||||
```
|
||||
|
||||
```bash
|
||||
```sh
|
||||
ifconfig
|
||||
```
|
||||
|
||||
Versatile wifi tool:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
nmcli
|
||||
```
|
||||
|
||||
@@ -35,7 +35,7 @@ nmcli
|
||||
|
||||
You want to connect to the internet.
|
||||
|
||||
```bash
|
||||
```sh
|
||||
sudo iwconfig
|
||||
```
|
||||
|
||||
@@ -61,7 +61,7 @@ Get knowledge of wireless state. The output might be:
|
||||
|
||||
This tells you that your ESSID is 'Gandalf WajFaj', and the access point name is 10:05:......
|
||||
|
||||
```bash
|
||||
```sh
|
||||
nmcli radio
|
||||
```
|
||||
|
||||
@@ -69,23 +69,23 @@ You get an overview of your radio devices.
|
||||
You're told that eth0 deals with your ethernet and `wlan0` deals with wifi.
|
||||
`wlan0` is a file which represents your wifi device.
|
||||
|
||||
```bash
|
||||
```sh
|
||||
nmcli wlan0 wifi rescan
|
||||
```
|
||||
|
||||
```bash
|
||||
```sh
|
||||
nmcli device wifi list
|
||||
```
|
||||
|
||||
Now to connect.
|
||||
|
||||
```bash
|
||||
```sh
|
||||
nmcli device wifi connect [SSID] [your password] [wifi password]
|
||||
```
|
||||
|
||||
Alternatively, you can use
|
||||
|
||||
```bash
|
||||
```sh
|
||||
nmcli -ask device wifi connect [SSID]
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user