随笔分类 -  【Linux | 练习题】

摘要:php7连接mysql测试代码 阅读全文
posted @ 2018-12-12 14:55 Simon92 阅读(1674) 评论(0) 推荐(0)
摘要: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 ... 阅读全文
posted @ 2015-12-24 16:18 Simon92 阅读(1580) 评论(1) 推荐(1)