上一页 1 ··· 206 207 208 209 210 211 212 213 214 ··· 367 下一页
摘要: 1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt d j k j x m y e s g j i x v b d z c e t 2、统计行数和列数 [root@centos7 test4]# ls 阅读全文
posted @ 2022-04-14 14:52 小鲨鱼2018 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt e f j f f f d x s f f d g f f d e j k i c f w f d 2、替换第一个f为xxx [root@cento 阅读全文
posted @ 2022-04-14 14:38 小鲨鱼2018 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@centos7 test4]# ls test.txt [root@centos7 test4]# cat test.txt e f j d i x a d g c F w 2、grep 实现 [root@centos7 test4]# ls test.txt [root@ 阅读全文
posted @ 2022-04-14 14:24 小鲨鱼2018 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1、java编译报错 error: reached end of file while parsing 2、出现这种报错的原因是括号没有成对,检查源代码: 补全括号,保存退出: 3、再次编译、执行 [root@centos7 test5]# ls test.java [root@centos7 te 阅读全文
posted @ 2022-04-14 08:32 小鲨鱼2018 阅读(5329) 评论(0) 推荐(0) 编辑
摘要: 1、 [root@centos7 test5]# ls first.java [root@centos7 test5]# cat first.java ## 源文件 public class first{ ##类名为first public static void main(String[] arg 阅读全文
posted @ 2022-04-13 17:03 小鲨鱼2018 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1、占用内存最高的进程 [root@centos7 ne]# ps -aux | sort -k 4nr | head -n 3 2、占用cpu最高的进程 [root@centos7 ne]# ps -aux | sort -k 3nr | head -n 3 阅读全文
posted @ 2022-04-12 14:07 小鲨鱼2018 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 1、top或者uptime命令查看平均负载 [root@centos7 ne]# uptime ## 分别表示过去一分钟、过去五分钟、过去15分钟的平均负载 13:54:11 up 5:37, 2 users, load average: 0.00, 0.01, 0.05 2、平均负载与cpu的内核 阅读全文
posted @ 2022-04-12 14:00 小鲨鱼2018 阅读(128) 评论(0) 推荐(0) 编辑
摘要: linux中当目录具有SGID权限时, 任何用户在该目录中创见的文件将自动继承该目录的所属组。 测试。 1、普通用户家目录创建一个普通文件, 观察文件的所属组 [liujiaxin01@rhel7pc1 ~]$ ls [liujiaxin01@rhel7pc1 ~]$ whoami liujiaxi 阅读全文
posted @ 2022-04-10 18:07 小鲨鱼2018 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1、问题 2、解决方法,切换至root用户,修改/etc/sudoers配置文件 [root@rhel7pc1 ~]# vim /etc/sudoers ………… ## The COMMANDS section may have other options added to it. ## ## Al 阅读全文
posted @ 2022-04-10 17:33 小鲨鱼2018 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1、linux中文件或者目录的权限针对用户分为三类,即: 所有者,用u表示; 所属组,用g表示; 其他人,用o表示; 针对每一种用户,权限有可以分为三种,即: 读的权限,用r表示,也用数字4代替。 写的权限,用w表示,也用数字2代替。 执行的权限,用x表示,也用数字1代替。 2、举例 文件a.txt 阅读全文
posted @ 2022-04-10 16:45 小鲨鱼2018 阅读(2568) 评论(0) 推荐(0) 编辑
上一页 1 ··· 206 207 208 209 210 211 212 213 214 ··· 367 下一页