I appreciate the security of Linux.
Is there a way to stop the incessant messages such as "Do you want to delete..."
Give me a break please.
I appreciate the security of Linux.
Is there a way to stop the incessant messages such as "Do you want to delete..."
Give me a break please.
Is that what you are looking for?
Caja > Edit preferences > Behaviour > Ask before emptying Trash or deleting files & Include a Delete command that bypasses Trash
Options set as per Eugene's example are "sane", verify only when emptying trash, or direct delete. That way, you have that "security blanket" for when "OMG! Did I just do that?"
Since I actually do most of my stuff as root at command line (NOT the recommended thing), except for GUI in my web browser, I am always on guard about the scope of my actions, and I normally don't usually have that GUI-prompt "thought interruption", but feel reassured with the settings as per Eugene when I do work thru the GUI.
I agree, I have mine set that way and delete stuff I need or want a lot, luckily I keep good backups of my important data. My fingers seem to work a lot faster than my eyes or mind.
I like to have these in my ~/.bash_aliases
file, both for my user account and for root
:
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -I'
If you prefer a little more safety, use a lowercase -i
with the rm
command: alias rm='rm -i'
.
If you really, really know what you're doing, and you don't want to be prompted, use command [cp or mv or rm]
, or maybe even [cp or mv or rm] -f
:
command rm DELETE_THIS.txt
You are right.
I remember trying to recover a file I deleted and later decided I needed it.
I think I need to change my strategy of "saving disk space" by frequently emptying the trash.
My HD is 2 Tb I only use about 60 Mbytes.
When I do push stuff into the Trash-can via GUI, I don't empty that right away.
I may not even empty that until a few days later, safely distant in time from when I did things, giving me that "recovery window" for taking back from a dumb trash action.
I guess I might be labelled bipolar when it comes to my persona as a GUI user vs my persona as command-line-ROOT .
I use the GUI when I am reviewing old stuff in various directories and doing house-cleaning, so I may get a bit "impatient" with myself and do need to reclaim some items from time to time.
As for when I use my root persona, it is rarely to purge. It is usually reserved ...
for OS config, tweaking or capturing snapshots (beyond regular rsync backups) before "tampering"
or massive data migration from partition to partition (to defrag a partition; yes, I know, not necessary unless it gets over roughly 97%),
or large content directory to large content directory (like mass move of an entire set "music category" files from one place to the next, followed do full comparison before purging original copy).