码迷,mamicode.com
首页 > 其他好文 > 详细

liunx问题

时间:2016-06-21 11:05:48      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:题目

1、取出/etc/inittab文件的第6行:

  head -6 /etc/inittab| tail -1

2、取出/etc/passwd文件中倒数第9个用户的用户名和shell,显示到屏幕上并将其保存至/tmp/users文件中:

  tail -9 /etc/passwd | head -1 | cut -d: -f1,7 |tee /tmp/users                           3、显示/etc目录下所有以pa开头的文件,并统计其个数

  ls -d /etc/pa* | wc -l

4、不适用文本编辑器,将alias cls = clear 一行内容添加至当前用户的./bashrc文件中     

 echo "alias cls=clear" >> ~/.bashrc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

liunx问题

标签:题目

原文地址:http://11743592.blog.51cto.com/11733592/1791235

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!