上一页 1 ··· 370 371 372 373 374 375 376 377 378 ··· 385 下一页
摘要: 1、使用usermod -L 选项限制用户登录 [root@linuxprobe home]# usermod -L linuxprobe ##禁止用户linuxprobe登录 [root@linuxprobe home]# passwd -S linuxprobe ## 查看状态,锁定状态 lin 阅读全文
posted @ 2020-10-19 22:52 小鲨鱼2018 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: 1、linux系统中usermod命令用于修改已创建用户的信息 用法:usermod [选项] username [root@linuxprobe home]# tail -n 3 /etc/group tcpdump:x:72: linuxprobe:x:1000: apache:x:48: [r 阅读全文
posted @ 2020-10-19 22:14 小鲨鱼2018 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: 1、linux中groupadd命令用于创建新的用户组 直接测试,创建用户组: [root@linuxprobe home]# tail -n 3 /etc/group ## 查看用户组信息后三行 tcpdump:x:72: linuxprobe:x:1000: apache:x:48: [root 阅读全文
posted @ 2020-10-19 21:21 小鲨鱼2018 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1、linux系统中useradd命令用于创建新的用户 使用方法 useradd name [root@linuxprobe home]# ls linuxprobe software [root@linuxprobe home]# pwd ##路径 /home [root@linuxprobe h 阅读全文
posted @ 2020-10-19 18:16 小鲨鱼2018 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 1、crontab命令用于创建系统能够周期性、有规律地执行某些具体的任务 直接测试:crontab -e 进行创建、编辑任务 [root@linuxprobe test]# ls ## 查看测试文件 a.txt [root@linuxprobe test]# ll -h total 6.6M -rw 阅读全文
posted @ 2020-10-19 17:15 小鲨鱼2018 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1、一次性计划任务服务顾名思义只执行一次,直接测试 [root@linuxprobe test]# date ## 查看系统当前日期 Mon Oct 19 12:45:10 CST 2020 [root@linuxprobe test]# at 12:48 ## 使用格式, at + 时间,表示在1 阅读全文
posted @ 2020-10-19 13:31 小鲨鱼2018 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 1、case命令选择执行 [root@linuxprobe test]# ls test.sh [root@linuxprobe test]# cat test.sh ## 查看脚本 #!/bin/bash echo "This is a test!" echo "you can choose 0- 阅读全文
posted @ 2020-10-19 12:35 小鲨鱼2018 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: 1、 [root@linuxprobe test]# ls ## 测试数据 a.txt [root@linuxprobe test]# cat a.txt fd gfd fgd fsdafds dfs sff [root@linuxprobe test]# cat -A a.txt ^I^Ifd g 阅读全文
posted @ 2020-10-19 12:13 小鲨鱼2018 阅读(868) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 [root@linuxprobe test]# ls ## 测试数据 a.txt [root@linuxprobe test]# cat a.txt fd gfd fgd fsdafds dfs sfa [root@linuxprobe test]# cat -A a.txt fd g 阅读全文
posted @ 2020-10-18 21:36 小鲨鱼2018 阅读(4777) 评论(0) 推荐(0) 编辑
摘要: 1、linux系统中find命令主要用于查找文件,可以设置不同的查找条件进行查找 创建测试数据: [root@linuxprobe test]# touch a.txt b.txt c.txt ## 创建三个普通文件 [root@linuxprobe test]# mkdir test1 test2 阅读全文
posted @ 2020-10-17 07:14 小鲨鱼2018 阅读(406) 评论(0) 推荐(0) 编辑
上一页 1 ··· 370 371 372 373 374 375 376 377 378 ··· 385 下一页