摘要: 1、linux系统中一共有七种文件类型,参考:https://www.cnblogs.com/songgj/p/8890710.html linux一共有7种文件类型,分别如下: -:普通文件 d:目录文件 l: 软链接(类似Windows的快捷方式) (下面四种是特殊文件) b:块设备文件(例如硬 阅读全文
posted @ 2020-10-19 23:54 小鲨鱼2018 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1、使用usermod -L 选项限制用户登录 [root@linuxprobe home]# usermod -L linuxprobe ##禁止用户linuxprobe登录 [root@linuxprobe home]# passwd -S linuxprobe ## 查看状态,锁定状态 lin 阅读全文
posted @ 2020-10-19 22:52 小鲨鱼2018 阅读(1286) 评论(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 阅读(1284) 评论(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 阅读(415) 评论(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 阅读(579) 评论(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 阅读(205) 评论(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 阅读(526) 评论(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 阅读(1134) 评论(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 阅读(859) 评论(0) 推荐(0) 编辑