Knowledgebase
emscom > emscom Help Desk > Knowledgebase

Search help:


Linux Find and remove files from system

Solution

find <path_to_search> -name "filespec" -exec rm -rf {} \;
e.g
remove all files and folders names temp from home folder
find ~/ -name "temp" -exec rm -rf {} \;

remove only files prefixed ._
find / -type f -name "._*" -exec rm -f {} \;

 
Was this article helpful? yes / no
Related articles Linux change permissions conditionally
XRDP
VMNet realtime packet capture
Backup and Restore
Recreate WinRE Partition
Article details
Article ID: 4
Category: Linux
Date added: 16-12-2010 04:55:25
Views: 197
Rating (Votes): Article rated 3.0/5.0 (12)

 
« Go back

 
Powered by Help Desk Software HESK, in partnership with SysAid Technologies