14,957
edits
m (→find a file) |
|||
| Line 46: | Line 46: | ||
== file operation == | == file operation == | ||
=== find a file === | === find a file === | ||
* {{Gd}} locate ({{Linux}}) ex: {{kbd | key= locate ''filename''}} to locate the filename quickly. <ref>[https://blog.longwin.com.tw/2008/01/linux_quick_find_file_locate_2008/ Linux 快速尋找檔案 - locate - Tsung's Blog]</ref> | * {{Gd}} {{kbd | key=locate}} command ({{Linux}}) ex: {{kbd | key= locate ''filename''}} to locate the filename quickly. <ref>[https://blog.longwin.com.tw/2008/01/linux_quick_find_file_locate_2008/ Linux 快速尋找檔案 - locate - Tsung's Blog]</ref> | ||
* find ({{Linux}}) ex: {{kbd | key= find / -iname ''filename''}} Find the '''case-insensitive''' file name Under the path / (root folder) <ref> [http://unix.stackexchange.com/questions/32155/find-command-how-to-ignore-case Find command: how to ignore case? - Unix and Linux]; Find the '''case-sensitive''' file name Under the path / (root folder) ex: {{kbd | key= find / -name ''filename''}} ref:[http://www.codecoffee.com/tipsforlinux/articles/21.html Tips For Linux - How to find files in Linux using 'find']</ref> | * {{kbd | key=find}} command ({{Linux}}) ex: {{kbd | key= sudo find / -iname ''filename''}} Find the '''case-insensitive''' file name Under the path / (root folder) <ref> [http://unix.stackexchange.com/questions/32155/find-command-how-to-ignore-case Find command: how to ignore case? - Unix and Linux]; Find the '''case-sensitive''' file name Under the path / (root folder) ex: {{kbd | key= find / -name ''filename''}} ref:[http://www.codecoffee.com/tipsforlinux/articles/21.html Tips For Linux - How to find files in Linux using 'find']</ref> | ||
* dir ({{Win}}) ex: {{kbd | key= dir /s ''filename''}} <ref>[http://www.computerhope.com/issues/ch000309.htm How to find a file in MS-DOS.]</ref><ref>/S 顯示指定目錄及所有子目錄中的檔案。 (引用自 dir /? 命令說明)</ref> {{exclaim}} I have no idea to specify the file path to find the file. | * {{kbd | key=dir}} command ({{Win}}) ex: {{kbd | key= dir /s ''filename''}} <ref>[http://www.computerhope.com/issues/ch000309.htm How to find a file in MS-DOS.]</ref><ref>/S 顯示指定目錄及所有子目錄中的檔案。 (引用自 dir /? 命令說明)</ref> {{exclaim}} I have no idea to specify the file path to find the file. | ||
=== copy & overwrite file === | === copy & overwrite file === | ||