How to empty Trash through command line in Ubuntu
How to empty Trash through command line in Ubuntu
Operating System : Ubuntu 12.10 \n \l
I checked this practical in Ubuntu 12.10 \n \l .
To empty the trash in Ubuntu through command line follow the given steps
Step 1 : First check is Trash folder exist. By ls -la command you can see other files and folders inside Trash dir.
1
2
3
4
5
6
7
8
|
linux@tuxworld:~$ ls -la ~/.local/share/Trash/
total 20
drwx------ 5 linux linux 4096 Jul 17 2012 .
drwxr-xr-x 28 linux linux 4096 Jun 21 20:36 ..
drwx------ 2 linux linux 4096 Apr 2 07:51 expunged
drwx------ 2 linux linux 4096 Jun 18 21:02 files
drwx------ 2 linux linux 4096 Jun 18 21:02 info
linux@tuxworld:~$
|
Step 2: Now change to directory files.
1
2
3
|
cd linux@tuxworld:~$ cd ~/.local/share/Trash/files
ls -la ~/.local/share/Trash/files
|
Step 3 : Now remove all files and directory inside ~/.local/share/Trash/files
1
|
rm -fr ~/.local/share/Trash/files/*
|
Now check Trash in Desktop, it would be empty now.
No comments:
Post a Comment