How To Empty the Ubuntu Gnome Trash from the Command Line Як очистити кошик Ubuntu Gnome з командного рядка
Ubuntu has a trash can/recycle bin feature similar to windows. Ubuntu має корзини / Кошики функцію, аналогічну Windows. The difference with Ubuntu is that you can empty the trash from the command line. Різниця з Ubuntu є те, що можна очистити кошик з командного рядка.
Here's the full trash icon, in the lower right hand corner: Ось повний значок корзини, в нижньому правому куті:

Just open a terminal and type in the following command: Просто відкрийте термінал і введіть таку команду:
rm -rf ~/.Trash/* RM-RF ~ /. Trash / *
Trash has been taken out! Trash була вивезена!
![]()

Daily Email Updates Email Щоденні оновлення
You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:



Thank you for this. Спасибо Вам за це. There was some old src files in my bin that I didn't have permission to delete (I don't know how), and with this command all I had to do was add a sudo in front and it worked brilliantly! Був старих SRC файли в моїй бен, що я не мав дозволу на видалення (я не знаю, як), і з цією командою все, що потрібно було додати перед Судом, і це працювало блискуче! Cheers! Ура!
heheh, ofcourse!, .Trash!!!!!!!, where else would it be!? Heheh, звичайно ж,,. Trash !!!!!!!, де ж ще буде!? i was looking for that damn directory for a long time!. Я шукав цю чортову каталозі протягом тривалого часу!.
I can't get this to work in 7.10. Я не можу отримати цю роботу о 7.10. Has the command changed? Має команді змінилася?
not working on Ubuntu Hardy не працює на Ubuntu Hardy
i found a fix here Я знайшов виправити тут
http://ubuntuforums.org/showthread.php?p=5014310 http://ubuntuforums.org/showthread.php?p=5014310
User trash is in /home/username/.local/share/Trash Користувач сміття в / Home / Ім'я користувача /. Local / Share / Trash
Root trash is in /root/.local/share/Trash Кореневі сміття в / Root /. Local / Share / Trash
There are usually 2 subfolders in each of these, 'files' and 'info' Є правило 2 підпапки в кожній з них, "досьє" та "інформація"
Yeah i got mine to work using the command: sudo rm -rf '/home/username/.local/share/Trash' on Ubuntu 8.04. Та я хв роботу, використовуючи команду: Суду РМ-РФ '/ Home / Ім'я користувача /. Local / Share / Trash' на Ubuntu 8.04. Thanks a bunch as I needed this since I put files into the trash that were read-only, so then I didn't have permission to delete my own files. Завдяки букет, як я це необхідно, тому що я розмістити файли у відро для сміття було читати, що тільки, так що тоді я не мав дозволу на видалення мої власні файли. Damn I hate permissions sumetimes. Чорт я ненавиджу дозволів sumetimes.
For those of you who could not find the solution try this Для тих з вас, хто не зміг знайти рішення Try This
In the command line type the following У командному рядку введіть наступну
$sudo nautilus /home/[your user folder] $ Суду Nautilus / Home / [ім'я папки користувача]
After this a window will open then view the hidden files using Ctrl+h and go to .local/share/Trash/files Після цього відкриється вікно потім переглядати приховані файли з допомогою Ctrl + H і перейдіть до. Local / Share / Trash / файли
There you will find the files that are in trash remove it directly… Там ви знайдете файли, які знаходяться в кошик видалити його прямо ...
This is found in ubuntu 8.04 Це знаходиться в Ubuntu 8.04
Oh already Joel has told that any way i am submitting it. Ах, вже Джоел сказав, що жодним чином я представляю його. Only after typing it i found it. Тільки після введення цього я знайшов його.
LoL, he was type it 6 days before you….. LOL, він був ввести його 6 днів до ... ..
sudo rm -rf '/home/username/.local/share/Trash' on Ubuntu 8.04 Суду РМ-РФ '/ Home / Ім'я користувача /. Local / Share / Trash' на Ubuntu 8.04
thanks alot… Большое спасибо ...
Just in case anyone was blissfully unaware, the command Про всяк випадок хто-небудь в блаженному невіданні, команда
sudo rm -rf ~/.Trash/* Суду РФ RM-~ /. Trash / *
means, remove recursively(include subfolders, and subsubfolders etc.) forceably(dont ask me for confirmation) everything in this folder(The * is a wildcard meaning it matches 'everything' in the folder) кошти, видалити рекурсивний (включаючи вкладені папки і subsubfolders т.д.) примусово (Dont запитаєте мене за підтвердження), усе в цю папку (* є Wildcard сенсі воно збігається з 'всі' в папці)
so whatever you do, dont do Тому все, що ви робите, Dont Do
sudo rm -rf /* Суду РМ і РФ / *
unless you want to loose all your data якщо ви не хочете втратити всі ваші дані
Bodsda Bodsda