Simplified man pages

Topics relating to MX Docs and MX Videos
Message
Author
User avatar
Jerry3904
Administrator
Posts: 23059
Joined: Wed Jul 19, 2006 6:13 am

Simplified man pages

#1 Post by Jerry3904 »

This is interesting and useful--makes me wonder if we could make use of them somehow:
The TDLR-pages project has compiled a collection of simplified manual pages which present commands with a clear explanation of what each command does and lists examples of how the command is most often used.
http://distrowatch.com/dwres.php?resource=man-pages
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Gordon Cooper
Posts: 965
Joined: Mon Nov 21, 2011 4:50 pm

Re: Simplified man pages

#2 Post by Gordon Cooper »

Been thinking about something similar for a couple of years - but never did anything about it. Did print off several pages of Bash commands in an endeavour to use the
CL more often but dunno where those pages are now. Will take a look at TDLR.
Backup: Dell9010, MX-19_B2, Win7, 120 SSD, WD 232GIB HD, 4GB RAM
Primary :Homebrew64 bit Intel duo core 2 GB RAM, 120 GB Kingston SSD, Seagate1TB.
MX-18.2 64bit. Also MX17, Kubuntu14.04 & Puppy 6.3.

User avatar
Richard
Posts: 1590
Joined: Fri Dec 12, 2008 9:31 am

Re: Simplified man pages

#3 Post by Richard »

This is a great idea!
It is actually the "TLDR-pages" project
at https://github.com/tldr-pages/tldr
Last edited by Richard on Tue Jan 31, 2017 4:49 pm, edited 2 times in total.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
__kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
__Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
HP Ryzen 5 17-cp3xxx with MX23.4 AHS & Liquorix 6.10-12~mx23ahs amd64

User avatar
Jerry3904
Administrator
Posts: 23059
Joined: Wed Jul 19, 2006 6:13 am

Re: Simplified man pages

#4 Post by Jerry3904 »

I think so too, and have asked the Dev Team to look into what we could do with that in MX Linux.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

!

#5 Post by skidoo »

announced in the Jan 31, 2017 distrowatch weekly newspage:
DistroWatch now hosts [TLDR] simplified manual pages...
We hope this will provide our readers with a quick and easy way to discover what a program does and how it is to be used.
Simplified Manual Pages http://distrowatch.com/dwres.php?resource=man-pages
A collection of simplified man(ual) pages

The standard set of manual pages (often called man pages) which are available in most flavours of Linux, BSD and Unix tend to be long and they can be cryptic. Manual pages tend to list what options are available without explaining why we might use them. Further, many manual pages do not provide examples.

The TDLR-pages project ( github.com/tldr-pages/tldr ) has compiled a collection of simplified manual pages which present commands with a clear explanation of what each command does and lists examples of how the command is most often used.

{{{ use the selectbox below to choose from a set of 500 or so command names, then click the "Go" button }}}
Writing clear documentation is hard work, so I appreciate their (TLDR and DW) effort
(emphasizing clarity here, having thrown in the towel regarding maintenance of comprehensive, up-to-date, documenation)
but a successful documentation effort requires achieving efficacious effective delivery, and ISTM they both (TLDR and DW) fail in this regard.

The DW lookup page, who will (want to) use that, forpetesake?
Should we pity the fool who wanders in via google search results, wades past sidebar ads and sitenav and whatnot to read the paltry 2 or 4 sentences?

Mommy, what's a "wacaw" ?
Will the seeker realize (no in-page explanation/disclaimer) the dropdown is populated with a mishmash of SunOS and macOS and linux commands?
Even if this "new DW feature" isn't an outright bullsh** search-engine-bait ploy... it seems more like a disservice, than service, to readers.
http://tldr-pages.github.io/

