Siódme_21

 0    21 kartičky    michalesq
Vytisknout hrát zkontrolovat se
 
otázka - odpověď -
How to display where doc files about program is
začněte se učit
rpm -qd <packagename>
How to look in directory /etc/ file with name motd
začněte se učit
find /etc -name motd
How to look in directory /etc/ files owned by root
začněte se učit
find /etc -user root
How to look in entire system files owned by user
začněte se učit
find / -user user
How to look in entire system files modified in last 3 days?
začněte se učit
find / -mtime -3
How to display data about the file?
začněte se učit
stat <nazwa pliku>
How to look in entire system files modified older than in last 3 days?
začněte se učit
find / -mtime +3
How to display id of user mary?
začněte se učit
id mary
Look in the entire system files and directories owned by a user with id 1002
začněte se učit
find / -uid 1002
How to look in entire system files owned by Jeff and open them
začněte se učit
find / -user jeff -type f -exec cat {}\;
How to look in entire system files owned by Jeff and copy them to /home/mary
začněte se učit
find / -user jeff -type f -exec cp {} /home/mary \;
How to reboot the system with systemctl command?
začněte se učit
systemctl reboot
How to reboot the system with shutdown command?
začněte se učit
shutdown -r
How to poweroff the system with shutdown command?
začněte se učit
shutdown -p
How to reboot the system in 5 minutes and inform users about it?
začněte se učit
shutdown +5 shutdown messages goes here
How to cancel rebooting the system with shutdown command?
začněte se učit
shutdown -c
How to schedule a reboot at certain hour with shutdown command?
začněte se učit
shutdown -r 00:00
How to reboot the system NOW with shutdown command?
začněte se učit
shutdown -r now
How to stop the ststem with systemctl command?
začněte se učit
systemctl halt
How to schedule halt of the system with shutdown command?
začněte se učit
shutdown -H 00:00
Where targets are located in the system
začněte se učit
/usr/lib/systemd

Chcete-li přidat komentář, musíte se přihlásit.