Unable to trash folder: Permission denied from /opt directory

14,932

Try with

sudo rm -rf /opt/lampp/htdocs/xampp/dhiva 
Share:
14,932

Related videos on Youtube

Dhivahar
Author by

Dhivahar

I am new for Ubuntu. I want to more learn about it. its just awesome platform.

Updated on September 18, 2022

Comments

  • Dhivahar
    Dhivahar over 1 year

    I got one minor error while trashing my folder. When I tried to delete folder from /opt directory it did show one error like dhiva: Unable to trash file: Permission denied. I tried to delete through the terminal using this comment

    dhivahar@dhivahar-PVM900M:~$ sudo rm /opt/lampp/htdocs/xampp/dhiva 
    

    But it failed to delete. I got this error from terminal

    rm: cannot remove ‘/opt/lampp/htdocs/xampp/dhiva’: Is a directory 
    

    I can't edit any files from these directories. I am new for Ubuntu :(

  • Dhivahar
    Dhivahar about 9 years
    its work.. great... thank so much.. thank you so much for quick response...
  • Charles Green
    Charles Green over 5 years
    This is basically a duplicate of the accepted answer or the question.