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

Reset root password

1 Riavviare la macchina 2 Al prompt per la scelta del kernel premere “e” per edit 3 Modificare la riga che inizia per “linux16” aggiungendo a fine riga “rd.break enforcing=0” 4 Premere “ctrl-x” per avviare in single user mode 5 mount -o remount,rw /sysroot 6 cp /bin/bash /sysroot/tmp 7 chroot /sysroot /tmp/bash 8 passwd root …
Continua a leggere Reset root password

YUM elencare versioni disponibili

Per elencare tutte le versioni disponibili di un pacchetto usare il comando: yum –showduplicates list available <pacchetto> $ yum –showduplicates list available perl Pacchetti installatiperl.x86_64 4:5.16.3-292.el7 @basePacchetti disponibiliperl.x86_64 4:5.16.3-297.el7 baseperl.x86_64 4:5.16.3-299.el7_9 updates