cancel
Showing results for 
Search instead for 
Did you mean: 
RBahra
Mission Specialist
Mission Specialist
  • 150 Views

man -k command doesn't work

Jump to solution

I am studying RH134 (Red Hat System Administration II) and I am upto chapter about Managing Temproray Files. In this topic @ricardodacosta shows an example "man -k systemd | grep 5", when he runs this command. It shows all systemd man pages (5), however when I run this command on my rhel9 it gives error "systemd: nothing appropriate". I am confused and I have spending so much time to figure it out whats wrong with my system. Do I need to do update or upgrade?

 

Any suggestions would be really appericate and help me to resolve this issue, I am just losing my mind on this

1 Solution

Accepted Solutions
ARoumiantsev
Flight Engineer
Flight Engineer
  • 140 Views

Hi @RBahra 

"man -k ..." is working according index database caches. mandb command is used to initialise or manually update it. Please, run mandb under superuser account before your example "man -k systemd | grep 5"  

Good luck

View solution in original post

2 Replies
ARoumiantsev
Flight Engineer
Flight Engineer
  • 141 Views

Hi @RBahra 

"man -k ..." is working according index database caches. mandb command is used to initialise or manually update it. Please, run mandb under superuser account before your example "man -k systemd | grep 5"  

Good luck

Chetan_Tiwary_
Community Manager
Community Manager
  • 62 Views

@RBahra yup sudo mandb is the trick!

Join the discussion
You must log in to join this conversation.