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 -- t
Attachment:
signature.asc
Description: PGP signature