码迷,mamicode.com
首页 >  
搜索关键字:文件结构 ls alias    ( 12011个结果
linux exec用法总结
Linux中exec的用法总结先总结一个表:exec命令作用execls在shell中执行ls,ls结果显示结束后不返回原来的的目录中,而是/(根目录)execfile将file中的内容作为标准写出exec3file将写入fd4中的内容写入file中ls>&4Ls将不会有显示,直接写入fd4中了,即...
分类:系统相关   时间:2014-08-12 18:03:24    阅读次数:232
nginx多域名ssl证书以及lua模块的编译安装
#!/bin/bash #unzip?zip&tar?file function??untarfile(){ for?i?in?$(?ls?.?|grep?-v?.sh) do val=$(echo?$i?|?grep?".zip$"?|wc?-l) if?[[?"$val"??-eq??1?]];then dirname=$(echo?...
分类:其他好文   时间:2014-08-12 17:47:04    阅读次数:237
执行LS源码的三种方法
方法一:使用 eval()eval()函数常用来计算表达式,将表达式转换成一个变量名或者对象名,然后使用它访问变量或者对象。LS中的数据都是以字符串的形式存储。当获取到字符串 data时(json数据转换成的字符串),storage = eval("("+data+")");//这样得到的数据就是j...
分类:其他好文   时间:2014-08-12 16:41:44    阅读次数:173
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
VBS调用系统API
如Beep的API声明为Public Declare Function Beep Lib “kernel32″ Alias “Beep” (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long则使用方法如下'创建对象Set Wrap = Cr...
分类:Windows程序   时间:2014-08-12 13:31:44    阅读次数:984
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!