Marlon's Blog

记录生活、技术中的二三事.


  • Home

  • Archives

  • Tags

  • Bio

linux 自定义变量以及方法

Published at: 2015-04-02   |   Reading: 191 words ~1min

在自己home目录里可以找到相对应的.bash*文件

  • .bashrc 这里可以添加一些自定义的sh命令,可以很方便的执行
  • .bash_history 这个文件主要负责记录用户所操作的命令 对于记录的量是可以设置的
  • .bash_profile 这个文件是系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.
  • .bash_logout 这个文件在用户退出是会被执行

在使用时,应该尽可能的把东西加在.bashrc里面而不是.bash_profile里面,这样可以减少错误的发生.

#bash#
  • Author: Marlon Fan
  • Link: https://www.marlon.life/2015/04/02/linux-%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8F%98%E9%87%8F%E4%BB%A5%E5%8F%8A%E6%96%B9%E6%B3%95/
  • License: All articles in this blog are licensed under CC BY-NC-ND 4.0 unless stating additionally.
virtualbox报R3相关错误
自己在支付业务上的一次失误.
Marlon Fan

Marlon Fan

宁静致远

48 Blogs
30 Tags
Homepage GitHub Twitter Zhihu
Friends
    过往云烟
© 2008 - 2024 Marlon Fan. All rights reserved. 晋ICP备20002733号-1
0%