Ajout exemple find
This commit is contained in:
parent
8a4e52555f
commit
3d89d65636
|
@ -157,12 +157,18 @@ $ find DIR/ -type f -mtime +30 -exec rm '{}' \;
|
|||
$ diff <fichier> <(ssh REMOTE cat <fichier>)
|
||||
~~~
|
||||
|
||||
### Changer le propriétaire des fichiers selon le user
|
||||
|
||||
~~~{.bash}
|
||||
$ find /path/ -user www-user -exec chown user: '{}' \;
|
||||
~~~
|
||||
|
||||
### Lister fichiers
|
||||
|
||||
Connaître la taille totale des derniers fichiers copiés :
|
||||
|
||||
~~~{.bash}
|
||||
$ find . -type f -mtime -1 -printf "'%p' " | xargs du -ch
|
||||
$ find /path/ -type f -mtime -1 -printf "'%p' " | xargs du -ch
|
||||
~~~
|
||||
|
||||
## Droits
|
||||
|
|
Loading…
Reference in a new issue