自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(25)
  • 收藏
  • 关注

转载 子类会继承父类的的样式,有时修改子类的样式不管用是因为没有父类的权重大...

子类会继承父类的的样式,有时修改子类的样式不管用是因为没有父类的权重大转载于:https://www.cnblogs.com/hutudan/p/7356551.html

2017-08-14 10:46:00 202

转载 linux删除多行

光标放到行dd:删除所在行光标放到行Ndd: 删除所在行下的N行转载于:https://www.cnblogs.com/hutudan/p/6398649.html

2017-02-14 17:41:00 344

转载 查看文件夹下每个文件的大小

ls -lht转载于:https://www.cnblogs.com/hutudan/p/5885278.html

2016-09-19 15:13:00 163

转载 删除目录下所有某种类型文件

find . -name "*.bms" -type f -print -exec rm -rf {} \;. : 表示在当前目录下-name"*.txt"表示查找所有后缀为txt的文件-typef 表示文件类型为一般正规文件-print表示将查询结果打印到屏幕上-execcommand转自:http://blog.csdn.net/caryaliu...

2016-08-18 14:58:00 197

转载 指定字符串后添加字符

将test文件后以字符串abc开头的行后添加defsed -i 's/abc.*/&def,/' test.txt转载于:https://www.cnblogs.com/hutudan/p/5779159.html

2016-08-17 11:08:00 972

转载 linux替换目录下所有文件中的某字符串

比如,要将目录/modules下面所有文件中的zhangsan都修改成lisi,这样做:sed -i "s/zhangsan/lisi/g" `grep zhangsan -rl /modules`解释一下:-i 表示inplace edit,就地修改文件-r 表示搜索子目录-l 表示输出匹配的文件名这个命令组合很强大,要注意备份文件转自:http://blog.csdn.net...

2016-08-17 09:59:00 476

转载 linux双引号的转译

"\""转载于:https://www.cnblogs.com/hutudan/p/5752647.html

2016-08-09 11:42:00 169

转载 linux含有某字符串的文件

find .|xargs grep -ri "IBM" -l只列出文件名:grep -rn "Item" * -l pattern files转载于:https://www.cnblogs.com/hutudan/p/5713725.html

2016-07-28 10:20:00 75

转载 查找文件安装路径

例如: which python转载于:https://www.cnblogs.com/hutudan/p/5687527.html

2016-07-20 11:01:00 98

转载 linux向下向上查找

n向下查找转载于:https://www.cnblogs.com/hutudan/p/5620709.html

2016-06-27 17:00:00 2485

转载 world 替换+正则表达式命令

打开替换命令,点击“更多”,勾选上“通配符”,正则表达式才会起作用转载于:https://www.cnblogs.com/hutudan/p/5620632.html

2016-06-27 16:41:00 234

转载 linux数据库升级

转自:老左博客:http://www.laozuo.org/6145.html老左今天有在帮朋友的博客搬迁到另外一台VPS主机环境,其环境采用的是LLSMP架构的,原先的服务器采用的是LNMP网站环境,其博客程序是WORDPRESS。告知在导入数据库的时候出现"Unknown collation: 'utf8mb4_unicode_ci'"错误提示,这样的问题应该是WordPress...

2016-06-27 15:50:00 89

转载 linux查看服务器上次启动时间

最后一次启动时间:who -b转载于:https://www.cnblogs.com/hutudan/p/5619352.html

2016-06-27 10:07:00 1000

转载 Linux清空文件内容

Linux清空文件内容:true > ff.log转载于:https://www.cnblogs.com/hutudan/p/5611791.html

2016-06-23 18:13:00 92

转载 linux 数据库

查看数据库状态:service mysqld status启动数据库服务 service mysql start如果出现:Another MySQL daemon already running with the same unix socket修改mysql.sock文件的名字:mv /var/lib/mysql/mysql.sock /var/lib/mysql/mys...

2016-06-23 15:37:00 64

转载 linux关闭防火墙

1) 重启后生效开启: chkconfig iptables on关闭: chkconfig iptables off2) 即时生效,重启后失效开启: service iptables start关闭: service iptables stop转载于:https://www.cnblogs.com/hutudan/p/5557118.html...

2016-06-03 17:47:00 52

转载 统计目录下某类型文件的大小

find ./ -iname "*.wav" | xargs du -cb | grep "total"--总共大小find ./ -iname "*.xml" | xargs du -cb | sort -rn ------按大小排序转载于:https://www.cnblogs.com/hutudan/p/5549627.html...

2016-06-01 14:58:00 703

转载 统计指定后缀名的文件个数

find . -name '*.wav' | wc -l转载于:https://www.cnblogs.com/hutudan/p/5549536.html

2016-06-01 14:39:00 2894

转载 统计文件总个数

ls -l |grep "^-"|wc -l转载于:https://www.cnblogs.com/hutudan/p/5549512.html

2016-06-01 14:34:00 79

转载 循环遍历文件夹

filelist=`ls/home/work/file/`forfilein$filelistdo echo$filedone一定要切记filelist=后边的那个引号不是单引号,而是tab键上边的那个键,或者说是1左边的那个键。否则的话不起作用。唉,自己在上吃亏了好长时间。汗!转载于:https://www.cnblogs.com/hutuda...

2016-06-01 11:03:00 84

转载 linux相关命令

查看目录下每个文件夹的大小:du -h --max-depth=1转载于:https://www.cnblogs.com/hutudan/p/5548799.html

2016-06-01 10:42:00 61

转载 so near yet so far

Dear little yang So beautiful boy as you, the most beautiful boy is you who i ever saw, like a sun ,the shine into my heart, it makes my heart like flower garden, where is full of sunshin...

2016-05-31 13:33:00 105

转载 查看CPU是几核

命令1 (查看有几个CPU):cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l命令2 (每个CPU几核):cat /proc/cpuinfo |grep "cores"|uniq核数:两个结果相乘 *_*转载于:https://www.cnblogs.com/hutudan/p/5545586.html...

2016-05-31 13:25:00 66

转载 shell学习-while

1.shell while语句语法while conditiondo statementsdone2.shell while语句实例 #! /bin/sh 2 var1=1 3 while(($var1 < 10)) 4 do echo "weishenmewobuhui" 5 let var1++ 6 don...

2015-10-23 14:44:00 52

转载 shell学习

http://www.shellcn.net/shell/shell_for_in.html1.shell for in语句语法for 变量名 in 列表do ...done2.shell for in语句实例 1 #! /bin/sh 2 var1=$1 3 <<EOF21 for var1 in {1,2,3,4,5,6,7,8,9} ...

2015-10-23 14:15:00 45

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除