【初始化-profile】init_profile.sh

简介:

【初始化-系统时间】init_profile.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# 2014/10/20
 
#profile,增加到最后
cat  <<_PROFILE >> /etc/profile
alias  ls = 'ls --color=tty'
alias  ll= 'ls -l --color=tty'
alias  l.= 'ls -d .* --color=tty'
alias  vi = 'vim'
alias  rm = 'rm -i'
alias  cp = 'cp -i'
alias  mv = 'mv -i'
alias  grep = 'grep --color'
alias  pgrep= 'pgrep -l'
alias  fgrep = 'fgrep --color'
alias  which = 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
 
export  HISTTIMEFORMAT= "%F %T "
export  HISTFILESIZE=50000
export  HISTSIZE=50000
 
_PROFILE




本文转自 pcnk 51CTO博客,原文链接:http://blog.51cto.com/nosmoking/1594636,如需转载请自行联系原作者
相关文章
|
2月前
|
Shell Linux
sudo bash -c 'cat > /etc/profile.d/env.sh'
sudo bash -c 'cat > /etc/profile.d/env.sh' << EOF 是一个Linux命令行命令,用于创建一个名为 /etc/profile.d/env.sh 的文件,并将以下内容写入该文件:
42 4
|
Shell 数据安全/隐私保护
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2
53 0
|
Shell Linux Go
Linux profile1,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part1
Linux profile1,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part1
70 0
|
Shell
MAC修改.bashrc/.bash_profile无效,默认的用户配置文件是.zshrc,
MAC修改.bashrc/.bash_profile无效,默认的用户配置文件是.zshrc,
206 0
|
Java Shell Linux
解决shell脚本中"source /etc/profile"重载配置文件不生效的问题
1、shell脚本中“source /etc/profile”无法生效的原因及解决办法;2、shell中"."、"source"、"sh"、"./"的区别;
解决shell脚本中"source /etc/profile"重载配置文件不生效的问题
|
SQL Perl
profile
SQL> declare 2 v_hints sys.sqlprof_attr; 3 begin 4 v_hints:=sys.sqlprof_attr('full(test)'); 5 dbms_sqltune.
1197 0
|
Shell Linux
/etc/profile和~/.bash_profile的区别与联系
/etc/profile 为系统的每个用户设置环境信息和启动程序,当用户第一次登录时,该文件被执行,其配置对所有登录的用户都有效。当被修改时,必须重启才会生效。
3321 0
|
Shell Unix