BASH_SRV Telegram 96
🔥 Bash: выводим самые «тяжёлые» директории в системе 🧱

Когда место на диске заканчивается, надо быстро найти, кто его ест. Вот однострочник, который покажет 10 самых тяжёлых директорий в /:


du -ahx / | sort -rh | head -n 10


📌 Пояснение:

* du -ahx / — оценивает размер всех файлов и директорий, игнорируя другие файловые системы (важно, если есть монтирования);
* sort -rh — сортирует по размеру, от большего к меньшему;
* head -n 10 — берёт топ-10.

💡 Хочешь только директории без файлов? Замени -ahx на -h --max-depth=1:


du -h --max-depth=1 / | sort -rh


🎯 Быстро, просто, эффективно!

👉@bash_srv
👍16🔥2



tgoop.com/bash_srv/96
Create:
Last Update:

🔥 Bash: выводим самые «тяжёлые» директории в системе 🧱

Когда место на диске заканчивается, надо быстро найти, кто его ест. Вот однострочник, который покажет 10 самых тяжёлых директорий в /:


du -ahx / | sort -rh | head -n 10


📌 Пояснение:

* du -ahx / — оценивает размер всех файлов и директорий, игнорируя другие файловые системы (важно, если есть монтирования);
* sort -rh — сортирует по размеру, от большего к меньшему;
* head -n 10 — берёт топ-10.

💡 Хочешь только директории без файлов? Замени -ahx на -h --max-depth=1:


du -h --max-depth=1 / | sort -rh


🎯 Быстро, просто, эффективно!

👉@bash_srv

BY Bash Советы




Share with your friend now:
tgoop.com/bash_srv/96

View MORE
Open in Telegram


Telegram News

Date: |

The Channel name and bio must be no more than 255 characters long The creator of the channel becomes its administrator by default. If you need help managing your channel, you can add more administrators from your subscriber base. You can provide each admin with limited or full rights to manage the channel. For example, you can allow an administrator to publish and edit content while withholding the right to add new subscribers. “Hey degen, are you stressed? Just let it all out,” he wrote, along with a link to join the group. As of Thursday, the SUCK Channel had 34,146 subscribers, with only one message dated August 28, 2020. It was an announcement stating that police had removed all posts on the channel because its content “contravenes the laws of Hong Kong.” According to media reports, the privacy watchdog was considering “blacklisting” some online platforms that have repeatedly posted doxxing information, with sources saying most messages were shared on Telegram.
from us


Telegram Bash Советы
FROM American