Saturday, June 12, 2010

Deleting Folders/Files from Trash in Linux

Sometimes we can't delete folders/files which are present in Trash, because of some permissions problem, in that case

Open the terminal

switch to the root, by using following command

[subin@wipro-049cafd91 ~]$ su -
Password:

Enter the root password and click on enter it will enter into the root

[root@wipro-049cafd91 subin]#

Navigate to the following folder

[root@wipro-049cafd91 subin]# cd /home/subin/.Trash

Note: In linux Hidden folders will start with "."

Now enter the following command to delete folders/files in trash folder

[root@wipro-049cafd91 subin]# rm -rf *

This will delete all folders/files in trash folder

No comments:

Post a Comment