I'm new to Ubuntu and I have installed android-studio in /opt/
.today when I opened my android studio it notified for update but when I clicked upon update it said permission error .So i searched for it and came to know that for resolving it I can move the directory from /opt
to my home
and I did that with following command :
sudo cp -r /opt/android-studio ~/
then I checked my home and I found a folder named android-studio there .but then I found that this android-studio directory exist at two places one at /opt/
and another at home
so why I need two ,it will only misuse space . then I found that I can easily change my android-studio directory to current user so that it will allow updates and I did same with following command :
sudo chown -R $USER:$USER /opt/android-studio
It worked so well and I am capable of updating my android-studio.Now I feel that android-studio directory which I made earlier at my home
is useless so i want to delete it .I tried to deleting it by :
rm -r android-studio
and it has given following message:
rm: descend into write-protected directory 'android-studio'?
as I am new to Ubuntu so I want to know what this message exactly mean and how should I proceed to delete this android-studio directory at my home
.thank you!