Subscribe to How-To Geek Підписатись на How-To Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

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 була вивезена!

This article was originally written on 12/13/06 Tagged with: Ця стаття була спочатку написана на 12/13/06 тегами: Ubuntu Ubuntu , , Ubuntu Tips & Tweaks Ubuntu Поради & Tweaks

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: Просто введіть ваші ім'я та адресу електронної пошти нижче:


Name: Ім'я:
Email: Електронна пошта:

Comments (10) Коментарі (10)

  1. Sayne Sayne

    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! Ура!

  2. mozey mozey

    heheh, ofcourse!, .Trash!!!!!!!, where else would it be!? Heheh, звичайно ж,,. Trash !!!!!!!, де ж ще буде!? i was looking for that damn directory for a long time!. Я шукав цю чортову каталозі протягом тривалого часу!.

  3. Tom Тома

    I can't get this to work in 7.10. Я не можу отримати цю роботу о 7.10. Has the command changed? Має команді змінилася?

  4. xMoDx xMoDx

    not working on Ubuntu Hardy не працює на Ubuntu Hardy

  5. xMoDx xMoDx

    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 підпапки в кожній з них, "досьє" та "інформація"

  6. Joel Йоїл

    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.

  7. sam Сем

    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. Тільки після введення цього я знайшов його.

  8. Liquid Рідкі

    LoL, he was type it 6 days before you….. LOL, він був ввести його 6 днів до ... ..

  9. Priya Priya

    sudo rm -rf '/home/username/.local/share/Trash' on Ubuntu 8.04 Суду РМ-РФ '/ Home / Ім'я користувача /. Local / Share / Trash' на Ubuntu 8.04
    thanks alot… Большое спасибо ...

  10. Bodsda Bodsda

    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


Leave a Comment Залишити коментар




Leave your Залиш свій friendly дружній comment here. коментарі.

If you have a computer help question, Якщо у вас є комп'ютер допоможе питання, click here to leave it on the forums Натисніть тут, щоб залишити його на форумах instead. замість.

Note: Your comment may not show up immediately on the site. Примітка: Ваш коментар може не з'явитися відразу на місці.

Our Friends Наші друзі
Getting Started Приступаючи до роботи


About How-To Geek Про How-To Geek
What Is That Process? Що це за процес?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
mDNSResponder.exe mDNSResponder.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. Всі права захищені.