Search in HRJ Tricks

Related Posts Plugin for WordPress, Blogger...

Tuesday, May 29, 2012

How To Permanently Delete A Single File From Mac Using Terminal [Tip]

A very basic thing to do, but still not commonly known, is how to delete a single file permanently from your Mac. Moving a file to Trash means it’s still there and can be restored any time, not to mention eating up precious space. The slight problem with Trash is that if you want to remove a particular file from it, i.e., permanently delete it, you have to remove all of them. In the event you have just a single file to remove (wipe permanently off the face of your hard drive and the earth itself), you go to the Terminal and execute the simplest of commands.

Open Terminal, type “rm”  (no quotes, but there should be a space after it). Drag & drop the file you want to remove onto the Terminal window, and its path will be added at the end of the command, then hit Return. Your file will be removed beyond recovery.
permanently remove file
This tip works for any and all files types and sizes, and is literally irreversible. Be extra cautious when using the command, and better if you use it only sparingly. To delete files of low priority, use Trash, which gives you some allowance for recovering a file if it was removed by accident.
For folders, use the command “rm –rf” followed by the path to the folder. Enter the command without quotes. Your folder and every single file in it will be removed permanently. This command is really the same one for deleting files, but modified slightly to tell Terminal that you want to remove a folder. It will have the same permanent effect mentioned when deleting a file, so proceed with caution.


  1. igгe za ѕіrеne igrе za dora igrе bагbi sisаnje mario igrіce nove yu νіdeo filmovi hгvatskа moгe aрartmani nеkretnіnе
    ѕtanovi male igrice besрlatne vіs аpartmani
    igrе super marјo igrice zuma 123 ninca igrе аpагtmаni baska voda
    apaгtmani pгіzbа baѕkа igrice zа ԁev filmoνi dοwnload tοrгent
    ѕanta сlаus igгіcе mаkarѕka гivijеra apartmani ρosao negovаtelјice tom jеrі
    іgrice ρoslοvi srbiϳa igriсе
    onine smjeѕtaj bіograd igrice zuma bеsplа igrice igгiсe vockісe роljo оglaѕnik сeli filmοvі іgriсe
    spajdrmen strаteѕκе igre pc іnfo
    posаo motorske igrice winxѕ igгiсe igrе ѕtrateѕke
    my page - oglasi apartmani

  2. Its such as you learn my mind! You appear to know so much about this,
    such as you wrote the ebook in it or something.
    I believe that you could do with some percent to pressure
    the message house a bit, however instead of that, that is
    wonderful blog. A fantastic read. I will certainly be back.

    my website ... email psychic readings
    Feel free to visit my webpage real psychic readings free

  3. Naturally, interest levels can decrease as well as up, which can be very
    good news for individuals with ARM s, and can save funds on potential refinancing
    to chase better rates meijer october 2013 printable
    or maybe confused in the closing table whenever your closing agent explained what sort of amortization table works.

  4. Excellent site you have here but I was wondering if you knew
    of any user discussion forums that cover the same topics talked about
    here? I'd really love to be a part of community where I can get
    responses from other knowledgeable people that share the same interest.
    If you have any recommendations, please let me know.


    Also visit my site - acoperisuri pentru case preturi

  5. Which is that you need to perform regular reality checks.
    A dream journal is probably one of the best ways of starting to lucid dream.
    In the 1950s, Johann Goethe University in Frankfurt began researching methods of producing lucid dreams.

    My blog - lucid dreaming

  6. If MRSA infection involves deeper
    tissues or is severe enough for hospitalization, antibiotics like Vancomycin are given intravenously.

    They themselves didn't know the answer to my questions.
    What was once a hospital, nursing home and immune deficient infection has become a relentless foe that
    is entering into our schools, day cares and work place.

  7. That is a very good tip particularly to those new to the blogosphere.
    Brief but very precise information… Appreciate your sharing this
    one. A must read post!

    Also visit my web-site ceas fossil

  8. I think this is one of the most important information for me.
    And i am satisfied reading your article. However want to statement on few
    general issues, The site taste is perfect, the articles is in point of fact nice : D.

    Excellent task, cheers

    Kauppaan: Dampfen von E-Zigaretten in Kneipen erlaubt (

  9. I really love your website.. Very nice colors & theme.
    Did you create this website yourself? Please reply back as I'm hoping to create my very own site and would love to find out where you got this
    from or exactly what the theme is called. Many thanks!

    my web page; burberry scarves

  10. Hi would you mind letting me know which hosting company you're using?

    I've loaded your blog in 3 different internnet browsers and I must
    say this blog loads a lot faser then most. Can you suggest a good web hosting povider at a honerst price?
    Thank you, I appreciate it!

    Check out myy homepage: silk hermes scarf - -