期盼死亡的小丑 发表于 2018-8-30 07:35:18

Linux学习笔记--Shell基本操作

$ 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.
  
...
  
$ 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.
  
...
  
$ cd /etc/profile.d/    # vim的SHELL文件位置
  
$ ll
  
total 52
  
-rw-r--r--. 1 root root 1127 Mar5 20:17 colorls.csh
  
-rw-r--r--. 1 root root 1143 Mar5 20:17 colorls.sh
  
-rw-r--r--. 1 root root   92 Nov 222013 cvs.csh
  
-rw-r--r--. 1 root root   78 Nov 222013 cvs.sh
  
-rw-r--r--. 1 root root192 Feb 24 22:24 glib2.csh
  
-rw-r--r--. 1 root root192 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 root122 Feb72007 less.csh
  
-rw-r--r--. 1 root root108 Feb72007 less.sh
  
-rw-r--r--. 1 root root   97 Apr52012 vim.csh
  
-rw-r--r--. 1 root root269 Apr52012 vim.sh
  
-rw-r--r--. 1 root root169 May 202009 which2.sh


页: [1]
查看完整版本: Linux学习笔记--Shell基本操作