
Generate Random Manpages To Learn Linux DistroTube
video description
Date: 2022-03-30
Related videos
Comments and reviews: 10
Lag
Hey DT, thanks for this great, inspiring video. I came across -chem- - a groff preprocessor for producing chemical structure diagrams. Most ppl might not be very interested but as a high school teacher in chemistry and physics I will have a closer look. The syntax of the chemfig-latex-package is quite idiosyncratic (not to say annoying...), so perhaps there is a easier way to do it this minimalistic way. Again: great idea! Let me add an interesting way of handling keyboard answers to shell-scripts. In my book on shell-scripting by the German authors Kania and Wolf they present a great way to press a single key WITHOUT pressing return afterwards.
They put terminal in a raw mode first and then using dd!! Like this:
char = ' '
stty raw -echo
while [ -$char- !=-q- ]
do
char =$(dd bs =1 count =1 2>/dev/null)
done
stty -raw echo
Interesting way of 1.) setting tty to a raw mode and 2.) copying stdin to sdr(err)out with dd.
Nice weeekend everybody!
reply
Hey DT, thanks for this great, inspiring video. I came across -chem- - a groff preprocessor for producing chemical structure diagrams. Most ppl might not be very interested but as a high school teacher in chemistry and physics I will have a closer look. The syntax of the chemfig-latex-package is quite idiosyncratic (not to say annoying...), so perhaps there is a easier way to do it this minimalistic way. Again: great idea! Let me add an interesting way of handling keyboard answers to shell-scripts. In my book on shell-scripting by the German authors Kania and Wolf they present a great way to press a single key WITHOUT pressing return afterwards.
They put terminal in a raw mode first and then using dd!! Like this:
char = ' '
stty raw -echo
while [ -$char- !=-q- ]
do
char =$(dd bs =1 count =1 2>/dev/null)
done
stty -raw echo
Interesting way of 1.) setting tty to a raw mode and 2.) copying stdin to sdr(err)out with dd.
Nice weeekend everybody!
reply
Einstein
absolutely great video ... serves its purpose well but at the same time it is not a video which just tells you steps without explaining why those steps ... and in the process teaches smattering of scripting ... absolutely great ... if ever there is hall of fame for linux instructional videos this should be in that ... and already high quality comments are here which is a bonus ... thanks for video and comment writers
reply
absolutely great video ... serves its purpose well but at the same time it is not a video which just tells you steps without explaining why those steps ... and in the process teaches smattering of scripting ... absolutely great ... if ever there is hall of fame for linux instructional videos this should be in that ... and already high quality comments are here which is a bonus ... thanks for video and comment writers
reply
Sunny
Hey there I am a big fan. I was just wondering what is your tool of choice for making notes. I am finding writing notes more and more important in my day to day work. I have seen mention of inkdrop app and Joplin. Is there any you would recommend. I don't mind paying if it's a good service
reply
Hey there I am a big fan. I was just wondering what is your tool of choice for making notes. I am finding writing notes more and more important in my day to day work. I have seen mention of inkdrop app and Joplin. Is there any you would recommend. I don't mind paying if it's a good service
reply
kanethornwyrd
Thank you Derek, that was a very cool vid, I tried to solve the problems
along the way by pausing the vid and finding solutions by myself, that
was very educational :)
For the random:
man -k . - awk '-print $1-' - shuf -n 1
work too :)
reply
Thank you Derek, that was a very cool vid, I tried to solve the problems
along the way by pausing the vid and finding solutions by myself, that
was very educational :)
For the random:
man -k . - awk '-print $1-' - shuf -n 1
work too :)
reply
leo
Curious, im getting this with termite
(termite:263210): GLib-WARNING --: 11:05:53.078: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). See the documentation of g_child_watch_source_new() for possible causes
reply
Curious, im getting this with termite
(termite:263210): GLib-WARNING --: 11:05:53.078: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). See the documentation of g_child_watch_source_new() for possible causes
reply
Anzan
Thank you, Derek. Although I don't remember much about their details now I read man pages for the first two years or so that I began with Linux. And everytime I use a new program I at least scan the man page.
reply
Thank you, Derek. Although I don't remember much about their details now I read man pages for the first two years or so that I began with Linux. And everytime I use a new program I at least scan the man page.
reply
Susan
I have raspbian lite on a pi-zero-w and I wondered how to get X window capability for stuff like dmenu? I don't want to install the full desktop as that kind of defeats the object hereof learning Linux
reply
I have raspbian lite on a pi-zero-w and I wondered how to get X window capability for stuff like dmenu? I don't want to install the full desktop as that kind of defeats the object hereof learning Linux
reply
Gan
Just use bash command substitution together with sed's substitution with grouping: man $(find /usr/share/man/man1 -type f -shuf -n 1-sed 's+.-/\(.-\)\.1[-.]-\.gz$+\1+')
reply
Just use bash command substitution together with sed's substitution with grouping: man $(find /usr/share/man/man1 -type f -shuf -n 1-sed 's+.-/\(.-\)\.1[-.]-\.gz$+\1+')
reply
polyrtm
When you use sed with .gz, the . is a special character that means anything, which could mess up with stuff like libgzip (if that exists), which would become liip.
reply
When you use sed with .gz, the . is a special character that means anything, which could mess up with stuff like libgzip (if that exists), which would become liip.
reply
Corn
That's very nice. Yet again, I can't use it via putty (error -cannot open display-) . Cannot switch to full-on linux. But I could not live without a close Linux box.
reply
That's very nice. Yet again, I can't use it via putty (error -cannot open display-) . Cannot switch to full-on linux. But I could not live without a close Linux box.
reply
Add a review, comment
Other channel videos















