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
bash : cd : too many arguments [closed]
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.)
This is what I was looking for –
Projectile
Can this be saved in variable or alias? E.g. NF="new\ folder"; cd $NF –
Amalia
© 2022 - 2024 — McMap. All rights reserved.
bash
knows it's one string:cd 'long file name'
orcd long\ file\ name
. The problem is not unique to Ubuntu. If you were in a Windows command shell you'd have the same issue. – Narton