摘要:
1、安装 yum install crontabs 2、查看状态,启动,关闭,重启 service crond status ## 查看状态 service crond start ## 启动服务 service crond stop ## 关闭服务 service crond restart ## 阅读全文
posted @ 2021-08-10 14:24
深夜独行侠
阅读(90)
评论(0)
推荐(0)
摘要:
su test:切换到test用户,但是路径还是/root目录 su - test : 切换到test用户,路径变成了/home/test su : 切换到root用户,但是路径还是原来的路径 su - : 切换到root用户,并且路径是/root 阅读全文
posted @ 2021-08-10 10:41
深夜独行侠
阅读(77)
评论(1)
推荐(0)
摘要:
查看 /etc/passwd 文件中的用户,如果结尾是 /bin/csh、/bin/bash的话说明该用户可以登陆,如果以nologin 结尾的话,那么该用户就是无法登录进系统的。 [root@VM-0-3-centos /]# cat /etc/passwd root:x:0:0:root:/ro 阅读全文
posted @ 2021-08-10 10:13
深夜独行侠
阅读(2376)
评论(0)
推荐(0)

浙公网安备 33010602011771号