




man --regexman --regex pdfman man

Oscar799 wrote:Bash Programming - Introduction
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Bash guide for beginners
http://tldp.org/LDP/Bash-Beginners-Guide/html/
Bash commands A-Z index
http://ss64.com/bash/
GNU bash manual
http://www.gnu.org/software/bash/manual/
BASH
BASH reference manual
http://www.gnu.org/software/bash/manual/bashref.html
Advanced Bash scripting Guide
http://tldp.org/LDP/abs/html/




rich_roast wrote:I think doxygen can do the conversion but it's not a trivial download (subject to dependencies) so you might be better off just downloading pdf's




#!/bin/bash
man $(ls /bin | shuf | head -1)


whatis $(ls /bin | shuf | head -1)ls /bin | xargs whatis

Vincent Vermeulen wrote:Cool! I've replaced the man with whatis, so I can find some interesting commands. Adding it to terminal .bashrc.
- Code: Select all
whatis $(ls /bin | shuf | head -1)
I didn't know about shuf yet...
To get a long list;
- Code: Select all
ls /bin | xargs whatis
revwhatis (ls /bin |rev|cut -b 2-|rev| shuf | head -1)


whatis -s 1 -w \*

Vincent Vermeulen wrote:I was about to write you should include the /usr/bin commands, but found out you can easily ask whatis for all the commands it knows:
- Code: Select all
whatis -s 1 -w \*
This did however return 1,672 commands on my systemI need some more Linux training
wc -l


viking777 wrote:Vincent Vermeulen wrote:I was about to write you should include the /usr/bin commands, but found out you can easily ask whatis for all the commands it knows:
- Code: Select all
whatis -s 1 -w \*
This did however return 1,672 commands on my systemI need some more Linux training
I beat you I got 1731! (That is annoying actually I have only memorised 1700 of them)
How did you get the line count from the terminal output btw? The only way I could think of is to redirect the output to a file and then use
- Code: Select all
wc -l
whatis -s 1 -w \* | wc -l









Users browsing this forum: No registered users and 1 guest