Linux commands: Difference between revisions

Jump to navigation Jump to search
1 byte removed ,  19 February 2013
Line 22: Line 22:


== file operation ==
== file operation ==
find a file
* find ({{Linux}}) ex: {{kbd | key= find / -name ''filename''}} Find the file which naming filename Under the path / (root folder) <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.
copy old directory to new directory  
copy old directory to new directory  
* {{kbd | key=cp -a ''old_dir new_dir/''}} ({{Linux}})
* {{kbd | key=cp -a ''old_dir new_dir/''}} ({{Linux}})
Line 55: Line 59:
* -h, --human-readable; with -l, print sizes in human readable format (e.g., 1K 234M 2G) Quoted from linux {{kbd | key=man ls}}</ref>  
* -h, --human-readable; with -l, print sizes in human readable format (e.g., 1K 234M 2G) Quoted from linux {{kbd | key=man ls}}</ref>  
* dir ({{Win}}) ex: {{kbd | key= dir/s/b}}
* dir ({{Win}}) ex: {{kbd | key= dir/s/b}}
find a file
* find ({{Linux}}) ex: {{kbd | key= find / -name ''filename''}} Find the file which naming filename Under the path / (root folder) <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.


show the current directory
show the current directory

Navigation menu