tech:notes_find
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_find [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_find [2026/05/28 11:30] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | # Notes commande GNU find | ||
| + | |||
| + | Voir : | ||
| + | * [[find-prune]] | ||
| + | * [[draft-oops-j-ai-fait-un-boulette]] | ||
| + | * [[purge_keep_only_last_recent]] | ||
| + | |||
| + | Voir aussi | ||
| + | * https:// | ||
| + | * fd (fdfind) | ||
| + | |||
| + | Find perm. Chmod, permission : | ||
| + | http:// | ||
| + | |||
| + | ~~~bash | ||
| + | find . -type f -exec bash -c 'echo $1 "/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Sortir au premier fichier trouvé | ||
| + | |||
| + | Sortir au 1er résultat | ||
| + | Exit on first matched file | ||
| + | |||
| + | ~~~bash | ||
| + | find / -perm -2000 | head -n 1 | ||
| + | find / -perm -2000 -print -quit | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Liens symboliques cible | ||
| + | |||
| + | Trouver tous les liens symboliques pointant sur **systemctl** | ||
| + | |||
| + | ~~~bash | ||
| + | find /usr/sbin/ -type l -exec ls -ald {} \; | grep ' | ||
| + | ~~~ | ||
