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
Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 ...
分类:
其他好文 时间:
2016-08-30 17:33:09
阅读次数:
118
首先,多个java文件的编译 find . -type f -name *.java > compilelist (.代表当前路径) javac -cp "$CLASSPATH" -encoding MS932 @compilelist(编码方式可以任意指定) 然后,整个编译的.class文件 fi ...
分类:
编程语言 时间:
2016-08-30 17:33:00
阅读次数:
241
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille ...
分类:
其他好文 时间:
2016-08-30 17:28:39
阅读次数:
109
在文件系统上查找符合条件的文件; 文件查找:locate,find 非实时查找(数据库查找):locate 实时查找:find locate: 依赖于事先构建的索引;索引的构建是在系统较为空闲时自动进行(周期性任务);手动更新数据库(updatedb); 索引构建过程需要遍历整个根文件系统,极消耗资..
分类:
其他好文 时间:
2016-08-30 16:11:17
阅读次数:
168
1:如何查找大文件?搜索当前目录下,超过100M大小的文件:[root@getlnx01u03]#find.-typef-size+100M
./usr/local/jdk-7u67-linux-x64.tar.gz
./data/log/charge-service/test-access.log.2016-08-08.log
./data/log/cms_service/test-access.log.2016-08-09.log
./home/deplo..
分类:
系统相关 时间:
2016-08-30 16:10:26
阅读次数:
184
1.前言。 在声明式的事务处理中,要配置一个切面,即一组方法,如 Java代码 <tx:advice id="txAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="find*" read-only="t ...
分类:
编程语言 时间:
2016-08-30 12:11:28
阅读次数:
147
Given n points on a 2D plane, find if there is such a line parallel to y-axis that reflect the given points. Example 1: Given points = [[1,1],[-1,1]], ...
分类:
其他好文 时间:
2016-08-30 12:08:26
阅读次数:
94
find . -type f -name "*.tmp" | xargs grep -ri "2016-08-30 04:00:00|2016-08-30 05:00:00" -l //在当前目录以下,在*.tmp所有文件中查找内容为“2016-08-30 04:00:00|2016-08-30 0 ...
分类:
系统相关 时间:
2016-08-30 10:49:09
阅读次数:
189