Unable to remove old GAMBAS3 Project folders

Post

Posted
Rating:
#1 (In Topic #1316)
Avatar
Regular
Askjerry is in the usergroup ‘Regular’
On my Raspberry Pi I have a directory called "GAMBAS FILES", inside of this are several folders, each with a project I was working on.

I had been working with a Terabloom fan system and have three directories in the GAMBAS Files main directory…

/home/pi/GAMBAS FILES
<LIST>
  • <LI>Terabloom_Slider_Test_V2</LI>
</LIST>
<LIST>
  • <LI>Terabloom_V001</LI>
</LIST>
<LIST>
  • <LI>Terabloom_V1</LI>
</LIST>
<LIST>
  • <LI>Terabloom_01</LI>
</LIST>

The only file I want is the Terabloom_Slider_Test_V2 folder… the others are obsolete… they are not the only ones… but enough for this post…

If I click on Terabloom_01 and tell it RENAME, I can rename it to "Delete_01" with no problem… but if I right click and select MOVE TO TRASH, or I hit delete… it will not let me. It says "PERMISSION DENIED"

So what do i need to do in order to clean up my system and remove the old experimental or obsolete folders and files???

Thanks,
Jerry
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
<HIGHLIGHT highlight="shell">

# sudo rm -rf /path/to/folder

</HIGHLIGHT>
should force delete 'folder' and all contents

or
<HIGHLIGHT highlight="shell">

# sudo xdg-open /path/to/folder

</HIGHLIGHT>
should open file manager with root permissions
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Regular
Askjerry is in the usergroup ‘Regular’
Image

(Click to enlarge)


Does not seem to be working.

Any suggestions?
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘Guru’
/DELETE_01 does not exist

It's either…
$ cd '~/GAMBAS FILES'
$ sudo rm -rf ./DELETE_01   # note the full stop ./

or use the full path
$ sudo rm -rf '~/GAMBAS FILES/DELETE_01'


start the path with ./ for current dir

/ is the root of the system not your current dir
./ is current dir
../ is parent dir.
~ is home dir
Online now: No Back to the top

Post

Posted
Rating:
#5
Guru
BruceSteers is in the usergroup ‘Guru’
 or just
sudo xdg-open $HOME
or
sudo xdg-open ~

should open a file browser, you can use the mouse from then on.
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Regular
Askjerry is in the usergroup ‘Regular’
I used this one… $ sudo rm -rf ./DELETE_01 and it worked just fine!

I found out something odd… when using by Linux desktop I can just delete folders and copy into them normally. But on the Raspberry Pi I can't delete unless I use this command line… and I can't copy things into the folder unless it is open in GAMBAS and I drag into it from another instance of the file menu.

I'm wondering what the difference is… and if it is possible to make the file system on the Raspberry Pi work globally like the desktop???

Thanks for your help!
Jerry
Online now: No Back to the top

Post

Posted
Rating:
#7
Trainee
There seems to be a problem with the permissions on the Raspberry Pi. By default, Linux-based systems, including the Raspberry Pi, have strict permission settings for users. On the desktop, directory permissions may be set high. Check what permissions you have set on the directory you can't delete.
try:

Code (gambas)

  1. ls -l /path/to/directory

Look at the column with permissions and the owner. You might find that you need to change the ownership of the directory to yourself or add proper permissions. You can do this by:

Code (gambas)

  1. sudo chown -R pi:pi /path/to/directory

Or, if you want to give full permissions (don't recommend this for everything):

Code (gambas)

  1. sudo chmod -R 777 /path/to/directory

These commands should help you access the directory without needing to use sudo rm -rf or dragging files in GAMBAS. Hope this helps somehow :geek:
Online now: No Back to the top
1 guest and 0 members have just viewed this.