Browse Source

updated find one-liners

- signed-off-by: trimstray <trimstray@gmail.com>
pull/1/merge
trimstray 4 years ago
parent
commit
1fde5d9ebf
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      README.md

+ 6
- 0
README.md View File

@@ -658,6 +658,12 @@ find . -depth -type d -empty -exec rmdir {} \;
find </path/to/dir> -xdev -samefile filename
```

###### Recursively find the latest modified files

```bash
find . -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head
```

___

##### Tool: [top](https://en.wikipedia.org/wiki/Top_(software))


Loading…
Cancel
Save