摘要: **硬链接** ```bash [root@daben ~]# cat a.txt #原文件为a.txt hello [root@daben ~]# ln a.txt hard.txt #创建一个硬链接hard.txt [root@daben ~]# ll -ih a.txt hard.txt #查 阅读全文
posted @ 2022-03-29 15:49 浅笑人伤 阅读(74) 评论(0) 推荐(0)
摘要: **widows文本格式和Linux文本格式的区别** ```bash [root@centos8 data]#cat linux.txt #linux文本文件 a b c [root@centos8 data]#cat win.txt #windows文本文件 a b c #file命令可看到文件 阅读全文
posted @ 2022-03-28 14:23 浅笑人伤 阅读(1162) 评论(0) 推荐(0)
摘要: 使用{}的扩展功能打印数字或字符序列 [root@daben ~]# echo {000..20..2} #步长为2 000 002 004 006 008 010 012 014 016 018 020 [root@daben ~]# echo {a..z..2} #步长为2 a c e g i 阅读全文
posted @ 2022-03-28 10:44 浅笑人伤 阅读(49) 评论(0) 推荐(0)
摘要: ```bash [root@VM-24-17-centos ~]# whoami #查看当前终端的用户身份 root [root@VM-24-17-centos ~]# su test [test@VM-24-17-centos root]$ whoami #切换用户后再次查询 test ``` ` 阅读全文
posted @ 2022-03-28 10:04 浅笑人伤 阅读(130) 评论(0) 推荐(0)
摘要: 一、扫描新添加的硬盘(不需重启机器即可识别新增硬盘) ```bash [root@centos8 ~]#alias scandisk=' echo - - - > /sys/class/scsi_host/host0/scan; echo - - - > /sys/class/scsi_host/h 阅读全文
posted @ 2022-03-27 23:53 浅笑人伤 阅读(238) 评论(0) 推荐(0)
摘要: 一、确定当前系统是32位还是64位 ```bash [root@centos8 ~]# getconf LONG_BIT 64 [root@rhel5 ~]# getconf LONG_BIT 32 ``` 二、确定当前系统架构 ```bash [root@rhel5 ~]# arch i686 # 阅读全文
posted @ 2022-03-27 22:33 浅笑人伤 阅读(67) 评论(0) 推荐(0)