Skip to content

Eternal Center

  • System (系统)
  • Services (服务)
  • Databases (数据库)
  • Clusters (集群)
  • Big Data (大数据)
  • Cloud Computing (云计算)
  • Languages (语言)
  • Project (项目)
  • Writings (写作)
  • Eternity (永恒)
  • News (消息)
  • Chronicle (编年史)
  • Words (言)
Posted on May 30, 2020February 3, 2022 by Mingyu Zhu

[命令] Linux 命令 history (历史命令显示和使用)

内容一:显示 Linux 历史命令
1.1 显示 Linux 近期的历史命令

# histroy

(注意:默认情况下 history 只会记录 1000 条历史命令)

1.2 显示 Linux 已归档的历史命令

# cat ~/.bash_history

内容二:使用 Linux 历史命令
2.1 直接使用第 23 条历史命令

# !23

2.2 直接使用最近的一条以 h 开头的历史命令

# !h
CategoriesChinese (中文), System (系统), System General Log (系统普通日志), System Log (系统日志), System Login Security (系统登录安全), System Network & System Security & System Log (系统网络 & 系统安全 & 系统日志), System Operation (系统操作), System Operation & System Setting & System Software (系统操作 & 系统设置 & 系统软件), System Security (系统安全)

Post navigation

Previous PostPrevious [命令] Linux 命令 kill (进程杀死)
Next PostNext [内容] Linux 命令行终端使用技巧

Aspiration (愿景):

Everyone can achieve self achievement and self happiness fairly

每个人都能公平地实现自我成就和自我幸福

Position (位置):

Running on Evolution Host and DigitalOcean

正在 Evolution Host 和 DigitalOcean 上运行

Logo (徽标):

Additional Information (其他信息):

About Manual Clone Contact Disclaimer Donation Friendly Links 关于 说明书 克隆 联系 免责申明 捐赠 友情链接

Standby IP Address (备用 IP 地址):

152.69.204.95  150.230.63.10  Please configure before use / 请先配置再使用

Search Outside Website (站外搜索):

Google Wikipedia Bing
Proudly powered by LNMP Proudly powered by WordPress