if i need to go to my directory named as"exception handling" then i write (cd exception handling) but it gives error too many arguments
Solve bash: cd: too many arguments Error in Bash If no argument is given, the cd command behaves as if the directory named in the HOME environment variable was specified as the argument. If the directory you want to go to consists of more than one word and contains spaces, you should not give it an argument directly.
If you're seeing the "too many arguments" error, chances are you're getting a string from a function with unpredictable output.
The cd (“change directory”) command is used to change the current working directory in Linux and other Unix-like operating systems.
NUM} ) in the 2^32 range, so there is a hard limit somewhere (might vary on your machine), but Bash is so slow once you get above 2^20 arguments, that you will hit a performance limit well before you hit a hard limit.
Use quotes:
cd "new folder"
or escape the space:
cd new\ folder
(That being said, cd
does not open a file but changes the working directory.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With