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

怎样下载别人网站自己做的视频免费网络营销推广软件

怎样下载别人网站自己做的视频,免费网络营销推广软件,榆林网站建设电话,装修公司简介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.tj-hxxt.cn/news/118412.html

相关文章:

  • 合肥做网站费用黄冈便宜的网站推广怎么做
  • 路北网站制作微博seo排名优化
  • 咋建网站嘉兴网站建设
  • 怎么做体育直播网站如何搜索网页关键词
  • 网站建设管理 自查 报告品牌推广策略包括哪些内容
  • 学校网站设计流程互联网推广运营是干什么的
  • 织梦手机网站教程摘抄一篇新闻
  • 内网网站建设的必要性合肥seo优化
  • 做磁力解析网站长春seo按天计费
  • 建站出海百度招聘官网
  • 广州市萝岗区做网站设计服务百度seo推广免费
  • 百度微建站搜索引擎优化的内容
  • 网站导航栏下拉框怎么做网站建设开发公司
  • 请被人做网站广州品牌营销策划公司排名
  • 怎么让网站页面自适应深圳网站优化公司
  • 手机哪个浏览器不受网站限制百度风云榜官网
  • 怎么用jsp做网站山西网站seo
  • 长沙商业网站建设搜索引擎seo是什么意思
  • 做网站的具体需求深圳龙华区大浪社区
  • 成都网站制作系统友情链接交换平台免费
  • b2b网站想申请支付宝借口广告接单平台有哪些
  • 没有域名做网站优化关键词排名提升
  • 网站 建设 步骤企业文化ppt
  • php网站源码安装教程苏州网站关键字优化
  • 南阳做网站多少电话怎么推广一个产品
  • 自己怎么做视频收费网站seo优化教程下载
  • 网站被黑怎么办合肥百度seo排名
  • 自己做的博客网站线下引流的八种推广方式
  • 擼擼擼做最好的导航网站沈阳网站关键词优化多少钱
  • 如何做网站的推广技能培训网站