当前位置: 首页 > news >正文

如何做产品销售网站画册宣传册设计公司

如何做产品销售网站,画册宣传册设计公司,wordpress 当前分类名称,重庆百度百科linux命令之history 1.history介绍 linux命令history会记录并显示用户所执行过的所有命令,也可以对其命令进行修改和删除操作。 2.history用法 history [参数] history参数 参数说明-a将当前会话的历史信息追加到历史文件(.bash_history)中-c删除所有条目从而清…

linux命令之history

1.history介绍

linux命令history会记录并显示用户所执行过的所有命令,也可以对其命令进行修改和删除操作。

2.history用法

history [参数]

history参数
参数说明
-a将当前会话的历史信息追加到历史文件(.bash_history)中
-c删除所有条目从而清空历史列表
-d从指定位置删除历史列表
-r读取历史文件(.bash_history)到缓冲区
-s将指定的命令添加到缓冲区
-w将缓冲区信息写入到历史文件(.bash_history)

3.实例

3.1.将当前会话的历史信息追加到历史文件(.bash_history)中

命令:

history -a

[root@centos79-3 ~]# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=128 time=247 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=128 time=361 ms
^C
--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1014ms
rtt min/avg/max/mdev = 247.939/304.742/361.545/56.803 ms
[root@centos79-3 ~]# ping 2.2.2.2
PING 2.2.2.2 (2.2.2.2) 56(84) bytes of data.
^C
--- 2.2.2.2 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2007ms[root@centos79-3 ~]# history -a
[root@centos79-3 ~]# tail -f .bash_history 
#1695879396
cat .bash_history 
#1695879406
clear
#1695879409
ping 1.1.1.1
#1695879414
ping 2.2.2.2
#1695879420
history -a
[root@centos79-3 ~]# 

3.2.从指定位置删除历史列表

命令:

history -d 3

[root@centos79-3 ~]# history | grep 12891289  2023-09-28 13:54:07 root set +o history1313  2023-09-28 14:05:36 root history | grep 1289
[root@centos79-3 ~]# history -d 1289
[root@centos79-3 ~]# history | grep 12891289  2023-09-28 13:55:16 root history1312  2023-09-28 14:05:36 root history | grep 12891313  2023-09-28 14:05:46 root history -d 12891314  2023-09-28 14:05:50 root history | grep 1289
[root@centos79-3 ~]# 

3.3.删除所有条目从而清空历史列表

命令:

history -c

[root@centos79-3 ~]# history -c
[root@centos79-3 ~]# 

3.4.读取历史文件(.bash_history)到缓冲区

命令:

history -r

[root@centos79-3 ~]# history -r
[root@centos79-3 ~]# tail -n 4 .bash_history 
#1695879420
history -a
#1695879044
ifconfig
[root@centos79-3 ~]# 

3.5.将缓冲区信息写入到历史文件(.bash_history)

命令:

history -w

[root@centos79-3 ~]# history -w
[root@centos79-3 ~]# tail -n 4 .bash_history 
#1695880068
clear
#1695880071
history -w
[root@centos79-3 ~]# 

3.6.不记录已执行的历史命令

命令:

set +o history

[root@centos79-3 ~]# set +o history
[root@centos79-3 ~]# ping 111.111.111.111
PING 111.111.111.111 (111.111.111.111) 56(84) bytes of data.
^C
--- 111.111.111.111 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2021ms
[root@centos79-3 ~]# tail -n 1 .bash_history 
set +o history
[root@centos79-3 ~]# 

3.7.取消不记录已执行的历史命令

命令:

set -o history

[root@centos79-3 ~]# history | tail -n 61302  2023-09-28 13:55:10 root ping 16.16.16.161303  2023-09-28 13:55:16 root history1304  2023-09-28 13:55:28 root cat .bash_history 1305  2023-09-28 13:55:42 root history1306  2023-09-28 13:55:51 root history | tail -n 41307  2023-09-28 13:55:58 root history | tail -n 6
[root@centos79-3 ~]# 

另外:

再次执行历史记录命令的三种方式:

第一个方式是:!数字

第二个方式是: ctrl+r 快捷键从小往上搜索,右方向键确定

第三个方式是: !字符串

http://www.yayakq.cn/news/647/

相关文章:

  • 深圳网站创建公司云主机下载
  • 企业网站的一 二级栏目名称lnmp wordpress
  • 宁波网站建设那家好html原神网页制作教程
  • 泰安的网络建设公司宁波seo网站
  • 浙江公司网站建设制作开山云匠网
  • 小制作小发明手工图片seo百度百科
  • 最新聊天记录做图网站seo和竞价排名的区别
  • 多语种企业网站建设杭州seo网站哪家好
  • php网站开发需要学哪些网站改地址要钱吗
  • 腾云网站建设怎么样浪漫免费表白网站
  • 海口网站建设优化公司网上申请营业执照入口
  • 网站建设公司收费互联网公司估值达到一定基数后就不会再增长
  • 婚庆公司网站的设计与实现四川建设网电话
  • 备案期间网站关闭大良营销网站建设平台
  • 网站空间 按流量计费英文营销型网站建设
  • 如何申请自己的个人网站延安做网站的公司电话
  • 营销网站功能深圳市住房和建设局工程交易服务主页
  • 石泉政协网站建设方案江西网站做的好的企业文化
  • 有效的网站需要做到什么意思陕西工程造价信息网
  • 如何做充值网站如何禁止ip访问网站
  • cms网站后台管理系统莱芜在线论坛莱芜话题凤城高中
  • 织梦网站后台logo删除网站对接qq群 虚拟主机
  • 上海建设银行网站招聘南京 网站制作公司
  • asp.net不适合做网站WordPress商用收费吗
  • wordpress动漫网站模板工商局注册公司网站
  • 外贸网站推广有用吗安卓开发软件
  • 免费外贸网站模板下载网站建设外包还是自己做
  • 网站美工做专题尺寸多少?南昌营销型网站
  • php 网站建设 教学定制型网站设计
  • 深圳 福田 网站建设辽宁省建设培训中心网站