Analisi struttura directory

[root@localhost ~]# tree -dugp /etc/systemd/ /etc/systemd/ ├── [drwxr-xr-x root     root    ]  system │   ├── [drwxr-xr-x root     root    ]  basic.target.wants │   ├── [drwxr-xr-x root     root    ]  default.target.wants │   ├── [drwxr-xr-x root     root    ]  dev-virtio\\x2dports-org.qemu.guest_agent.0.device.wants │   ├── [drwxr-xr-x root     root    ]  getty.target.wants …
Continua a leggere Analisi struttura directory

Trovare file con nome differente da pattern

Per trovare tutti i file in una data directory con nome differente da un certo pattern usare il seguente comando: find . -not -name *.txt L’esempio cercherà nella directory corrente, ed in tutte le sottodirectory, tutti i file che non terminano con *.txt