Results 1 to 7 of 7

Thread: How to use shred command?

  1. #1
    Join Date
    Nov 2011
    Beans
    14

    How to use shred command?

    I do not understand what the shred command does, as in its specific text. I understand that it does a secure overwrite and doesn't just forget the pointer. How would I, for instance, shred my trash bin?

  2. #2
    Join Date
    Jun 2009
    Location
    NY
    Beans
    570
    Distro
    Kubuntu Development Release

    Re: How to use shred command?

    Here is a good web page that describes what you want to do.
    http://www.ubuntugeek.com/tools-to-d...ntu-linux.html

    Instead of using shred, I would recommend the secure-delete tools.
    The same link describes the secure-delete tools.

    Code:
    sudo apt-get update
    Code:
    sudo apt-get install secure-delete
    -Red
    Everything in the future is a wave, everything in the past is a particle. -Lawrence Bragg

    Parabola: https://parabolagnulinux.org/
    Completely freed... Libre GNU/Linux !!!

  3. #3
    Join Date
    Nov 2011
    Beans
    14

    Re: How to use shred command?

    I don't really understand what he goes on about. -f, etc. I've not been able to find any documentation on how the filesystem is set up for ubuntu so reading all of that is pretty much jarbled information for me. Where is a decent how-to?

    edit: I have installed secure-delete tools but it is all terminal commands. I do not know how to use terminal and do not know how to "aim" the commands at my trash bin, hence why I want to use a way to set it up to secure delete all of the contents of my trash bin when I empty the trash.
    Last edited by jrc7z; July 27th, 2012 at 12:15 AM.

  4. #4
    Join Date
    Feb 2010
    Location
    South of the Maple Trees
    Beans
    9,277
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How to use shred command?

    Not sure about shredding within the trash bin. I usually cd to the directory with the files I want to delete, then use the shred command. After that, I simply open the file manager and send the files to the trash bin. The only part of the file that is left after the shred is the file name. Use the following command to see the particulars for the shred command.
    Code:
    man shred

  5. #5
    Join Date
    Nov 2011
    Beans
    14

    Re: How to use shred command?

    I do not know what cd to the directory means.

  6. #6
    Join Date
    Feb 2010
    Location
    South of the Maple Trees
    Beans
    9,277
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How to use shred command?

    Quote Originally Posted by jrc7z View Post
    I do not know what cd to the directory means.
    cd is the command used to change directories. Let's say you had a file named picture.jpg on your desktop and you wanted to shred it. First you would need to get the terminal into the proper folder(directory) with the cd command, which would look like this,
    Code:
    cd ~/Desktop
    Then you would run the shred command, which by default writes ov the file with random bits 3 times. I use the -v argument with the command so the terminal will give me output as it is working and the -u argument which tells the terminal to rename, then delete the file. To read more about the arguments open a terminal and use the command I posted earlier. The following is an example of what I have discussed,
    Code:
    urock@uRock-Desktop:~$ cd ~/Desktop
    urock@uRock-Desktop:~/Desktop$ shred -vu picture.jpg
    shred: picture.jpg: pass 1/3 (random)...
    shred: picture.jpg: pass 2/3 (random)...
    shred: picture.jpg: pass 3/3 (random)...
    shred: picture.jpg: removing
    shred: picture.jpg: renamed to 00000000000
    shred: 00000000000: renamed to 0000000000
    shred: 0000000000: renamed to 000000000
    shred: 000000000: renamed to 00000000
    shred: 00000000: renamed to 0000000
    shred: 0000000: renamed to 000000
    shred: 000000: renamed to 00000
    shred: 00000: renamed to 0000
    shred: 0000: renamed to 000
    shred: 000: renamed to 00
    shred: 00: renamed to 0
    shred: picture.jpg: removed
    urock@uRock-Desktop:~/Desktop$ cd ..
    urock@uRock-Desktop:~$
    The cd .. command wi take the terminal to the previous directory.
    Last edited by uRock; July 27th, 2012 at 04:34 AM.

  7. #7
    Join Date
    Jun 2012
    Location
    Sweden
    Beans
    324
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to use shred command?

    Quote Originally Posted by Redblade20XX View Post
    Here is a good web page that describes what you want to do.
    http://www.ubuntugeek.com/tools-to-d...ntu-linux.html

    Instead of using shred, I would recommend the secure-delete tools.
    The same link describes the secure-delete tools.

    Code:
    sudo apt-get update
    Code:
    sudo apt-get install secure-delete
    -Red
    The link says "Even if you overwrite a file 10+ times, it can still be recovered". That's is not true. Once overwritten, always overwritten.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •