Ubuntu – How to edit tsql man pages

14.04manpage

I've done some Googling and searched on askubuntu and haven't found my answer yet. I'd like to make some minor edits to the tsql man pages on my system only, to clarify things. I've found the man page path with man -w tsql. How do I edit them?

Thank you.

  • Ubuntu 14.04.1 LTS

Best Answer

You can do this easily using vim or gedit.

As vim and gedit can edit the zipped files, you can do :

vim "$(man -w tsql)"
gedit "$(man -w tsql)"

$() is the shell command substitution pattern, which will be replaced by the output of man -w tsql. So if the output of man -w tsql is /usr/share/man/man1/tsql, the above commands are equivalent to :

vim /usr/share/man/man1/tsql
gedit /usr/share/man/man1/tsql
Related Question