12 2015 档案
摘要:1、查看已识别硬盘[root@lab6-5 ~]# cat /proc/scsi/scsiAttached devices:Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: NECVMWar Model: VMware IDE CDR10 Rev: 1....
阅读全文
摘要:使用ssh的最佳实践1)only use ssh protocol 22)limit users SSh access Allowusers root vivek jerry 白名单 denyUser saroj anjali foo 黑名单3)configure Idle Log out tim...
阅读全文
摘要:文本处理类的命令:wc, word count wc [option] [file]... -l: 统计行数 -c: 统计字节数 -w;统计单词数 tr: 转换字符或删除字符 tr '集合1' '集合2' tr -d '字符集合' cut: This is a test line. ...
阅读全文
摘要:echo显示带颜色,需要使用参数-e格式如下:echo -e "\033[字背景颜色;文字颜色m字符串\033[0m"例如:echo -e "\033[41;37mTonyZhang \033[0m"其中41的位置代表底色, 37的位置是代表字的颜色注:1、字背景颜色和文字颜色之间是英文的“""”2...
阅读全文

浙公网安备 33010602011771号