小技巧集
Tuesday, June 24th, 2008 Posted in Linux | No Comments »tar解压一个包到指定目录 (注意:目标目录一定要事先存在) tar -xvf file.tar -C destination-directory 查看本机IP地址: ifconfig | sed -ne 's/ *inet addr:\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\) *B.*/Your IP is:\1/p' 制作ISO文件 mkisofs -r -J -V widebright -o widebright.iso /widebright mysqldump时只导出数据库结构,不导出数据 mysql -uuser -ppassword -d databases > file ubuntu中添加右键菜单(terminal) sudo apt-get install nautilus-open-terminal mysql中显示正在进行的查询进程 show processlist; 创建包含所有图片的HTML页面 for i in find . -type f \( -name ...