1 |
du -sch /var/* |

Със следващата команда се проверява за празни файлове и директории.
1 2 |
find /etc -type f -empty find /etc -type d -empty |
„F“ – за файлове
„D“ – за директория
Изтриване на празни файлове и директории
1 2 |
find /etc -type d -empty -delete find /etc -type f -empty -delete |
Може да се добави и аргумент който да изброй колко са изтритите файлове/директории
1 2 |
find /etc -type d -empty -delete |wc -l find /etc -type f -empty -delete |wc -l |
1 2 |
find . -type d -print0 | xargs -0 chmod 0755 find . -type f -print0 | xargs -0 chmod 0644 |
1 2 3 4 5 |
iptables -vL -t filter iptables -vL -t nat iptables -vL -t mangle iptables -vL -t raw iptables -vL -t security |