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

来源:9-4 历史命令

justgonnab

2015-08-05 08:56

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

http://img.mukewang.com/55c15f2a0001c83509440816.jpg



写回答 关注

10回答

  • TechArtisan
    2019-12-30 15:28:45

    或者使用命令   vim /etc/profile

    http://img1.mukewang.com/5e09a72700017e2e05190787.jpg

  • TechArtisan
    2019-12-30 15:24:44

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

    http://img.mukewang.com/5e09a6320001f1a105930715.jpg

  • 改名字df
    2018-05-25 11:06:14

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

  • 慕仙8977883
    2018-04-09 16:45:31

    用键盘上下键翻


  • qq_为妳战天下_0
    2017-09-03 09:59:27

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

  • 小兔巴尼有两个爸爸
    2017-08-19 18:59:48

    我也是找不到


  • 枫的轻吟
    2016-08-05 11:33:10

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

  • dire
    2015-12-01 00:34:40
    # /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 i in /etc/profile.d/*.sh; do
        if [ -r $i ]; then
          . $i
        fi
      done
      unset i
    fi


  • dire
    2015-12-01 00:33:57

    跟我一样 也没有 什么size

  • 浮沉随浪
    2015-08-19 13:11:36

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

Linux达人养成计划 I

Linux入门视频教程,以通俗易懂的语言带你感受linux之美

398689 学习 · 3791 问题

查看课程

相似问题