Try the live demo [ https://tldr.ostera.io/ ], have a look at the [ PDF version ], or follow the [ installation instructions ].
Using firefox 45esr here at the moment, and the "live demo" didn't do jack**** when I visited.
Installation? Hahaha... no. (and OMG all the framework crap involved... and they propose to curl http:/gitmeuptodate | sudo -h somescript.sh)
Aaaaargh! ...AND A SIDE ORDER OF FRIES!!!

on a brighter note:
Their pdf, at least it provides a collapsible hierarchy, separating the listed SUNOS and macOS commands from the leenooks commands.

========================
A link to http://commandlinefu.com within the MX helpdocs would be a useful addition
(user can see usage examples of various commands, can search for a given command name)
along with the caveats:
Be mindful when running 'code found online'
and
Never copy/paste web-snipped code directly into terminal !
ref: https://nakedsecurity.sophos.com/2016/0 ... web-pages/
ref: http://thejh.net/misc/website-terminal-copy-paste
ref: https://news.ycombinator.com/item?id=5508225
ref: https://www.reddit.com/r/netsec/comment ... inal_demo/

aus9
Posts: 128
Joined: Sat Jul 02, 2016 1:14 am

Re: Simplified man pages

#6 Post by aus9 »

FWIW man pages can be learnt.

http://unix.stackexchange.com/questions ... r-a-script

they are just a text file with special syntax or formatting rules.

eg

Code: Select all

man inxi
eg after unpacking the gunzipped man page we have
.B \-v 2
\- Adds networking card (\fB\-N\fR), Machine (\fB\-M\fR) data, Battery (\fB\-B\fR) (if available), and shows basic hard disk data
(names only). Same as: \fBinxi \-b\fR
.TP
which looks like this in man reader

Image

which is first make v 2 in bold

in the following text also make some other stuff bold eg N M B and "inxi -b"

2) you can then put your modified man page into /usr/share/man/man<number> and run it after repack

or if you have translators put it in /usr/share/man/locale/man<number>

##### I give the suggestions, you do the work ;)
Last edited by aus9 on Tue Jan 31, 2017 6:14 pm, edited 1 time in total.

User avatar
Stevo
Developer
Posts: 14429
Joined: Fri Dec 15, 2006 7:07 pm

Re: Simplified man pages

#7 Post by Stevo »

I've packaged the little C command line interface version which one of our GUI tools could either use the output or maybe yoink code from--it has the MIT license, which is basically "go nuts with it".

User avatar
Richard
Posts: 1590
Joined: Fri Dec 12, 2008 9:31 am

Re: Simplified man pages

#8 Post by Richard »

tldr
Definitely a benefit to see usage of options and params.

Kinda slow reading the list.
Are the data files incorportated? Maybe this would speed it up.
Or are they being downloaded?
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
__kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
__Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
HP Ryzen 5 17-cp3xxx with MX23.4 AHS & Liquorix 6.10-12~mx23ahs amd64

User avatar
Stevo
Developer
Posts: 14429
Joined: Fri Dec 15, 2006 7:07 pm

Re: Simplified man pages

#9 Post by Stevo »

Richard wrote:tldr
Definitely a benefit to see usage of options and params.

Kinda slow reading the list.
Are the data files incorportated? Maybe this would speed it up.
Or are they being downloaded?
Heh, heh...run

Code: Select all

tldr tldr
to see how to download the database to your machine--it's pretty small at the moment.

User avatar
cpoakes
Posts: 10
Joined: Wed Dec 14, 2016 8:36 pm

Re: Simplified man pages

#10 Post by cpoakes »

While examples are sorely needed to illustrate the simple use cases of difficult commands like find, awk, or grep, or commands overloaded with options like chown or chmod, I am disappointed with the implementation and conceptualization. Some of the simple pages are not significantly different than the actual man pages like which. Some provide too little information to be useful like bash, vim or zsh and probably never can. Others have the bare essentials, but much is missing.

If the actual man pages were modified to have an EXAMPLES section (missing in grep), include simple use cases (horribly advanced in awk examples), and/or cover a single command (unravel gzip/gunzip/zcat), the naive user would have everything in one place. As is, all but the newbies are going to encounter enough shortfalls to realize they need the man pages, tire of two sources, and skip the simple ones entirely.

Post Reply

Return to “Documentation and videos”