Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how can I get a warning before sending a file to the trash, as in Windows ?
There must be a way to do that, at least programmatically, as Linux is open source. I'm just looking for the easiest.
Thanks
The option to change that is under file management preferences. When you open a folder with nautilus, go to edit, preferences, and click on the behavior tab.
No it's not.
There is an option to confirm before deleting or emptying the trash, but not sending to the trash.
This is really annoying because on some keyboards, the delete key is close to others and might be pressed by accident. And if one ends up with a lot of files from the trash from 6 months ago, you might not remember if you meant to send this to the trash or not, just like you don't analyze your real life trash before putting it away.
Because sending files to "Trash" is easily recoverable (by restoring them) there is no need to "Confirm sending to trash".
There is a need to "Confirm Delete", as this can indeed happen by a mis-click.
When you empty the trash, you are prompted "are you sure?". This is sensible.
I never send files to trash (because I want them deleted, not just moved) but I am prompted for the delete. This gives me a moment to reconsider.
Quote:
And if one ends up with a lot of files from the trash from 6 months ago, you might not remember if you meant to send this to the trash or not, just like you don't analyze your real life trash before putting it away.
So do you have an argument with the truck driver when they come to take your household trash away?
"Stop! Wait! I haven't checked my rubbish for things I did not mean to throw out."
You should not be throwing stuff out anyway. It is wasteful of resources, you should be recycling, which is what delete does
And to add to that, I did some research, and I have found a patch file to do this, as it has not yet been implemented. But I'm pretty sure the OP doesn't want to compile from source
There is an option to confirm before deleting or emptying the trash, but not sending to the trash
This is just to tell you that I am using Konqueror as my file manager and in the Settings menu ->Configure Konqueror -> File management -> General, there IS an option for the setting the trash "confirmation" thing. I am not using Nautilus file manager, see if you can shift to Konqueror, it is easier than writing a patch!
Is it necessary for you to use Ubuntu?, you can shift to Kubuntu, Konqueror can work there very easily.
This is just to tell you that I am using Konqueror as my file manager and in the Settings menu ->Configure Konqueror -> File management -> General, there IS an option for the setting the trash "confirmation" thing. I am not using Nautilus file manager, see if you can shift to Konqueror, it is easier than writing a patch!
Is it necessary for you to use Ubuntu?, you can shift to Kubuntu, Konqueror can work there very easily.
Good to know, now I know that for the next time something comes up like this. Thanks Anisha.
And I noticed you are on your slackware machine - I haven't seen you use it yet
Some of my virtual friend(s) here at LQ are Slackware fanatics, I got inspired by them, the Slackware community is extremely friendly, polite and encouraging and I was pushed into Slackware and I am not repenting now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.