Browse Source

find commands

master
Anthony Fadly 1 year ago
parent
commit
ba7740937f
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      oct1.md

+ 8
- 2
oct1.md View File

@@ -12,8 +12,14 @@
```
$ bash -f
$ bash -c <command>
$ find <location> -type d
-name <regular expression>
$ which <command>
$ locate
```

```
$ find <location> -type d # find a directory
$ find <location> -name <regular expression> # find by name
$ find / -name lab3.txt # find file named "lab3.txt" in /
```

You can search with [regular expressions](https://en.wikipedia.org/wiki/Regular_expression)

Loading…
Cancel
Save