Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I would like to seek advice on how to go about creating man pages and then reference them. (..) However, it seems that the sample file is not found.
- add the location to your MANPATH (man manpath) or
- (if it's in a temporary location) just specify /path/to/manpage.1
Anyone knows as to how to retrieve created man pages through the man command? Currently, I have a formatted man page, but I do not know what to do in order to execute it.
I did man -M /path/to/mandir command
however the above command fails to work. Any advice please? Thanks!
Am afraid this might not be what I am looking for.
The situation is as such, I have a command "edit", "print", and I would like to document these two commands. Therefore I would like to make it such when I type "man edit", it looks for the edit command which I have documented, and man print will look for this command as well.
I have created a file called "man.1" where it contains both these commands (not sure if this is possible, or must it be 1 command 1 file). Therefore, what would be a correct approach to this problem? Sorry about it, as I am still rather new to linux. Thanks!
OK. If you do "man -M ~ sample" your "sample.1" manpage should be in ~/man/man1, so make a minimal structure:
seq 0 9|xargs -iN mkdir -p man/manN
and move your page. If you don't want to keep supplying your path, either make a shell alias or copy /etc/man.config to your home and append the line
where the rest of the MANPATH lines are. Notice you need to insert a tab at <TAB>, at least I did, else it wouldnt work.
I have created a file called "man.1" where it contains both these commands
The name isnt good. If the edit and print commands are linked to a custom application it's best to make it inherit the name of the app "myapp.1" and symlink to edit.1 and print.1.