Score:0

error: -bash: cd: too many arguments

af flag

I'm getting an error with the following command:

ali@DESKTOP-L9T54OA:~$ cd /mnt/c/Users/c system/Documents/rak 
error: -bash: cd: too many arguments
NotTheDr01ds avatar
vn flag
Also, I just randomly happened to look at this question when it popped up. I typically look at questions tagged [tag:windows-subsystem-for-linux]. Yours isn't tagged this way, but it appears to me that you are likely using WSL on Windows. If that's the case (and I could be wrong), along with @Nmath's great advice on improving your question, please make sure to include all relevant details (and correct tags). If it's WSL, make sure you say so (and tag it), along with the Windows version, Ubuntu version (it's almost certainly not [tag:xubuntu]), etc. Thanks!
guiverc avatar
cn flag
The space character is a *delimiter* so you've provided multiple arguments where only one is required; ie. user error. It's likely you intend the space as part of an argument, which means you need to *escape* it or place it in *quotes* so the space is treated as an argument character.
Score:3
id flag
cd /mnt/c/Users/c system/Documents/rak

You have a space between c and system so cd is failing because it is expecting one argument and not two. There are a couple of ways to handle spaces when changing directories.

  1. Quotes

    cd "/mnt/c/Users/c system/Documents/rak"

  2. Escaping the space

    cd /mnt/c/Users/c\ system/Documents/rak

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.