I_LINUX Telegram 574
🔍 Как найти и удалить пустые директории в Linux

Иногда после установки, удаления или переноса файлов остаются пустые директории, которые засоряют систему. Вот простой способ их найти и удалить одной командой!


find /path/to/search -type d -empty -delete


📌 Пояснение:

* -type d — ищем только директории
* -empty — фильтруем пустые
* -delete — удаляем найденное

🔐 Лучше сначала проверить, что будет удалено:


find /path/to/search -type d -empty


💡 Подсказка: если хочешь обработать всю систему, используй /, но будь осторожен — удали что-то нужное, и можно сломать систему. Лучше исключить важные каталоги, например:


find / -type d -empty -not -path "/proc/*" -not -path "/sys/*" -not -path "/dev/*" -delete


🧹 Отличный способ навести порядок в /tmp, /var/log, /home и других местах!

👉 @i_linux



tgoop.com/i_linux/574
Create:
Last Update:

🔍 Как найти и удалить пустые директории в Linux

Иногда после установки, удаления или переноса файлов остаются пустые директории, которые засоряют систему. Вот простой способ их найти и удалить одной командой!


find /path/to/search -type d -empty -delete


📌 Пояснение:

* -type d — ищем только директории
* -empty — фильтруем пустые
* -delete — удаляем найденное

🔐 Лучше сначала проверить, что будет удалено:


find /path/to/search -type d -empty


💡 Подсказка: если хочешь обработать всю систему, используй /, но будь осторожен — удали что-то нужное, и можно сломать систему. Лучше исключить важные каталоги, например:


find / -type d -empty -not -path "/proc/*" -not -path "/sys/*" -not -path "/dev/*" -delete


🧹 Отличный способ навести порядок в /tmp, /var/log, /home и других местах!

👉 @i_linux

BY Системный администратор


Share with your friend now:
tgoop.com/i_linux/574

View MORE
Open in Telegram


Telegram News

Date: |

Joined by Telegram's representative in Brazil, Alan Campos, Perekopsky noted the platform was unable to cater to some of the TSE requests due to the company's operational setup. But Perekopsky added that these requests could be studied for future implementation. In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. Step-by-step tutorial on desktop: Avoid compound hashtags that consist of several words. If you have a hashtag like #marketingnewsinusa, split it into smaller hashtags: “#marketing, #news, #usa. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place.
from us


Telegram Системный администратор
FROM American