On 11/27/24 5:55 AM, to...@tuxteam.de wrote:
On Wed, Nov 27, 2024 at 05:38:30AM -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?

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.

So for both reasons, it's not "cd" what you are looking
at, but your shell.

You could do worse than having a look at the Bash Guide,
co-maintained by one of our regulars here. For your case,
the first chapter [1] seems relevant.

Cheers

[1] https://mywiki.wooledge.org/BashGuide/CommandsAndArguments


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.
Keep running into things I never knew or had long forgotten ;/
[Only been around Linux since Stretch]



Reply via email to