Unix Shell Environment: Variables, Commands, and Constructs
1. PS1 Prompt
The PS1 prompt has its own language with special sequences. These sequences can display the command count, current directory, time of day, and more. To learn about these sequences, you can read the “Prompting” section of the Bash or Sh man page.
2. HOME Variable
- Definition and Function : Your home directory is the directory you are placed in when you log on to the system. A special shell variable called
HOMEis automatically set to this directory upon login.- Example:
$ echo $HOME
/users/steve
- Usage : This variable
超级会员免费看
订阅专栏 解锁全文
1万+

被折叠的 条评论
为什么被折叠?



