shred files using nemo context menu

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
User avatar
sadhu
Level 5
Level 5
Posts: 862
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

shred files using nemo context menu

Post by sadhu »

To completely remove a file from a HDD it is simply necessary to overwrite its contents before deleting the file. (Note that this procedure doesn't work on with solid state devices such as SSDs or USB stick memory, nor with a true journaling file system.)

Nevertheless I find it quite handy.

To add a "shred files" command to the nemo context memory:
  1. Create directory ~/.local/shared/nemo/actions
  2. In the new .../actions directory, save the following in a plain text file called "shred.nemo_action":

    Code: Select all

    [Nemo Action]
    Active=true
    Name=Shred selected
    Comment=Overwrite and delete object
    Exec=/usr/bin/shred -f -u -v -z -n 2 %F
    Selection=any
    Extensions=any
    EscapeSpaces=true
    
For more information on creating custom actions for the nemo right-click menu, see https://grvj.wordpress.com/2014/01/19/a ... -cinnamon/

-Sadhu
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
conwayphelps
Level 1
Level 1
Posts: 30
Joined: Sat Oct 24, 2020 4:54 pm
Location: Cottonwood, CA

Re: shred files using nemo context menu

Post by conwayphelps »

To add a "shred files" command to the nemo context memory:

Create directory ~/.local/shared/nemo/actions
In the new .../actions directory, save the following in a plain text file called "shred.nemo_action":
Shouldn't that be "~/.local/share/nemo/actions" instead of "~/.local/shared/nemo/actions"?
User avatar
sadhu
Level 5
Level 5
Posts: 862
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: shred files using nemo context menu

Post by sadhu »

conwayphelps wrote: Mon May 23, 2022 4:48 am
Shouldn't that be "~/.local/share/nemo/actions" instead of "~/.local/shared/nemo/actions"?
Oops.
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
Post Reply

Return to “Tutorials”