I've used terminal commands for so many decades I don't know where to look
up fine details of a specific commands.
I just tried to use the cd command with a target directory having spaces in it's name. Of course the system responded
> bash: cd: too many arguments
DuckDuckGo led to [ https://bash.cyberciti.biz/guide/Cd_command#Dealing_with_directories_with_white_space_in_their_names
].
Problem solved. But is there somewhere to go directly without a web search?
Thank you. I've seen his site before. I just created a bookmark folder for "Debian Wikis". The first occupant is https://mywiki.wooledge.org .
I've been a computer *user* for six of my eight decades.
My only formal background was a one semester intro to programming course as
a freshman E.E. student.
And, just for the record, should you want to find out more about
commands on Linux without leaving your system (i.e. without any
interaction with the Internet at all), the man command is available to present the manual pages (dates back to when there was an actual manual
in early unix days) for individual commands, e.g.
man bash
which will describe in quite some detail how to use the shell and
man -k somekeyword
will allow to search man pages.
bash itself also has a help system: type "help" :-)
On Wed, Nov 27, 2024 at 07:30:17AM -0600, Richard Owlett wrote:
[...]
Thank you. I've seen his site before. I just created a bookmark folder for >> "Debian Wikis". The first occupant is https://mywiki.wooledge.org .
Greg's wiki is a jewel. I thank *him* for it.
I've been a computer *user* for six of my eight decades.
My only formal background was a one semester intro to programming course as >> a freshman E.E. student.
[...]
Now what programming language was this?
Cheers
First: cd is not a command, it is a shell builtin
(this is subtle, but important).
Second: even if cd were a "command", the splitting
of args at whitespace (among *a lot* of other things)
is done by the shell before the command has even a
chance at it.
On Wed, Nov 27, 2024 at 07:30:17AM -0600, Richard Owlett wrote:
[...]
Thank you. I've seen his site before. I just created a bookmark
folder for "Debian Wikis". The first occupant
is https://mywiki.wooledge.org .
Greg's wiki is a jewel. I thank *him* for it.
I've been a computer *user* for six of my eight decades.
My only formal background was a one semester intro to programming
course as a freshman E.E. student.
[...]
Now what programming language was this?
[...] the man command is available to
present the manual pages
And, just for the record, should you want to find out more about
commands on Linux without leaving your system (i.e. without any
interaction with the Internet at all), the man command is available to present the manual pages (dates back to when there was an actual manual
in early unix days) for individual commands, e.g.
man bash
which will describe in quite some detail how to use the shell and
I've used terminal commands for so many decades I don't know where to
look up fine details of a specific commands.
I just tried to use the cd command with a target directory having
spaces in it's name. Of course the system responded
> bash: cd: too many arguments
DuckDuckGo led to [ https://bash.cyberciti.biz/guide/Cd_command#Dealing_with_directories_with_white_space_in_their_names
].
Problem solved. But is there somewhere to go directly without a web search?
On Wed 27 Nov 2024 at 05:38:30 (-0600), Richard Owlett wrote:
I've used terminal commands for so many decades I don't know where to
look up fine details of a specific commands.
I just tried to use the cd command with a target directory having
spaces in it's name. Of course the system responded
> bash: cd: too many arguments
DuckDuckGo led to [ https://bash.cyberciti.biz/guide/Cd_command#Dealing_with_directories_with_white_space_in_their_names
].
Problem solved. But is there somewhere to go directly without a web search?
Well, it strikes me that, with the exception of Greg's, all these
posts are about man, info, help, etc., which you probably know
about already, whereas what your error above shows is that you
need some passing knowledge of the contents of man bash.
If you find that rather dry and indigestible, you might try running:
$ wget http://folk.ntnu.no/geirha/bashguide.pdf
which gives you a guide that's designed more for reading than
as a reference document.
BTW I find large man pages a little more navigable by running, eg:
$ man -t bash | ps2pdf - /tmp/bash.pdf
though that might not be suitable for the OP.
Cheers,
David.
On 11/28/24 8:52 AM, Max Nikulin wrote:
On 28/11/2024 11:13, David Wright wrote:
$ man -t bash | ps2pdf - /tmp/bash.pdf
What is the point in converting man when the same content is available
as texinfo source? Moreover, PDF file is ready to use:
/usr/share/doc/bash-doc/bash.html??????????????????!
/usr/share/doc/bash-doc/bash.pdf
/usr/share/doc/bash-doc/bashref.html
/usr/share/doc/bash-doc/bashref.pdf
/usr/share/doc/bash-doc/ does *NOT* exist on my Debian 12.7 machine
All defaults were accepted during install.
On 28/11/2024 11:13, David Wright wrote:??????????????????!
$ man -t bash | ps2pdf - /tmp/bash.pdf
What is the point in converting man when the same content is available
as texinfo source? Moreover, PDF file is ready to use:
/usr/share/doc/bash-doc/bash.html
/usr/share/doc/bash-doc/bash.pdf
/usr/share/doc/bash-doc/bashref.html
/usr/share/doc/bash-doc/bashref.pdf
Latest released version is available from <https://www.gnu.org/software/bash/manual/>
On 28/11/2024 11:13, David Wright wrote:
$ man -t bash | ps2pdf - /tmp/bash.pdf
What is the point in converting man when the same content is available
as texinfo source? Moreover, PDF file is ready to use:
/usr/share/doc/bash-doc/bash.html
/usr/share/doc/bash-doc/bash.pdf
/usr/share/doc/bash-doc/bashref.html
/usr/share/doc/bash-doc/bashref.pdf
Latest released version is available from <https://www.gnu.org/software/bash/manual/>
On 30/11/2024 01:29, David Wright wrote:
On Thu 28 Nov 2024 at 21:52:05 (+0700), Max Nikulin wrote:
On 28/11/2024 11:13, David Wright wrote:
$ man -t bash | ps2pdf - /tmp/bash.pdf
/usr/share/doc/bash-doc/bash.pdf
/usr/share/doc/bash-doc/bashref.pdf
¹ With Letter size in xpdf, I press 3 for 200%, which
gives me exactly two PageDowns per page. Annoyingly,
A4 needs an extra PageDown to move to the next page.
You may bind another key to zoom adjusted for A4.
Actually I would
prefer bashref.pdf that has hyperlinks and table of contents
(bookmark), moreover I would prefer .info file to read it in tkinfo or
emacs. PDF file generated through PostScript from man does not allow
to use named anchors for adding links to notes. Page numbers may
change in next release of if the file is rendered for another paper
size.
From most, shells, e.g. bash, dash, most or all POSIX shells, you can type: type name_of_commandAnd it'll generally tell you what/where that command comes from, or if
I've used terminal commands for so many decades I don't know where to
look up fine details of a specific commands.
I just tried to use the cd command with a target directory having spaces
in it's name. Of course the system responded
> bash: cd: too many arguments
Problem solved. But is there somewhere to go directly without a web search?
Funnily enough, I'd never even thought about page numbering in
connection with man pages. But I notice now that the page contents
of my Letter PDF and Debian's A4 version are identical, and the
footers on the A4 are very high, so I'm guessing that the document
was originally set for Letter paper, with well-balanced margins,
and the A4 version just had more white space added at the bottom.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 168:08:47 |
| Calls: | 12,096 |
| Calls today: | 4 |
| Files: | 15,003 |
| Messages: | 6,517,822 |