PDA

View Full Version : help... howto delete a file with xterm


kudos1uk
2007-07-10, 12:40
Newbie needs to delete a file:

Delete the GPE Calendar file : /home/user/.gpe/calendar

I think I need Xterm?

I did that and typed "sudo gainroot" --- am I on the right lines?

This appeared to take me to the /home/user/ directory but when I typed /home/user/.gpe/ it says "access denied".

I'm a stuck newbie who's a bit lost now.

Milhouse
2007-07-10, 12:44
to change directory:


cd /home/user/.gpe


to delete a file


rm /home/user/.gpe/calendar


You probably don't need to be root to delete the above file... access root sparingly and with care. :)

kudos1uk
2007-07-10, 13:00
Thanks Millhouse worked a treat, I should have guess it was CD just like the old dos commands I used to use.

well not all... tried "dir" which did not work....

debernardis
2007-07-10, 13:09
This could help: http://www.oreillynet.com/linux/cmd/
BTW dir becomes ls

kudos1uk
2007-07-10, 16:15
This could help: http://www.oreillynet.com/linux/cmd/
BTW dir becomes ls


Very nice, thanks for that.

Fayaz Ali
2012-10-25, 09:28
Hello Friend I want to delete all files and director in /and folder but it says access denied what would i have to do I extract it Android Files in Root Director plz help me

Fayaz Ali
2012-10-25, 09:30
This could help: http://www.oreillynet.com/linux/cmd/
BTW dir becomes ls

plz help me

soryuuha
2012-10-25, 09:30
ls -al and see who's the owner of the path

sifo
2012-10-25, 09:34
To delete the whole /and dir

root
rm -r /and

cddiede
2012-10-25, 10:14
Hello Friend I want to delete all files and director in /and folder but it says access denied what would i have to do I extract it Android Files in Root Director plz help me

Usually, when I see someone who's attempting a recursive directory deletion, and is stymied by the fact that it's permission denied, that person is attempting to delete something they shouldn't.

Yes, rm -Rf as root will accomplish your task, but even money is saying that you won't be happy with the result.