为了账号安全,请及时绑定邮箱和手机立即绑定

我的vi /etc/profile为什么没有HISTSIZE=xxx啊???求解

我的vi /etc/profile为什么没有HISTSIZE=xxx啊???求解

http://img1.sycdn.imooc.com//55c15f2a0001c83509440816.jpg



正在回答

代码语言

10 回答

或者使用命令   vim /etc/profile

http://img1.sycdn.imooc.com//5e09a72700017e2e05190787.jpg

0 回复 有任何疑惑可以回复我~

使用命令    vim +/HISTSIZE /etc/profile    有效

http://img1.sycdn.imooc.com//5e09a6320001f1a105930715.jpg

0 回复 有任何疑惑可以回复我~

确实没有  到头了 我的也是这样  别再说下翻了  能下翻还用在这问吗?

2 回复 有任何疑惑可以回复我~

用键盘上下键翻


1 回复 有任何疑惑可以回复我~

可以试试命令 vim +/HISTSIZE /etc/profile ,意思是直接定位到HISTSIZE

1 回复 有任何疑惑可以回复我~

我也是找不到


0 回复 有任何疑惑可以回复我~

试下这个嘛  grep -i histsize /etc/profile

0 回复 有任何疑惑可以回复我~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH
if "$PS1" ]; then
  if "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      /etc/bash.bashrc
    fi
  else
    if "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
if [ -d /etc/profile.d ]; then
  for in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi


0 回复 有任何疑惑可以回复我~

跟我一样 也没有 什么size

0 回复 有任何疑惑可以回复我~

你往下翻啊,下面还有内容。

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

我的vi /etc/profile为什么没有HISTSIZE=xxx啊???求解

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号