Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pajko
on June 11, 2025
|
parent
|
context
|
favorite
| on:
What MS-DOS Can Do That Linux Can't
You might be able to create a shell alias named "cd.." or a short bash script "/usr/bin/cd.." with the appropriate content. Have no tried though.
jmholla
on June 11, 2025
[–]
A bash script won't work because it will run `cd ..` in a new process which won't affect the current shell. But, the following do work in bash:
alias cd..="cd .."
or this in your `.bashrc` or some file you source in your `.bashrc`:
cd..() { cd .. }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: