r/Redox • u/Fair_Temperature_420 • 5h ago
Making a quick manpage
Do man command_name and it error no " /ref/command_name no such file or directory(os error 2) ". Login become su and create /ref. Take each command and command_name --help >> /ref/command_name. Now I have a basic quick help page. This can be automated with a script but haven't figure this out yet. Some commands output help to std error. The fix is to command_name --help &>> /ref/command_name. This isn't a traditional manpage format. New man pages I think should be html and use less version that translates basic html. This is a start and now don't have to command_name --help | less
- Become root
- mkdir /ref
- command_name --help >> /ref/command_name || command_name --help &>> /ref/command_name