
linux
iteye_3408
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
inux tar 命令常用 及压缩详解
Linux下最常用的打包程序就是tar了,使用tar程序打出来的包我们常称为tar包,tar包文件的命令通常都是以.tar结尾的。生成tar包后,就可以用其它的程序来进行压缩了,所以首先就来讲讲tar命令的基本用法: tar命令的选项有很多(用man tar可以查看到),但常用的就那么几个选项,下面来举例说明一下: [code="java"] # tar -cf all.tar *.j...原创 2012-03-28 15:48:56 · 148 阅读 · 0 评论 -
Linux下杀掉根据进程名批量杀进程
[code="java"]kill -KILL `ps aux | grep httpd| awk '{print $1}'`[/code]这样可以杀掉所有Apache进程[code="java"]ps aux | grep httpd| awk '{print $1}'[/code]其中awk print $1分离出里面的第二个字段...原创 2012-05-07 08:44:23 · 141 阅读 · 0 评论 -
linux命令
1.增加用户 用户名 test01useradd test012.无须交互为用户设置密码 用户名test01 密码 pass01echo test01 : pass01 | chpasswdecho ‘pass01’ | passwd --stdin test013.删除文件夹中除“test*.txt”的文件find -type f \-! -name "test*...原创 2013-02-28 10:54:30 · 101 阅读 · 0 评论