Editing
Linux commands
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Find a file by filename === * {{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> * {{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> * {{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.
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information