用户的环境变量设定文件,在每个用户的家目录里都会有下面四个文件.bash_logout --用户登出后执行的 可以在这里加上清除.bash_history --用户的历史命令存放的地方 用history命令可以查看,它不记录当前会话用过的命令,当你退出时,它才会记录你退出前所操作的命令.bash_p ...
分类:
其他好文 时间:
2017-08-10 19:28:16
阅读次数:
140
~/.bash_logout 注销时生效的配置文件,默认为空 例子一: 如果注销想清空历史文件 ...
分类:
其他好文 时间:
2017-07-09 20:49:57
阅读次数:
154
变量的分类: 1.系统变量 env 2.自定义变量 set> env 环境变量 系统环境变量 /etc/profile /etc/bashrc 个人环境变量 .bash_profile .bashrc .bash_history .bash_logout 位置变量 $$ Shell本身的PID(Pr ...
分类:
系统相关 时间:
2017-07-05 13:29:54
阅读次数:
226
文件名称 功能描写叙述 /etc/profile 登录时自己主动运行 ~/.bash_profile,~/.bash_login,~/.profile 登录时自己主动运行 ~/.bashrc shell登录时自己主动运行 ~/.bash_logout 退出时自己主动运行 ~/.bash_histor ...
分类:
其他好文 时间:
2017-06-15 20:29:39
阅读次数:
96
看到这个不用说就知道家目录的环境变量被删除了默认用户的环境变量存放在/etc/skel目录下[root@kaile/]#ls-la/etc/skel/总用量36drwxr-xr-x.4rootroot40963月1619:02.drwxr-xr-x.118rootroot122884月416:57..-rw-r--r--.1rootroot185月112016.bash_logout-rw-r--r--.1rootroot1..
分类:
其他好文 时间:
2017-04-12 10:12:09
阅读次数:
167
[root@hdd4~]#fdisk/dev/vdb
anaconda-ks.cfg.bash_profile.pki/
.bash_history.bashrc.tcshrc
.bash_logout.cshrc.viminfo
[root@hdd4~]#fdisk/dev/vdb#下面操作把硬盘所有容量设置为一个分区
Welcometofdisk(util-linux2.23.2).
Changeswillremaininmemoryonly,untilyoudeci..
分类:
系统相关 时间:
2017-01-16 23:24:11
阅读次数:
543
linux新建用户切换后显示-bash-4.1$新创建的用户切换的时候出现了:-bash-4.1$原因:网上找了一下说是缺少了一些配置文件具体的解决办法:cp-a/etc/skel/./var/zabbix;-a表示复制隐藏文件/var/zabbix是zabbix用户的家目录,具体可以查看/etc/passwd文件。其实拷贝.bash_logout.b..
分类:
系统相关 时间:
2016-09-19 16:17:57
阅读次数:
233
执行顺序为: /etc/profile -> (~/.bash_profile | ~/.bash_login | ~/.profile) -> ~/.bashrc -> /etc/bashrc -> ~/.bash_logout (1) /etc/profile: 此文件为系统的每个用户设置环境信 ...
分类:
系统相关 时间:
2016-08-28 11:06:18
阅读次数:
175
嵌入式 Linux下永久生效环境变量bashrc 1) .bashrc文件 在linux系统普通用户目录(cd /home/xxx)或root用户目录(cd /root)下,用指令ls -al可以看到4个隐藏文件, .bash_history 记录之前输入的命令 .bash_logout 当你退出时 ...
分类:
系统相关 时间:
2016-07-23 15:17:11
阅读次数:
318
在Linux系统中,如何找到用户创建的时间呢? 其实是没有标准方法查找用户创建时间。下面再搜索了一些资料后,自己验证并测试了一下这些方法,仅供参考: 1:如果创建的用户有家目录,那么可以ls -l /home//.bash_logout 来找到用户的创建时间。 [root@DB-Server ~]#... ...
分类:
系统相关 时间:
2016-06-21 12:32:11
阅读次数:
199