1.1 10 已知/tmp下已经存在test.txt文件,如何执行命令才能把/mnt/test.txt拷贝到/tmp下覆盖掉/tmp/test.txt,而让系统不提示是否覆盖(root权限下)。#环境准备[root@oldboy ~]# touch /mnt/test.txt /tmp/test.txt[root@oldboy ~]# ls -l /mnt/test.txt /tmp/test.t
分类:
系统相关 时间:
2018-07-17 23:25:04
阅读次数:
254
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>mailto</title></head><body><script type="text/ ...
分类:
其他好文 时间:
2018-07-14 17:41:46
阅读次数:
163
区别: 1、两个文件都是设置环境变量文件的,/etc/profile是永久性的环境变量,是全局变量,/etc/profile.d/设置所有用户生效,同样是永久变量,是全局变量。 2、/etc/profile.d/比/etc/profile好维护,不想要什么变量直接删除/etc/profile.d/下 ...
分类:
系统相关 时间:
2018-06-29 01:07:03
阅读次数:
395
基础准备 命令防篡改与命令记录 很多黑客入侵到操作系统后,会做两个常见的操作unset history和替换命令文件(或者对应的链接库文件),针对这两点要做好记录shelllog并且检查链接库类文件和命令文件最近有没有改动。 RootkitHunter 症状研判 根据主机异常状态判断异常点 性能资源 ...
分类:
系统相关 时间:
2018-06-27 12:14:53
阅读次数:
214
Linux常见快捷键(6个) ctrl + u:剪贴光标前面ctrl + k:剪贴光标后面ctrl + y:粘贴ctrl + r:查找命令ctrl + insert:复制shift+ insert:粘贴 线上查询及帮助命令(2个) man 查看命令帮助,命令的词典,更复杂的还有info,但不常用。 ... ...
分类:
系统相关 时间:
2018-06-26 11:12:54
阅读次数:
262
基础练习 (1)课本习题11 7 include using namespace std; int main() { ios_base::fmtflags original_flags = cout.flags(); //保存格式化参数设置 cout include using namespace ...
分类:
其他好文 时间:
2018-06-21 01:46:42
阅读次数:
221
#include<iostream> using namespace std; int main() { ios_base::fmtflags original_flags=cout.flags(); //(猜测) 声明fmtflags 类型变量 original_flags,用此时的输出格式初始化 ...
分类:
其他好文 时间:
2018-06-21 01:29:33
阅读次数:
165
//11-7 #include using namespace std; int main(){ ios_base::fmtflags original_flags=cout.flags();//保存现有的格式化参数设置 cout #include using namespace std; int ... ...
分类:
其他好文 时间:
2018-06-21 00:10:48
阅读次数:
164