getfattr用法 用于获取文件扩展属性,返回一系列键值对,参考Linux Man Page. 常用OPTIONS -n name, --name=name Dump the value of the named extended attribute extended attribute. -d, --dump Dump the values of all extended attributes associated with pathname. -e en, --encoding=en En…
通常sed指令修改行内容时使用:sed -i " 9 s/^.*/"type in what you want modified!"/" 其中"type in what you want modified!"为替换后希望得到的内容. 由于用作替换的字符串里面不包括与sed替换格式相同的"/",因此可以正常使用. But,当希望通过sed方式修改配置文件中的目录时,由于用作替换的目录字符换(datapath=/home/data…
Shell: 用户与操作系统之间完成交互式操作的一个接口程序,为用户提供简化了的操作:上世纪的70年代中期在贝尔实验室,Bourne位Unix开发了一个shell程序Bourne Shell,简称sh:Bill Joy:用C语言根据sh重新编写 C Shell,简称csh:躺床上为其衍生版:David Korn:集合cshhesh的优点研发的Korn Shell,简称ksh:GNU:GNU组织发现sh是比较好用的又进一步开发Borne Again Shell,简称bash:Linux系统中默认的…