OS: RHEL 6.x / CentOS 6.x
Często zdarza się, że nie pamiętamy czy są dostępne inne manuale dla danej komendy, niż standardowy man nazwa_komendy.System linux daje nam możliwość przeszukiwania dostępnych manuali. Możemy użyć polecenia apropos lub aliasu dla niego man -k.
[root@server1 ~]# man -k audit
audispd.conf [audispd] (5) - the audit event dispatcher configuration file
auditctl (8) - a utility to assist controlling the kernel's audit system
auditd (8) - The Linux Audit daemon
auditd.conf [auditd] (5) - audit daemon configuration file
audit.rules [audit] (7) - a set of rules loaded in the kernel audit system
augenrules (8) - a script that merges component audit rule files
aureport (8) - a tool that produces summary reports of audit daemon logs
ausearch (8) - a tool to query audit daemon logs
ausearch-expression (5) - audit search expression format
latrace (1) - LD_AUDIT 2.4+ libc frontend
libaudit.conf [libaudit] (5) - libaudit configuration file
pam_tty_audit (8) - Enable or disable TTY auditing for specified users
rtld-audit (7) - auditing API for the dynamic linker
audispd.conf [audispd] (5) - the audit event dispatcher configuration file
auditctl (8) - a utility to assist controlling the kernel's audit system
auditd (8) - The Linux Audit daemon
auditd.conf [auditd] (5) - audit daemon configuration file
audit.rules [audit] (7) - a set of rules loaded in the kernel audit system
augenrules (8) - a script that merges component audit rule files
aureport (8) - a tool that produces summary reports of audit daemon logs
ausearch (8) - a tool to query audit daemon logs
ausearch-expression (5) - audit search expression format
latrace (1) - LD_AUDIT 2.4+ libc frontend
libaudit.conf [libaudit] (5) - libaudit configuration file
pam_tty_audit (8) - Enable or disable TTY auditing for specified users
rtld-audit (7) - auditing API for the dynamic linker
Ogromną zaletą tego polecenia jest to, że pokazuje nam wszystkie powiązane z daną komendą, dostępne manuale.
Troubleshooting
Przy próbie wyświetlenia listy manuali otrzymujemy bład:
[root@server ~]# man -k audit
audit: nothing appropriate
[root@server ~]# apropos audit
audit: nothing appropriate
audit: nothing appropriate
[root@server ~]# apropos audit
audit: nothing appropriate
Oznacza to, że nie została utworzona baza dla apropos - naprawić to można poprzez:
[root@server ~]# makewhatis
Sytuacja taka może mieć miejsce zaraz po doinstalowaniu pakietu man. Jeśli jednak sytuacja występuje po kilku dniach/tygodniach od instalacji pakietu, oznaczać to może, że nie wykonuje się crontab odpowiedzialny za update bazy.
W takiej sytuacji należy zweryfikować w pliku /etc/man.conf, czy update nie został wyłączony (opcja MAKEWHATISDBUPDATES odkomentowana i ustawiona na 'n') lub czy nie zostały usunięte odpowiedzialne za update pliki w cronie (/etc/cron.daily/makewhatis.cron i /etc/cron.weekly/makewhatis.cron)
Brak komentarzy:
Prześlij komentarz