Pario TechnoBlob
About
Posts
Posts
Utskrift av port, pid og daemon navn v.h.a netstat
netstat -nap| egrep "(0.0.0.0).*(0.0.0.0).
LISTEN" | gawk '{print $4 ":" $7}' | egrep -o ":(.
)" | cut -c 2-|sed 's///:/'
Remove HTML metatags from a file using sed
sed -e 's/< [^>]*>//g' myfile.html
Shell script to restart MySQL server if it is killed or not working due to ANY cause
#!/bin/bash # Shell script to restart MySQL server if it is killed or not working # due to ANY cause. # When script detects mysql is not running (it basically sends ping...
Diskusage in catalogs using du
Oneliner to determine recursive diskusage in catalogs ls -lR|du -sh *
««
«
1
2
3
…
120
121
122
…
126
»
»»