Start the terminal with Ctrl + Alt + t
.
Enter the following command. (manl can be anything)
$ mkdir man
$ cd man
$ mkdir manl
$ cd manl
Then write the contents of man with a text editor. There is a format like the markdown of qiita.
How to make your own command
I created my own command --qiita
Write a man for your own command.
Contents of self-made command:
lock.sh
#!/bin/sh
#chmod=Change access rights
#a-rwx=Remove read / write / execute permissions for everyone
#$1=Get arguments(argument=a-File name to rwx)
chmod a-rwx $1
lock.l
.\"This line is a comment.
.TH lOCK
.SH name
.\"Write a name and a one-word explanation.
lock \-Delete file read / write access rights
.SH format
.B lock
[file name]
.SH description
.\"Write a description.
lock is a text file or image file,Remove access privileges such as.
.\"Write the author and copyright.
.SH author
Author ichiri sato.
.SH copyright
(c) 2020 ichiri sato.
Use the -M
argument to display your own man.
$ man -M ~/man lock.l
Display result
lOCK() lOCK()
name
lock -Delete file read / write access rights
Format
lock [file name]
Description
lock is a text file or image file,Remove access privileges such as.
author
Author ichiri sato.
Copyright
(c) 2020 ichiri sato.
lOCK()
~
~
~
~
~
(abridgement)
-To create your own man page- @ IT
Recommended Posts