共 31 篇文章 |
|
file2 查找更改时间比文件file1新但比文件file2旧的文件。普通文件 -size n[c]: 查找文件长度为n块的文件,带有c时表示文件长度以字节计。find / -type f | xargs grep "hostname" #在所有文件中查找含有hostname这个词的文件find / -size +100c #查找大于100Bytes的所有文件find / -size +500kc -and -size -1000kc #查找大于500KB... 阅2 转自oice 公众公开 14-07-22 21:04 |
= 0: print "must be run as root" sys.exit(0) # check OpenVZ/Virtuozzo if os.path.exists("/proc/vz"): if not os.path.exists("/proc/bc"): print "openvz container" else: print "openvz node" # check Xen if os.path.exists("/proc/xen/capabilities"): if (os.path.get... 阅407 转3 评0 公众公开 13-08-15 19:02 |
linux 下 jdk+tomcat+mysql 的 jsp 环境搭建JDK 在 linux 下安装。[root@localhost etc]# useradd -g mysql mysql.drwx------ 2 mysql mysql 4096 Oct 25 01:01 mysql.[root@localhost mysql-5.1.30]# ./configure -prefix=/opt/mysql.[root@localhost bin]# ./mysql_install_db --user=mysql.[root@localhost bin]./bin/mysqld_safe --user=... 阅7 转自忧郁_小刚 公众公开 13-08-08 00:34 |
Fedora下python “no module named numpy” 解决方案。On Linux, Scipy and Numpy official releases are source-code only.Installing Numpy and Scipy from source is reasonably easy;Hopefully, you can install Numpy and Scipy without any software outside the necessary tools to build python extensions, as most dependencies are ... 阅24664 转67 评0 公众公开 13-03-01 23:31 |
正确的做法是:不论整形Perl字符串,都用eqwhile(chomp($input=<STDIN>)){.运算符和,类似也是Perl字符串相加但,通常只用于print而.可以用在任何Perl字符串相加的地方print''12345大家來跳舞''."helloworld";結果變成:12345大家來跳舞helloworld.uc轉成大寫,lc轉成小寫$str="abCD99e";$str=uc($str)... 阅78 转0 评0 公众公开 13-02-19 15:26 |
例2:从第三行开始,每隔一行删除$sed 3~2d thegeekstuff.txt1. Linux - Sysadmin, Scripting etc.2. Databases - Oracle, mySQL etc.4. Security (Firewall, Network, Online Security etc)6. Cool gadgets and websites8. Website Design10.Windows- Sysadmin, reboot etc.$ 阅9489 转3 评0 公众公开 13-02-19 01:08 |