|
[stephen@CentOS04 ~]$ cat /etc/bashrc # bashrc文件提供标准SHELL书写规范
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
...
[stephen@CentOS04 ~]$ cat /etc/profile # profile文件提供许多方法供阅读
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
...
[stephen@CentOS04 ~]$ cd /etc/profile.d/ # vim的SHELL文件位置
[stephen@CentOS04 profile.d]$ ll
total 52
-rw-r--r--. 1 root root 1127 Mar 5 20:17 colorls.csh
-rw-r--r--. 1 root root 1143 Mar 5 20:17 colorls.sh
-rw-r--r--. 1 root root 92 Nov 22 2013 cvs.csh
-rw-r--r--. 1 root root 78 Nov 22 2013 cvs.sh
-rw-r--r--. 1 root root 192 Feb 24 22:24 glib2.csh
-rw-r--r--. 1 root root 192 Feb 24 22:24 glib2.sh
-rw-r--r--. 1 root root 1741 Feb 20 18:44 lang.csh
-rw-r--r--. 1 root root 2706 Feb 20 18:44 lang.sh
-rw-r--r--. 1 root root 122 Feb 7 2007 less.csh
-rw-r--r--. 1 root root 108 Feb 7 2007 less.sh
-rw-r--r--. 1 root root 97 Apr 5 2012 vim.csh
-rw-r--r--. 1 root root 269 Apr 5 2012 vim.sh
-rw-r--r--. 1 root root 169 May 20 2009 which2.sh
|
|
|
|
|
|
|