1、显示当前系统上root、fedora或user1用户的默认shell;答:需要找到3个字符串,需要用到“或”命令,所以使用egrep。找到后cut再次筛选出我们需要显示的用户默认的shell。2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();答:3、使用ech..
分类:
编程语言 时间:
2016-09-04 00:18:51
阅读次数:
351
Yael Yael is a library implementing computationally intensive functions used in large scale image retrieval, such as neighbor search, clustering and i ...
分类:
其他好文 时间:
2016-09-03 16:39:09
阅读次数:
185
<%@ taglib uri="/struts-tags" prefix="s" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib uri="http://java.sun.com ...
分类:
Web程序 时间:
2016-09-03 16:32:00
阅读次数:
152
第五周作业1、显示当前系统上root、fedora或user1用户的默认shell;[root@STCO6~]#grep-E‘^(root|fedora|user1)\>‘/etc/passwd|cut-d:-f1,7
root:/bin/bash
fedora:/bin/bash
user1:/bin/bash2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hel..
分类:
其他好文 时间:
2016-09-03 07:31:17
阅读次数:
158
函数的使用 官方文档:https://docs.python.org/2/library/functions.html 查看帮助 按q退出。 实例: divmod() round() raw_input() 类似于bash中的read,注意它的输出都是Str类型的。 ...
分类:
编程语言 时间:
2016-09-02 18:47:22
阅读次数:
189
1、显示当前系统上root、fedora或user1用户的默认shell;#grep"^\(root\|fedora\|user1\)"/etc/passwd2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();#grep"[[:alpha:]].*()"/etc/rc.d/init.d/functions3、使用echo命令输出一个绝对路径,..
分类:
其他好文 时间:
2016-09-01 00:19:35
阅读次数:
171
1、显示当前系统上root、fedora或user1用户的默认shell;grep-E"^(root|fedora|user1)\>"/etc/passwd|cut-d:-f1,72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep-E"[[:alpha:]]+\(\)+"/etc/rc.d/init.d/functions3、使用echo命令..
分类:
其他好文 时间:
2016-08-31 12:21:01
阅读次数:
136
10870 RecurrencesConsider recurrent functions of the following form:f(n) = a1f(n 1) + a2f(n 2) + a3f(n 3) + : : : + adf(n d); for n > d;wh ...
分类:
其他好文 时间:
2016-08-31 02:11:59
阅读次数:
246
1、显示当前系统上root、fedora或user1用户的默认shell;grep-E‘^root|fedora|allan:‘/etc/passwd|cut-d:-f1,7#显示root,allan默认shellroot:/bin/bashallan:/bin/bash2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();egrep‘[_[:alpha:]]+..
分类:
其他好文 时间:
2016-08-30 23:09:59
阅读次数:
364
1、显示当前系统上root、fedora或user1用户的默认shell;]#egrep"^root\b|^user1\b|^fedora\b"/etc/passwd|cut-d:-f1,72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();]#grep"[[:alpha:]]\+()"/etc/rc.d/init.d/functions3、使用echo命令..
分类:
其他好文 时间:
2016-08-30 22:53:12
阅读次数:
266