Linux下*.tar.bz2等文件如何解压--转
如果tar不支持j这个参数就先用bzip2-dxxx.tar.bz2把它解压成.tar文件,然后再用tarxvfxxx.tar拆包。压缩解压linux下怎么解后缀名是gzip的文件?1.以.a为扩展名的文件:#tarxvfile.a2.以.z为扩展名的文件:#uncompressfile.Z3.以.
How to allow/block PING on Linux server – IPTables
BYADMIN-APRIL,9TH2014The‘PING’,it’sacommand-linetooltocheckahostisreachableornot.Wecanmanageitbythehelpof‘iptables’.The‘ping’isusingICMPtocommunicate.
Common Linux log files name and usage--reference
IfyouspendlotoftimeinLinuxenvironment,itisessentialthatyouknowwherethelogfilesarelocated,andwhatiscontainedineachandeverylogfile.Whenyoursystemisrunni
linux vi 撤销重做于前进后退--转
在vi中按u可以撤销一次操作u撤销上一步的操作Ctrl+r恢复上一步被撤销的操作注意:如果你输入“u”两次,你的文本恢复原样,那应该是你的Vim被配置在Vi兼容模式了。重做如果你撤销得太多,你可以输入CTRL-R(redo)回退前一个命令。换句话说,它撤销一个撤销。要看执行的例子,输入CTRL-R两
rsync+inotify实现实时同步案例--转
转自:http://chocolee.blog.51cto.com/8158455/1400596随着应用系统规模的不断扩大,对数据的安全性和可靠性也提出的更好的要求,rsync在高端业务系统中也逐渐暴露出了很多不足,首先,rsync同步数据时,需要扫描所有文件后进行比对,进行差量传输。如果文件数量
Fast portable non-blocking network programming wit
LearningLibeventChapter0:AboutthisdocumentChapter1:AtinyintroductiontoasynchronousIO.ALibeventReferenceManualR0:PreliminariesR1:SettinguptheLibeventli
多台Linux服务器SSH相互访问无需密码--转
多台Linux服务器SSH相互访问无需密码--转一、环境配置1、系统:CentOSrelease5.6IP:192.168.4.200主机名:JW012、系统:CentOSrelease5.9IP:192.168.4.244主机名:JW023、系统:CentOSrelease5.3IP:192.16
15 Linux Split and Join Command Examples to Manage
byHIMANSHUARORAonOCTOBER16,2012http://www.thegeekstuff.com/2012/10/15-linux-split-and-join-command-examples-to-manage-large-files/Linuxsplitandjoincom
sed命令详解--转
1.简介sed是非交互式的编辑器。它不会修改文件,除非使用shell重定向来保存结果。默认情况下,所有的输出行都被打印到屏幕上。sed编辑器逐行处理文件(或输入),并将结果发送到屏幕。具体过程如下:首先sed把当前正在处理的行保存在一个临时缓存区中(也称为模式空间),然后处理临时缓冲区中的行,完成后
Linux新手入门:通过chmod改变文件权限--转
前面介绍过在Linux中如何查看文件的属性,在Linux文件权限详解中我们介绍了Linux文件的三种身份和四种权限,三种身份分别为:u:文件的拥有者g:文件所属的群组o:其他用户对于每个身份,又有四种权限,分别为:r:读取文件的权限(read)w:写入文件的权限(write)x:执行的权限(exec
Linux新手入门:通过chmod改变文件权限--转
前面介绍过在Linux中如何查看文件的属性,在Linux文件权限详解中我们介绍了Linux文件的三种身份和四种权限,三种身份分别为:u:文件的拥有者g:文件所属的群组o:其他用户对于每个身份,又有四种权限,分别为:r:读取文件的权限(read)w:写入文件的权限(write)x:执行的权限(exec
Bash String Manipulation Examples – Length, Substr
Butparameterexpansionhasnumerousotherformswhichallowyoutoexpandaparameterandmodifythevalueorsubstituteothervaluesintheexpansionprocess.Inthisarticle,l
linux shell执行方式
linuxshell执行有两种方式shell脚本以#!/bin/bash开头,执行shell时先检查首行,在内部以下列方式执行:$/bin/bashscript.sh1.使用sh执行。$shscript.sh#脚本位于当前目录下或者$sh/home/path/script.sh#使用完整路径2.独立
linux cat 命令详解--转
使用方式:cat[-AbeEnstTuv][--help][--version]fileName说明:把档案串连接后传到基本输出(萤幕或加>fileName到另一个档案)参数:-n或--number由1开始对所有输出的行数编号-b或--number-nonblank和-n相似,只不过对于空白行
linux find命令详解--转
转自:http://blog.csdn.net/jakee304/article/details/1792830(一)GetStart最简单的find用法莫过于如此:$find.查找当前目录下的所有文件。find命令的一般格式为:find[-H][-L][-P][path...][expressio
Bash For Loop Examples for Your Linux Shell Script
Therearetwotypesofbashforloopsavailable.Oneusingthe“in”keywordwithlistofvalues,anotherusingtheCprogramminglikesyntax.Thisarticleispartofouron-goingbas
linux shell read command-Getting User Input Via Ke
ref:http://bash.cyberciti.biz/guide/Getting_User_Input_Via_KeyboardYoucanacceptinputfromthekeyboardandassignaninputvaluetoauserdefinedshellvariableusi
8 Pratical Examples of Linux “Touch” Command--refe
InLinuxeverysinglefileisassociatedwithtimestamps,andeveryfilestorestheinformationoflastaccesstime,lastmodificationtimeandlastchangetime.So,wheneverwec
linux shell wc 命令
1.语法与选项ShortOptionLongOptionOptionDescription-c–bytesprintthebytecounts-m–charsprintthecharactercounts-l–linesprintthenewlinecounts–files0-from=Freadi
通过SSHFS在RHEL中安全的挂载远程Linux/UNIX目录或文件系统--转载
Youcaneasilymountremoteserverfilesystemoryourownhomedirectoryusingspecialsshfsandfusetools.FUSE-FilesysteminUserspaceFUSEisaLinuxkernelmodulealsoavail