This Is Your Brain On Informatics: Linux: Difference between revisions
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
| file [options] [filename] || Determine what type of data is within a file. | | file [options] [filename] || Determine what type of data is within a file. | ||
|- | |- | ||
| find [pathname] [expression] || Search for files matching a provided pattern. | | find [pathname] [expression] || Search for files matching a provided pattern. (e.g. typing "find / -name foo will search for a file named "foo" in the entire system) | ||
|- | |- | ||
| grep [options] [pattern] [filesname] || Search files or output for a particular pattern. | | grep [options] [pattern] [filesname] || Search files or output for a particular pattern. | ||