最新 分享

Publish our news and thoughts with all.

Popular Articles

Recent Stories

How to install FFmpeg on Ubuntu 14.04

FFmpeg has been removed from Ubuntu 14.04 and was replaced by Libav. This decision has been reversed so that FFmpeg is available now in Ubuntu 15.04 again, but there is still no official package for 14.04. In this tutorial, I will show you how to install FFmpeg from mc3man ppa. Add the mc3man ppa:

ubuntu 查看当前目录下文件夹大小

按照目录大小排序,以M为单位,不显示子目录

du -h --block-size=m --max-depth=1 |sort -n

在Ubuntu 14.04使用cron实现作业自动化

Cron是Linux系统中最有用的工具之一,cron作业是在指定时间到来时被调度执行的作业。 最常见的自动化系统管理和自动维护工作,比如每天发出的按计划完成了备份的通知,或者是按计划定时清理/tmp/目录的通知。还有很多Web应用程序也需要执行定时作业。 本文讲述了Cron的工作机制,你可以用cron实现调度作业作业。Cron本身是一个守护进程,在后台运行,通过配置文件“crontab”来根据时间调度指定的作业执行。

ubuntu复制某个文件夹下所有文件到另一个文件夹

cp -a [dir1]/. [dir2]

如果没有加“/.” 则变成连同把dir1这个文件夹一起复制到dir2下。

Vim全选某个文件的所有文本

ggVG

解释是: gg 让光标移到首行,在vim才有效,vi中无效 V   是进入Visual(可视)模式 G  光标移到最后一行 选中内容以后就可以其他的操作了,比如: d  删除选中内容 y  复制选中内容到0号寄存器 "+y  复制选中内容到+寄存器,也就是系统的剪贴板,供其他程序用 全部删除:按esc后,然后dG 全部复制:按esc后,然后ggyG 全选高亮显示:按esc后,然后ggvG或者ggVG

Set MySQL Connection TimeOut

Sometimes you find a condition where your database connection (MySQL) is time out because of your queries are spending too much time. This is a hint on how you increase your MySQL time out configuration.

virtualhost setting

<VirtualHost *:80>

     ServerAdmin This email address is being protected from spambots. You need JavaScript enabled to view it.

     ServerName iplantoo.com

Ubuntu(Linux) 下 unzip 命令使用详解

1.功能作用:解压缩zip文件

2.位置:/usr/bin/unzip

3.格式用法:unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]