Skip to main content

Posts

Showing posts with the label delete

Ubuntu: Recursively delete multiple files with specific format

Sometimes we have to delete files of specific format (common extensions, ends with ~, etc) which were spanned over a group of directories. To do so, we follow certain methods. Lets do it by an example. In my case, I've o create the temporary files, i.e., the ones ending with ~. Method 1 : Delete them manually Method 2 : Goto each such directory and run the following command rm *~ Method 3 : rm *~ rm */*~ rm */*/*~ rm */*/*/*~ First two methods need more time and to use third method, we must know the depth of recursion. Following method will solve our problem. Method Friendly : Run the following command from the parent directory from which you are deleting the files. find . -name '*~' -type f -delete This will delete all files ending with ~, from the current directory and also all its sub-directories.

Change Keyring password

If you change your login password you might find that you get prompted for your "default keyring" password, this can be annoying, and sadly it isn't obvious how to change this to be the same as your new login password (or another password if you are being ultra secure!). Go to Passwords and Keys Click on the  Passwords  tab Right click over  Passwords: login Select  Change Password If you change your password to the same as your login password you won't get prompted for your default keyring password when you log in. Or else you can delete it