首页  

linux history 命令     所属分类 linux 浏览量 894
history 查询之前执行过的指令

history
   32  date
   33  pwd
   34  who
   35  pwd
   36  clear
   37  history
   38  date
   39  pwd
   40  pwd
   41  history


最常用的 10 条 shell 命令
history | awk '{print $2}' | sort | uniq -c | sort -nr |head -n 10

date
!!  执行最后一条命令

!7  执行编号为7的命令

HISTSIZE  history命令条目数
echo $HISTSIZE

export HISTSIZE=5000

echo "export $HISTSIZE=1000" >> /etc/profile
source /etc/profile

cat ~/.bash_history

清理历史命令

history -c

上一篇     下一篇
Elasticsearch mapping中的字段属性总结

BI工具需求要点

proguard使用

代码分支和版本管理小技巧

韭菜的自我修养读书笔记

elasticsearch分片分配机制简介