I use vim a lot, and my area has power failure a lot. So the resultant is I get many *.swp files scattered over my PC.
I want an alias of rm command that removes all files with either .swp, ~, .netrwhist, .log or .bak extensions system wide (or atleast in my home directory). The command should delete the files system wide/home directory even when I am on ~/Desktop.
How can I implement so?
Hello,
Quick question if someone could answer please.
Was wondering after I deleted a user I forgot to use the -r command to delete the home directory of the user. I am using Fedora 9 as an Apache server.
Is there a way to delete the home directory through command line based? and what the command is. Thanks.
how do i remove sub directories of a directory and all files which are older than 7 days by a single command in AIX. pls help me.
I am using command as
#find /gpfs1/home/vinod/hpc/ -depth -type d -mtime +7 -exec rm -rf {} \;
so i want to delete all sub directories and all files from the hpc dir. which are older than 7 days.
Hio, So I have a crontab delete of older files setup. This script works fine if I run them by each individual directory.
Problem is there are so many thousands of files and hundreds of directories and sub directories that I need to recursively have it go through and delete files by directory instead of doing the "\*\*\" method.
Windows Disk Cleanup offers a Temporary Files handler which seems to delete some files from C:\Users\USERNAME\AppData\Local\Temp, but not all. People around the place have indicated that it won't delete anything newer than one week, and I notice there are no old .tmp files hanging around afterwards.
If I set the current/working directory (navigating to it using cd) to some particular directory and then type:
rm *.xvg
What will this command do?
Hello,
How can I delete all files called 001.txt in the working directory and its sub directories from the command line?
I am in /home/tom/test/ I have 40 directories and I want to remove all the files called 001.txt in all 40 directories
thanks
What options do exists for the .hidden file. I wanted to hide certain filetypes in a folder, but simply putting *.out (which I assumed would hide all files ending in .out) didn't work :(
I'm using Nautilus.
UPDATE: I guess if this option doesn't exist a bash shell could be created that when executed in a directory finds all files with matching endings and writes them to the .hidden file.
This question is kind of a phase II to the first question I posted at here
I have a directory that contains a bunch of sub-directories, .zip files, and other random files not contained within a sub-directory.
I'd like a command line script to remove all sub-directories from within the parent directory, but keep all zip files and loose files that don't belong to any sub-directories.