Linux commands: Difference between revisions

Jump to navigation Jump to search
341 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 with the ''naming rule''
delete the files which their file name were matched with the ''naming rule''
* {{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>
* {{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>


=== Download file from remote server ===
=== Download file from remote server ===

Navigation menu