How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

December 8, 2017

delete large directory containing thousands of files

Filed under: Linux — Tags: , , , , , — admin @ 11:22 am

Well if you try to remove a directory with multiple files rm will take a long time also some load on that server .

One solution is to rsync a empty directory .

mkdir empty_dir
rsync -a –delete empty_dir/ yourdirectory/

Also a perl can be made but the rsync is easy for me to remeber .

Some more information about this you can find here

https://serverfault.com/questions/183821/rm-on-a-directory-with-millions-of-files/328305#328305

 

September 25, 2015

Remove all files created before a certain date

Filed under: Linux — Tags: , , , , — admin @ 12:45 pm

What I want is to delete manually all e-mail that are before 01/01/2015

The command is
find /directory/path -type f ! -newermt 2015-01-01 -ls -exec rm -f {} \;

July 14, 2012

How do I remove my USER NAME from the auto-fill on chrome

Filed under: Scrambled — Tags: , , — admin @ 7:25 pm

Hello
Well, from time to time , is happening that you misspell your username or your e-mail and after this google chrome keep that wrong user on auto-fill. Sometime this can be annoying.
So, how to remove username from auto fill on google chrome ?
This is a easy task
Just go with mouse over it, or press down arrow and when you are on wrong user just press “Delete” keyword

Powered by WordPress