码迷,mamicode.com
首页 >  
搜索关键字:第五周    ( 796个结果
第五周作业
第五周作业1、显示当前系统上root、fedora或user1用户的默认shell;grep"^root"/etc/passwd|awk-F‘:‘‘{print$7}‘2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep".*(\{1\}).*"/etc/rc.d/init.d/functions3、使用echo命令输出一个绝对..
分类:其他好文   时间:2016-09-10 22:31:16    阅读次数:207
马哥运维班第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;#grep:-E:使用扩展正则表达式,即egrep,^:行首匹配,|:或者 #cut:-d:指定分隔符,-f:取第几列 [root@localhostshell]#grep-E"^root|fedora|user1"/etc/passwd|cut-d:-f1,7 root:/bin/bash2、找出/etc/rc.d/init.d..
分类:其他好文   时间:2016-09-06 23:38:24    阅读次数:266
马哥linux作业第五周'
1、显示当前系统上root、fedora或user1用户的默认shell;egrep"^(root|fedora|user1)\>"/etc/passwd|cut-d:-f1,7root|fedora|user1表示三者符合其一的选择条件()使其归组^表示以后面归组的条件开头\>表示以空字符截断此前的条件字符,即后跟其它字符的单词将不匹配2、..
分类:系统相关   时间:2016-09-06 23:37:39    阅读次数:311
马哥linux第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;[root@mageedu~]#useraddfedora [root@mageedu~]#useradduser1 [root@mageedu~]#egrep"^(root|fedora|user1)"/etc/passwd|cut-d:-f1,7 root:/bin/bash fedora:/bin/bash user1:/bin/bas2、找出/etc/rc.d/init.d/function..
分类:系统相关   时间:2016-09-06 01:30:27    阅读次数:300
第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;#/etc/passwd文件中每行第一字段为用户名,第七字段为默认bash,使用^进行行首锚定,然后使用egrep中的正则表达式元字符“|”来匹配,使用cut命令切割出第一和第七字段得到结果。 [root@localhost~]#egrep"^root|fedora|..
分类:其他好文   时间:2016-09-06 01:26:00    阅读次数:167
第五周作业
本周作业内容:显示当前系统上root、fedora或user1用户的默认shell;#egrep"^(root|user1|fedora)"/etc/passwd|cut-d:-f72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();#egrep"^[[:alpha:]]+\(\)"/etc/rc.d/init.d/functions3、使用echo..
分类:其他好文   时间:2016-09-06 01:22:12    阅读次数:166
马哥第3期运维班第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;egrep‘^(root|fedora|user1)\>‘/etc/passwd|cut-d:-f7 #|表示或者,以:为分隔截取第7段2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep-o"^[_[:alpha:]]+\(\)"/etc/rc.d/in..
分类:其他好文   时间:2016-09-05 17:39:26    阅读次数:150
23 第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;答:Linux的哲学思想之一:组合单一目的的小程序,完成复杂任务; 第一步:使用扩展正则表达式egrep或grep–E显示出匹配到的用户信息; ^:行首锚定,用于模式的最左侧;\>或\b:词尾锚定,用于单词模式的右侧; [ro..
分类:其他好文   时间:2016-09-05 17:36:58    阅读次数:237
第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;egrep"^root|^fedora|^user1"/etc/passwd|cut-d:-f1,72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep"\<[[:alpha:]]\+\>()"/etc/rc.d/init.d/functions3、使用echo命令..
分类:其他好文   时间:2016-09-05 17:27:26    阅读次数:127
megeedu Linux+Python高级运维班 3期 第五周作业
1、显示当前系统上root、fedora或user1用户的默认shell;[root@bogon~]#useraddfedora#添加用户fedora [root@bogon~]#useradduser1#添加用户user1 [root@bogon~]#egrep‘^(root|fedora|user1)‘/etc/passwd|cut-d:-f1,7 #使用表达式(root|fedora|user1)查找root、fedora或user1 r..
分类:编程语言   时间:2016-09-05 17:25:03    阅读次数:259
796条   上一页 1 ... 47 48 49 50 51 ... 80 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!