Cleaned up and merge other Linux snippit repo
Meged https://git.bprieshof.nl/brammp/linux into ./Linux
This commit is contained in:
8
Linux/Docs/HowTo-InfoAtLoginPromt.md
Normal file
8
Linux/Docs/HowTo-InfoAtLoginPromt.md
Normal file
@@ -0,0 +1,8 @@
|
||||
***IP address on host promts (add to /etc/issue)***
|
||||
```
|
||||
<ifName>: \4{<ifName>}
|
||||
```
|
||||
***IP address on motd (add to .bashrc)***
|
||||
```
|
||||
echo "IP: $(ip -o -4 addr list "<IFNAME>" | awk '{print $4}' | cut -d/ -f1)"
|
||||
```
|
||||
Reference in New Issue
Block a user