grep "sshd.*Accepted" /var/log/auth.log | awk '{print $11}' | sort | uniq
grep "sshd.*Accepted" /var/log/secure | awk '{print $11}' | sort | uniq
grep "sshd.*Accepted" /var/log/auth.log | awk '{print $11}' | sort | uniq
grep "sshd.*Accepted" /var/log/secure | awk '{print $11}' | sort | uniq
greitas top direktoriju radikjlis, randantis net giliai esancias direkmtorijas
{ find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n; } 2>/dev/null
vienos direktorijos inode counteris:
find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
greitas trynimas senesniu nei 20d failu
find /opt/remi/php54/root/var/lib/php/session/ -atime +20 | xargs -r rm
node + selenium-webdriver + chromdriver. Galimybe virtualiai uzkrauti psl ir pagal xpath trigetint veiksums ar nuskaityti info,. console, tinkla ir t.t.
https://www.shellhacks.com/ssh-execute-remote-command-script-linux/
du --inodes -S | sort -rh | sed -n \
'1,50{/^.\{71\}/s/^\(.\{30\}\).*\(.\{37\}\)$/\1...\2/;p}'
arba tiesiog suskaiciuoti failus aplankuose:
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php54.off
mv /etc/httpd/conf.modules.d/10-php.conf /etc/httpd/conf.modules.d/10-php54.off
cp /opt/rh/httpd24/root/etc/httpd/conf.d/php55-php.conf /etc/httpd/conf.d/
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-php55-php.conf /etc/httpd/conf.modules.d/
cp /opt/rh/httpd24/root/etc/httpd/modules/libphp55-php5.so /etc/httpd/modules/
service httpd restart