随笔分类 -  linux学习

上一页 1 2 3 4 5 6 7 下一页
linux 管道--转
摘要:linux 管道管道是Linux中很重要的一种通信方式,是把一个程序的输出直接连接到另一个程序的输入,常说的管道多是指无名管道,无名管道只能用于具有亲缘关系的进程之间,这是它与有名管道的最大区别。有名管道叫named pipe或者FIFO(先进先出),可以用函数mkfifo()创建。Linux管道的... 阅读全文
posted @ 2014-07-12 13:22 一天不进步,就是退步 阅读(14504) 评论(0) 推荐(0)
通过SSHFS在RHEL中安全的挂载远程Linux/UNIX目录或文件系统--转载
摘要:You can easily mount remote server file system or your own home directory using special sshfs and fuse tools.FUSE - Filesystem in UserspaceFUSE is a L... 阅读全文
posted @ 2014-07-03 19:03 一天不进步,就是退步 阅读(401) 评论(0) 推荐(0)
linux shell wc 命令
摘要:1. 语法与选项Short OptionLong OptionOption Description-c–bytesprint the byte counts-m–charsprint the character counts-l–linesprint the newline counts–files... 阅读全文
posted @ 2014-06-12 16:42 一天不进步,就是退步 阅读(2554) 评论(0) 推荐(0)
linux shell pushd popd dirs命令
摘要:1、dirs1)功能显示当前目录栈中的所有记录(不带参数的dirs命令显示当前目录栈中的记录)2)语法(1)格式:dirs [-clpv] [+n] [-n](2)选项-c 删除目录栈中的所有记录-l 以完整格式显示-p 一个目录一行的方式显示-v 每行一个目录来显示目录栈的内容,每个目录前加上的编 阅读全文
posted @ 2014-06-12 15:57 一天不进步,就是退步 阅读(26369) 评论(0) 推荐(0)
Linux shell的&&和||--转载
摘要:Linuxshell的&&和||shell 在执行某个命令的时候,会返回一个返回值,该返回值保存在 shell 变量 $? 中。当 $? == 0 时,表示执行成功;当 $? == 1 时,表示执行失败。 www.2cto.com 有时候,下一条命令依赖前一条命令是否执行成功。如:在成功地执行一条命... 阅读全文
posted @ 2014-06-11 09:52 一天不进步,就是退步 阅读(291) 评论(0) 推荐(0)
linux shell less 命令---转
摘要:less工具也是对文件或其它输出进行分页显示的工具,应该说是linux正统查看文件内容的工具,功能极其强大。less的用法比起more更加的有弹性。在more的时候,我们并没有办法向前面翻,只能往后面看,但若使用了less时,就可以使用[pageup][pagedown]等按键的功能来往前往后翻看文... 阅读全文
posted @ 2014-06-10 10:03 一天不进步,就是退步 阅读(12222) 评论(0) 推荐(0)
8 Pratical Examples of Linux “Touch” Command--reference
摘要:InLinuxevery single file is associated with timestamps, and every file stores the information of last access time, last modification time and last cha... 阅读全文
posted @ 2014-06-09 16:45 一天不进步,就是退步 阅读(677) 评论(0) 推荐(0)
linux 清空文件内容命令
摘要:清空文件内容命令$ echo "" >log.log> 是重写,覆盖式>>是尾部追加 阅读全文
posted @ 2014-05-28 17:15 一天不进步,就是退步 阅读(29317) 评论(0) 推荐(2)
linux shell read command-Getting User Input Via Keyboard--ref
摘要:ref:http://bash.cyberciti.biz/guide/Getting_User_Input_Via_KeyboardYou can accept input from the keyboard and assign an input value to a user defined ... 阅读全文
posted @ 2014-05-28 15:33 一天不进步,就是退步 阅读(1417) 评论(0) 推荐(0)
Bash For Loop Examples for Your Linux Shell Scripting--ref
摘要:There are two types of bash for loops available. One using the “in” keyword with list of values, another using the C programming like syntax. This a... 阅读全文
posted @ 2014-05-28 15:08 一天不进步,就是退步 阅读(934) 评论(0) 推荐(0)
linux find命令详解--转
摘要:转自:http://blog.csdn.net/jakee304/article/details/1792830(一)Get Start最简单的find用法莫过于如此:$find.查找当前目录下的所有文件。find命令的一般格式为:find[-H][-L][-P][path...][expressi... 阅读全文
posted @ 2014-05-26 18:53 一天不进步,就是退步 阅读(8475) 评论(1) 推荐(0)
linux cat 命令详解--转
摘要:使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档案)参数:-n 或 --number 由 1 开始对所有输出的行数编号-b 或 --number-nonblank 和 ... 阅读全文
posted @ 2014-05-22 18:19 一天不进步,就是退步 阅读(1846) 评论(0) 推荐(0)
linux shell执行方式
摘要:linux shell执行有两种方式shell脚本以#!/bin/bash开头,执行shell时先检查首行,在内部以下列方式执行:$/bin/bash script.sh1. 使用sh执行。 $sh script.sh #脚本位于当前目录下或者 $sh /home/path/script.sh #使... 阅读全文
posted @ 2014-05-22 10:21 一天不进步,就是退步 阅读(479) 评论(0) 推荐(0)
Bash String Manipulation Examples – Length, Substring, Find and Replace--reference
摘要:In bash shell, when you use a dollar sign followed by a variable name, shell expands the variable with its value. This feature of shell is called para... 阅读全文
posted @ 2014-05-20 22:06 一天不进步,就是退步 阅读(851) 评论(0) 推荐(0)
Linux新手入门:通过chmod改变文件权限--转
摘要:前面介绍过在Linux中如何查看文件的属性,在Linux文件权限详解中我们介绍了Linux文件的三种身份和四种权限,三种身份分别为:u:文件的拥有者g:文件所属的群组o:其他用户对于每个身份,又有四种权限,分别为:r:读取文件的权限(read)w:写入文件的权限(write)x:执行的权限(exec... 阅读全文
posted @ 2014-05-13 21:58 一天不进步,就是退步 阅读(745) 评论(0) 推荐(0)
sed命令详解--转
摘要:1.简介sed是非交互式的编辑器。它不会修改文件,除非使用shell重定向来保存结果。默认情况下,所有的输出行都被打印到屏幕上。sed编辑器逐行处理文件(或输入),并将结果发送到屏幕。具体过程如下:首先sed把当前正在处理的行保存在一个临时缓存区中(也称为模式空间),然后处理临时缓冲区中的行,完成后... 阅读全文
posted @ 2014-05-13 18:25 一天不进步,就是退步 阅读(355) 评论(0) 推荐(0)
15 Linux Split and Join Command Examples to Manage Large Files--reference
摘要:byHIMANSHU ARORAonOCTOBER 16, 2012http://www.thegeekstuff.com/2012/10/15-linux-split-and-join-command-examples-to-manage-large-files/Linux split and j... 阅读全文
posted @ 2014-05-08 11:06 一天不进步,就是退步 阅读(693) 评论(0) 推荐(0)
多台Linux服务器SSH相互访问无需密码--转
摘要:一、环境配置1、系统:CentOS release 5.6 IP:192.168.4.200 主机名:JW012、系统:CentOS release 5.9 IP:192.168.4.244 主机名:JW023、系统:CentOS release 5.3 IP:192.168.4.232 主机名:K... 阅读全文
posted @ 2014-05-06 09:50 一天不进步,就是退步 阅读(618) 评论(0) 推荐(0)
Fast portable non-blocking network programming with Libevent--转
摘要:Learning LibeventChapter 0: About this documentChapter 1: A tiny introduction to asynchronous IO.A Libevent Reference ManualR0: PreliminariesR1: Setti... 阅读全文
posted @ 2014-04-27 00:01 一天不进步,就是退步 阅读(402) 评论(0) 推荐(0)
rsync+inotify实现实时同步案例--转
摘要:转自:http://chocolee.blog.51cto.com/8158455/1400596随着应用系统规模的不断扩大,对数据的安全性和可靠性也提出的更好的要求,rsync在高端业务系统中也逐渐暴露出了很多不足,首先,rsync同步数据时,需要扫描所有文件后进行比对,进行差量传输。如果文件数量... 阅读全文
posted @ 2014-04-24 10:57 一天不进步,就是退步 阅读(20640) 评论(0) 推荐(1)

上一页 1 2 3 4 5 6 7 下一页