酷!學園

其他討論區 => 雜七雜八 => 主題作者是: linuxcoke 於 2015-06-23 09:58

主題: http://www.hklpg.org/~vfong/course/admin.operation.html
作者: linuxcoke2015-06-23 09:58
Basic Operation

User Home Directory
"~" path notation
"~" is an built in alias of current user's home directory.
You can use this in file path mentioning or program execution.

e.g.
cd ~/tmp
Will bring you to the directory:
/home/{current_user}/tmp/

While running the program:
~/bin/myprog
Will actually call the program:
/home/{current_user}/bin/myprog