Linux commands: Difference between revisions

Jump to navigation Jump to search
38 bytes added ,  1 December 2017
m
Line 103: Line 103:
* S/FTP to the server and delete selected files
* S/FTP to the server and delete selected files


delete the files which their file name were matched with the ''naming rule''
Delete the files which their file name were matched with the ''naming rule'' when the number of files is too many.
* {{kbd | key= <nowiki>find . -name 'naming_rule' -delete</nowiki>}}  or {{kbd | key= <nowiki>find . -name 'naming_rule' -type f -delete</nowiki>}} <ref>[http://danilo.ariadoss.com/how-to-recursively-remove-ds_store-files-on-mac-os-x/ How to recursively remove .DS_Store files on Mac OS X | Tangential Musings]</ref><ref>[http://xyz.cinc.biz/2015/12/linux-rm-argument-list-too-long.html XYZ的筆記本: Linux 使用 rm 刪除檔案,出現 /bin/rm: Argument list too long]</ref><ref>[http://www.hypexr.org/linux_find_help.php Linux find command]</ref>
* {{kbd | key= <nowiki>find . -name 'naming_rule' -delete</nowiki>}}  or {{kbd | key= <nowiki>find . -name 'naming_rule' -type f -delete</nowiki>}} <ref>[http://danilo.ariadoss.com/how-to-recursively-remove-ds_store-files-on-mac-os-x/ How to recursively remove .DS_Store files on Mac OS X | Tangential Musings]</ref><ref>[http://xyz.cinc.biz/2015/12/linux-rm-argument-list-too-long.html XYZ的筆記本: Linux 使用 rm 刪除檔案,出現 /bin/rm: Argument list too long]</ref><ref>[http://www.hypexr.org/linux_find_help.php Linux find command]</ref>


Navigation menu