What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-27 12:24:01
linux show ip interfaces as table terminal
#Add this to ~/.bashrc #Show IP interfaces and their IP address. alias ipt=' echo -e "IPv4:\n-----------------" ; ip -o a show | cut -d " " -f 2,7 | grep -v : | column -t echo -e "\nIPv6:\n-----------------" ; ip -o a show |... Add solution -
Shell/Bash 2021-08-27 09:32:01
bash script to restart elasticsearch
#!/bin/sh RESTART="/etc/init.d/elasticsearch restart" SERVICE="elasticsearch" LOGFILE="/var/log/elasticRestart.log" ps -ef | grep elastic | grep -v grep > /dev/null if [ $? -eq 0 ] then /etc/init.d/elasticsearch ... Add solution
Best helpers
Ranking is empty