码迷,mamicode.com
首页 >  
搜索关键字:linux每日一命令 ls    ( 8417个结果
linux学习命令总结⑥
#文件名通配通配符:*:匹配任意长度的任意字符(0到多个)[root@VM_168_102_centos~]#ls* 0812080808 2014-05-16: test.log ceshi_1: test: [root@VM_168_102_centos~]#ls-ldt* drwxr-xr-x2rootwanghan4096Aug1115:46test ?:匹配任意单个字符 [root@VM_168_102_cento..
分类:系统相关   时间:2014-08-12 13:52:34    阅读次数:385
python中如何使用shell命令, 及python 与shell 中的变量相互通信
1. python中使用shell命令有多种方法,我自己觉得比较好用的是用commands模块:import commandsa,b = commands.getstatusoutput("ls -Al")a是退出状态(int类型), b是shell 命令的输出结果python -> shell:1...
分类:编程语言   时间:2014-08-12 13:11:34    阅读次数:228
Hadoop1.2.1安装笔记3:hadoop配置
在/usr目录下建立hadoop文件夹,赋予hadoop用户权限(master)[hadoop@masterusr]$sudomkdirhadoop [hadoop@masterusr]$ls-al total156 drwxr-xr-x.2rootroot4096Jul3100:17hadoop [hadoop@masterusr]$sudochown-Rhadoop:hadoophadoop [hadoop@masterusr]$ls-al total156 drwxr-xr..
分类:其他好文   时间:2014-08-12 10:29:54    阅读次数:245
文件查找 /which/whereis/locate/find/grep
Which#查找固定的目录#[root@labhome]#whichba/usr/bin/which:nobain(/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)[root@labhome]#whichlsaliasls=‘ls--color=auto‘/bin/ls我们可以看到which命令只查这些指定目录。Whereis#..
分类:其他好文   时间:2014-08-12 03:37:44    阅读次数:296
折半查找(二分查找)
import java.util.Arrays;/* * 二分查找 */public class BinarySearch { /* * while循环 */ public static int binarySearch(int[] ls, int su) { ...
分类:其他好文   时间:2014-08-12 00:30:13    阅读次数:186
linux中ls、ls -l、ls -al、ll命令
ls只是简单的列出目录下文件名,ll更加详细的列出了文件的类型、文件所有者权限、文件所有者组权限、文件大小、文件最后修改时间,etc...我们可以用一个简单的图来说明,如下图1: 图11、第一位就"-",表示普通文件。2、rw- ,表示文件...
分类:系统相关   时间:2014-08-12 00:00:53    阅读次数:330
如何在shell下切换用户执行命令?
如何在shell下切换用户执行命令? su - dev -c "ls" > 1. “su -”切换用户,并且当前目录页切换到相应用户的根目录。 > 2. “dev”是用户名 > 3. “-c"后面接需要执行的shell command...
分类:其他好文   时间:2014-08-11 18:21:02    阅读次数:196
EM12C 安装及卸载 注意点整理
(一)卸载插件 eg: [oracle@dominic4 plugins]$ pwd  /em12c/plugins [oracle@dominic4 plugins]$ ls  oracle.em.savf.discovery.plugin_12.1.0.2.0 oracle.sysman.emas.discovery.plugin_12.1.0.6.0  oracle...
分类:其他好文   时间:2014-08-11 15:13:02    阅读次数:481
linux学习命令总结④
#ls命令:通过ls命令不仅可以查看linux文件夹包含的文件,而且可以查看文件权限(包括目录、文件夹、文件权限),查看目录信息等等[root@VM_168_102_centos/]#ls bindataetcliblost+foundmntprocsbinsrvtmpvar bootdevhomelib64mediaoptrootselinuxsysusr ls–a:显示所有文件?.
分类:系统相关   时间:2014-08-11 10:17:22    阅读次数:554
poj 3461 字符串单串匹配--KMP或者字符串HASH
http://poj.org/problem?id=3461 先来一发KMP算法: #include #include #include #include #include #include #include #include using namespace std; #define ls(rt) rt*2 #define rs(rt) rt*2+1 #def...
分类:其他好文   时间:2014-08-09 21:29:29    阅读次数:278
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!