Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
project:linuxfun [2016/04/25 04:12] over23 |
project:linuxfun [2016/11/24 17:13] over23 Linux project: openVPN installation howto link added |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{project:siroky_vtip.jpg}} | {{project:siroky_vtip.jpg}} | ||
+ | * LINUX BASICS Public Wiki by Over and LiPo: http://wiki.li-on.cz/ | ||
+ | |||
+ | * A lot of interesting and useful commands and info for Linux machine [BASH positive] - to be rewritten to Doc: | ||
+ | https://over23.github.io/r00t_l4b/useful_linux.html | ||
+ | |||
<code> | <code> | ||
$ cat pismenka1.txt | iconv -f utf8 -t ascii//TRANSLIT//IGNO RE > ascii.txt | $ cat pismenka1.txt | iconv -f utf8 -t ascii//TRANSLIT//IGNO RE > ascii.txt | ||
Line 15: | Line 20: | ||
* get me emails from gmail | * get me emails from gmail | ||
* parse only number of new emails there | * parse only number of new emails there | ||
+ | |||
+ | |||
+ | <code> | ||
+ | for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2" " $3}END{print ""}' $file; done | sort -k 2 -n -r | less | ||
+ | </code> | ||
+ | * parsuje used swap space | ||
+ | |||
+ | * exchange fish to bash | ||
+ | <code>usermod -s /usr/bin/fish username</code> | ||
====== Tools ====== | ====== Tools ====== | ||
Line 21: | Line 35: | ||
* https://www.owasp.org/index.php/ZAP | * https://www.owasp.org/index.php/ZAP | ||
+ | * files over 50Megs | ||
+ | |||
+ | find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | ||
+ | |||
+ | * find and kill some running process | ||
+ | |||
+ | kill `ps aux | grep -F 'myServer' | grep -v -F 'grep' | awk '{ print $2 }'` | ||
+ | |||
+ | ====== OpenVPN ====== | ||
+ | * https://www.howtoforge.com/tutorial/how-to-install-openvpn-on-centos-7/ |