Documentation for Bash

I know I can do man bash

but

is there a place where I can obtain this information in a “pretty” format that I can print and use as a reference? Redirecting man output to the printer is not readily readable, at least for me.

Bart

Why don’t you redirect it to a file that you can format in a text editor? You can also find most man pages aon the Web.

I considered reformatting, but have you any idea how many days that would take me? :slight_smile:

I just know I would be nit picking with font sizes and spacing to get everything in exactly the “right” place and on the “right” page and with a document that size, I’d never get done.

So, I took another look and found Bash Reference Manual

Looks like opening it up on screen2 and going back and forth should work. It would certainly take a bunch of paper to print!

Now… How come one can never find the stuff they want without first asking and then it pops right up? I think my computer just wants to embarrass me. Or should this be a new thread? :wink:

Here are some others I have found online:

bash commands - Linux MAN Pages

BASH Programming - Introduction HOW-TO

The Deep, Dark Secrets of Bash LG #55

Bash Tips - The Lab Book Pages

Besides the above examples, here is a bash script I wrote you can use to convert the man bash pages into a 70 page pdf file:

man2pdf - Command Manual Page to PDF File Converter Script

Further, I have even more bash files you can look at here online:

S.L.A.V.E. - SuSE Logfile Automated Viewer Engine - Version 2.00

File Editor With Root or User Permissions Script File (fewrup)

N.S.F. - New Script File Header Creator

S.A.K.C - SuSE Automated Kernel Compiler

MMCHECK - Check Your Multimedia in 10 Steps - Script File, as proposed by RedDwarf

netinfo - Read Network & PC Information into a Local Text File

mountiso - Mount any ISO file, intended to make a CD or DVD, to any Folder

S.T.A.R.T. - SuSE Terminal Audio Reporting Tool

Looking for Grub and Windows bootloader in all partitions.

Reboot from CLI to selective partitions

New Kernel Speed up Patch File from Mike Galbraith?

A Script file exists in every thread here. Some I wrote, some I worked on and often you need to read to the end to find the most recent version. Happy reading…

Thank You,

i don’t know about your version of openSUSE, but on my version it
included a bash manual by default, here:

file:///usr/share/doc/packages/bash/bashref.html

far as i can tell it is pretty much ready to print…
but you have to kill a lot of trees…

this one is more extensive: http://tldp.org/LDP/Bash-Beginners-Guide/html/


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

You can get book quality output like this:

man -Tps bash > bash.ps
ps2pdf bash.ps bash.pdf

Another hint: Konqueror will show manuals in a nicely formatted way when typing ‘man:$command’ in the address bar.

gropiuskalle Another hint: Konqueror will show manuals in a nicely formatted way when typing ‘man:$command’ in the address bar.
That is kind of cool there gropiuskalle. I was kind of thrown by the $ dollar sign as it does not seem to be required. For the terminal command ‘man bash’ it would be **man:bash **in Konqueror. Anyone who does not have Konqueror as a filemanager can use the kde menu run command:

kfmclient openProfile filemanagement man:bash

Thank You,

No, it was not meant as an actual ‘$’. In unixoid shells, Perl, PHP, Ruby etc. ‘$’ is used as a prefix for a variable. I use it often, for example ‘$user’, ‘$application’, ‘$desktop_enviroment’ or whatever. It’s pretty common actually.

Anyway, nice to know I showed you something new. :slight_smile:

Holy cow! I hit the jackpot! Thanks to you all. I’ll be busy, and happy, for quite some time now.

Bart

You can put this into one single command by piping:

man -Tps bash | ps2pdf - bash.pdf

jdmcdaniel3 wrote:

> I was kind of thrown by the $ dollar sign as it does not seem to be
> required.

in the Konqueror location bar, try

#bash


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

jdmcdaniel3 wrote:

> I was kind of thrown by the $ dollar sign as it does not seem to be
> required.

in the Konqueror location bar, try

#bash
Wow DenverD, that works as well. I guess I just never look for such shortcuts once I find a way to do something. For instance in KDE, to get to the Run Command bar, I would just select it through the menu until some one here mentioned that Alt-F2 would also pop it up. I have been have been using that method ever since. To get the info on commands, I would not have thought to use Konqueror to do that let alone know to put the command in the address bar and stick a pound sign in front of it, who would have guessed?

Thank You,

jdmcdaniel3 wrote:
> who would have guessed?

i didn’t guess it, instead someone somewhere mentioned it to me…
it is a wonderful way, because of links make it easy to hop around…


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]