mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2024-12-26 09:58:40 +01:00
updated find one-liners
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
f9f420b20d
commit
1fde5d9ebf
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue