For example, you need to switch to the directory / root / project / oskit / examples / x86 frequently,
I’m tired of typing such a long directory or many CDs. I want to save this directory in the path file in the root directory,
Then a cat path | xargs CD
But why not? Wrong report!
Or do you have a simpler way?
Add a line at ~ /. Bashrc:
alias x86='cd /root/project/oskit/examples/x86'
source ~/.bashrcLater (not next time)
x86Just switch over.
Use Zsh, then use
hash -d Node='/home/Leedy/Development/web/Node'。
If you want to enter the node later, just
To add another point, switch between two directories,
cd -It is very convenient to switch between the two recent directories. In addition, do not use the default bash. Zsh is very powerful.