随笔分类 - 【Linux | 练习题】
摘要:1.批量创建10个用户stu01-stu10,并且设置随机8位密码,要求不能用shell循环(例如:for,while等),只能用命令及管道实现。 1 ##方法1: 2 [root@server tmp]# echo stu{01..10}|tr " " "\n"|sed -r 's#(.*)#us...
阅读全文
posted @ 2016-01-02 22:42
Simon92
摘要:1.如何取得/etc/hosts 文件的权限对应的数字内容,如-rw-r--r-- 为 644, 要求使用命令取得644 这样的数字。 1 [root@server ~]# stat /etc/hosts 2 File: "/etc/hosts" 3 Size: 178 ...
阅读全文

浙公网安备 33010602011771号