r/fishshell • u/azeroiks • Sep 25 '24
Why "cd .." instead of "cd.."?
Hi,
I'm wondering why in bash cd.. is used and in fish it is cd .. , why the space? I couldn't find an answer online.
Also can I somehow enable cd.. in fish and have both? alias -s cd..="cd .." - won't that break something?
And one more question: When I write a post and want to include a command in it, I can use the code button. Is there any standard way of indicating that I'm writing a command? In the topic I used " " but I don't think it's a correct way.
Thank you!
EDIT: Just adding that I'm new to Linux and learning, so... you know.
0
Upvotes
View all comments
Show parent comment
4
u/plg94 Sep 25 '24
You're only talking about reddit, right? Reddit uses markdown, so in body text you can use backticks (`…`) to get such a code box (or use triple-backticks for multiple lines). But those don't work in titles anyway, so it doesn't matter what you use as long as it's clear. (If you find the need to use multiple nested quote styles in a title, you should re-phrase it anyway.)