Why I can't change directories using “cd”?

后端 未结 30 2286
眼角桃花
眼角桃花 2020-11-21 06:17

I\'m trying to write a small script to change the current directory to my project directory:

#!/bin/bash
cd /home/tree/projects/java

I save

30条回答
  •  终归单人心
    2020-11-21 06:27

    to navigate directories quicky, there's $CDPATH, cdargs, and ways to generate aliases automatically

    http://jackndempsey.blogspot.com/2008/07/cdargs.html

    http://muness.blogspot.com/2008/06/lazy-bash-cd-aliaes.html

    https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-5827311.html

提交回复
热议问题