linux常用命令(十三)

2025-04-09 03:37:49

1、chown利用 chown 将指定文件的拥有者改为指定的用户或组将文件 1.txt 的拥有者设为 root,组的使用者 admin :[root@gongsi-A shell]# chown root.admin 1.txt

linux常用命令(十三)

2、将a目录下的所有文件与子目录的拥有者皆设为 root,组的使用者 admin[root@gongsi-A shell]# chown root.admin a -R

linux常用命令(十三)

3、ping命令向网络主机发送ICMP回传请求[root@gongsi-A shell]# ping 192.168.20.1

linux常用命令(十三)

4、参数-c2 表示ping 2次-i 1 间隔时间1秒-w 1 超时时间职邗珩垃[root@gongsi-A shell]# ping -c 2 -w 2 -i 2 192.168.20.1PI绿覆冗猩NG 192.168.20.1 (192.168.20.1) 56(84) bytes of data.64 bytes from 192.168.20.1: icmp_seq=1 ttl=64 time=0.450 ms

linux常用命令(十三)

5、uniqLinux uniq 命令用于检查及删除文本文件中重复出现的行列,一般与 sort 命令结合使用。原有文件[root@gongsi-A shell]# cat 1.txtnihao 1nihao 1nihao 1a 1a 1a 1

linux常用命令(十三)

6、参数 -c (count) -d(仅显示重复的行) -u(仅显示没有重翱务校肢复的行)[root@gongsi-A shell]# uniq -c 1.txt 3 nihao 1 3 a 1[root@gongsi-A shell]# uniq -d 1.txtnihao 1a 1

linux常用命令(十三)
linux常用命令(十三)
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:62
  • 阅读量:93
  • 阅读量:39
  • 阅读量:22
  • 阅读量:90
  • 猜你喜欢