
linux
文章平均质量分 82
sxlwzl
这个作者很懒,什么都没留下…
展开
-
查找.gz文件的某些行匹配情况
查找一个压缩的.gz原创 2014-05-14 10:56:26 · 4823 阅读 · 0 评论 -
linux 无root权限安装tmux
zz: http://blog.sina.com.cn/s/blog_403aa80a0101h7y9.html转载 2014-05-22 13:57:13 · 3016 阅读 · 0 评论 -
tee命令使用
zz : http://codingstandards.iteye.com/blog/833695转载 2014-05-22 17:01:12 · 852 阅读 · 0 评论 -
gcc编译多个文件与makefile应用
zz : http://huobumingbai.blog.51cto.com/1196746/308526(本文主要以gcc为演示,如果是C++程序直接将给 gcc改为g++即可)1. gcc与g++编译流程:1) 编译流程:2) 预处理:生成.i的预处理文件。Ø 只激活预处理转载 2014-06-01 18:48:02 · 2461 阅读 · 0 评论 -
自动补完不算什么,一键直达目录才是终极神器(autojump)!
zz: http://blog.jobbole.com/73611/转载 2014-07-17 12:50:03 · 869 阅读 · 0 评论 -
openoffice 安装和使用
1,redhat2, http://www.openoffice.org/zh-cn/ download tar.gz here原创 2014-07-03 10:41:06 · 1939 阅读 · 0 评论 -
vimshell的工具
http://www.vim.org/scripts/script.php?script_id=2771.安装方法 下载conque_1.1.vba,用vim打开后,执行:so %,会自动执行安装.五.使用方法 一共四个命令: ConqueTerm : 在当前的窗口打开 ConqueTermSplit :横向分转载 2014-06-01 22:32:08 · 746 阅读 · 0 评论 -
grep快速查找某一类文件的技巧
grep -Pnr "\d{3}" `find -name "*.txt"`原创 2014-07-04 17:56:02 · 3574 阅读 · 0 评论 -
tcl介绍
1, set值set x 10set y 100set z [expr $x+$y]puts $z原创 2014-07-10 20:05:14 · 667 阅读 · 0 评论 -
Linux下find一次查找多个指定类型文件,指定文件或者排除某类文件,在 GREP 中匹配多个关键
zz : http://blog.sina.com.cn/s/blog_62e7fe670101dg9d.htmlLinux下find一次查找多个指定文件或者排除某类文件,在 GREP 中匹配多个关键字的方法(1)Linux下find一次查找多个指定文件:查找a.html和b.htmlfind . -name "a.html" -name "b.html"转载 2014-05-14 11:52:24 · 1024 阅读 · 0 评论 -
shell的if/else框架
#!/bin/bash#to run a bash, ./filename.shecho "start bash"log_file="hello.log"if [ -f "$log_file" ] ;then echo "file exists"else echo "file not exists"fiecho "end bash"exit原创 2014-05-19 15:14:17 · 780 阅读 · 0 评论 -
shell学习5:变量,判断,重复动作
1,unset取消变量的赋值2,sleep原创 2014-05-19 20:53:03 · 510 阅读 · 0 评论 -
Linux makefile 教程 非常详细,且易懂
基本掌握了 make 的用法,能在Linux系统上编程。 环境: Linux系统,或者有一台Linux服务器,通过终端连接。一句话:有Linux编译环境。 准备: 准备三个文件:file1.c, file2.c, file2.h转载 2014-04-10 14:02:24 · 520 阅读 · 0 评论 -
默认shell的设置
zz : http://zhidao.baidu.com/link?url=opo2uCNHiwFtgg7oc0kOctozeZ8ijzDnIPkSuX3DIGdLIClQfxkaGAmEel0nLF7iV_ZlsnBTraIbbddcs3v1Iq如何让Linux终端默认的shell就是csh?我现在的shell默认是/bin/bashwhich csh 找转载 2014-05-12 14:03:40 · 2100 阅读 · 0 评论 -
shell学习1:入门
1,echoecho hello worldecho -n helloecho wor原创 2014-05-19 20:16:31 · 489 阅读 · 0 评论 -
shell学习3:文本处理工具
1,sortsort -n input.log -output.log原创 2014-05-19 20:41:06 · 498 阅读 · 0 评论 -
shell学习4:管道的神奇魔力
1,|ls -l | grep "^d"原创 2014-05-19 20:44:21 · 542 阅读 · 0 评论 -
shell学习2:查找和替换
1,grep常用的参数为wrin基本命令:grep -wrin "Starting" ./*zgrep原创 2014-05-19 20:34:07 · 666 阅读 · 0 评论 -
shell学习7:产生脚本
利用各种参数以及if,case,while编写shell脚本原创 2014-05-19 21:05:17 · 492 阅读 · 0 评论 -
shell学习8:awk的惊人表现
ls -l | grep "^d" | awk '{print $1}'打印该目录下d原创 2014-05-19 21:07:50 · 519 阅读 · 0 评论 -
shell学习9:文件处理
1,lsls -lSh2,touch原创 2014-05-19 21:12:28 · 499 阅读 · 0 评论 -
linux上terminal快捷键
zz : http://www.myexception.cn/linux-unix/730767.htmlLinux命令行编辑快捷键:history 显示命令历史列表↑(Ctrl+p) 显示上一条命令↓(Ctrl+n) 显示下一条命令!num 执行命令历史列表的第num条命令!! 执行上一条命令!?string? 执行含有string字符串的最新命令Ctrl转载 2014-08-21 08:32:18 · 528 阅读 · 0 评论 -
cvs 使用方法
1,checkout (n'b)vt cvs co file原创 2014-07-23 10:49:47 · 716 阅读 · 0 评论 -
Bash与Csh中的变量
zz:http://bdxnote.blog.163.com/blog/static/844423520071099851703/===============================BASH中的变量============================1、定义:直接使用"变量名=值"的格式来定义,不区分字符串与数字值,统统认为是一个串. 如: UserName=bd转载 2014-12-09 12:45:24 · 6596 阅读 · 0 评论 -
免费开源的diff软件“meld”-替代beyond compare的神器
0, 使用技巧命令行直接对比文件 meld dir1 dir2 &1,安装 mld, 可以选择windows, linux, macos系统,都有提供安装。ubuntu 中安装: sudo apt-get install meld http://meldmerge.org/http://sourceforge.net/projects/meld-installer/原创 2015-01-18 19:22:34 · 8303 阅读 · 0 评论 -
linux桌面环境gnome2.x /3.x ,kde,xfce,lxde 使用比较
zz: http://www.educity.cn/linux/659599.html点评:Linus Torvalds大神前几日在 Google+上表示,GNOME 3“无可容忍的凌乱”,改投Xfce桌面环境。下面就GNOME, KDE, XFCE和 LXDE略作比较。最终归结起来,没有好坏,适合自己的才是最棒的,用户体验最佳,就是成熟成功的产品GNOME 2.x转载 2015-01-18 19:47:20 · 1342 阅读 · 0 评论 -
How to Install the Gnome Classic Desktop(Gnome2.x) in Ubuntu 14.04
sudo apt-get update; sudo apt-get install gnome-session-flashbackThe backend is different: Compiz uses a 3D compositor to display the windows. Whereas Metacity displays the windows in 2D. So if you have a low end graphics card and/or want to save energ转载 2015-01-18 19:49:20 · 1132 阅读 · 0 评论 -
gnuplot绘图工具的使用
1, gnuplot的各种参摄设置2, gnuplot能画那些图3, gnuplot使用的命令4, gnuplot的输出格式原创 2015-01-19 19:26:53 · 1016 阅读 · 0 评论 -
openwrt 配置过程
openwrt的基本设置原创 2015-03-21 11:20:25 · 1835 阅读 · 0 评论 -
tmux使用教程
1,三个概念session,window,panel2,session的操作创建并指定session名字tmux new -s session_name临时退出sessionCtrl+b d列出sessiontmux ls进入已存在的sessiontmux a -t session_name删除指定sessiontmux kill-session -t原创 2015-09-11 07:50:22 · 542 阅读 · 0 评论 -
linux下的定时操作
参考:http://blog.youkuaiyun.com/hi_kevin/article/details/8983746原创 2014-05-14 19:16:15 · 548 阅读 · 0 评论 -
ubuntu 安装完后需要做的事情
1, 配置root密码sudo passwd2,配置源sudo cp /etc/apt/sources.list /etc/apt/sources.list_backupsudo apt-get update3,固定ip地址ifconfig4,安装ssh serversudo apt-get install openssh-server原创 2016-02-28 22:34:50 · 489 阅读 · 0 评论 -
samba 服务使用
1, samba是什么?类似的windows共享的软件,比ftp的有点是可远程修改文件2,如何实现?apt-get install sambamkdir /samba/mkdir /samba/sharemkdir /samba/user1groupadd useruseradd -g user user1useradd user2usermo原创 2014-11-30 15:08:37 · 641 阅读 · 0 评论 -
perlrun的使用
1,需要使用perl的功能,但是不想写脚本,脚本又很多相似的头什么的,可以直接使用perlrun,即perl的命令行模式2,使用场景,将既定关键字的pid kill掉ps aux | egrep "sleep|run"| perl -p "s/^\w+\s+(\d+)\s+).*/ kill \$1/" | tee -a kill注意:1,用到$1这种字符的时候,可能与系统原创 2014-11-30 18:40:55 · 1056 阅读 · 0 评论 -
linux 大文件分割 split
1,split -b 100m split 参数:-a, --suffix-length=N 指定输出文件名的后缀,默认为2个-b, --bytes=SIZE 指定输出文件的字节数-C, --line-bytes=SIZE 每一输出档中,单行的最大 byte 数-d, --numeric-suffixes 使用数字代替字原创 2014-10-24 15:01:10 · 700 阅读 · 0 评论 -
Linux开机流程详解
zz: http://www.2cto.com/os/201410/344505.html对于任何系统, 开机不仅仅是接通电源这么简单的事情, 在这短短的几秒或几十秒内将会发生许多事情, 了解这个完整的流程将是解决任何开机问题或提高开机速度的前提. 接下来, 我们就详细了解一下Linux的开机流程:1. 加载 BIOS 的硬件信息并进行自我测试,并依据取得第一个可开机的装置;2.转载 2014-10-24 15:13:38 · 703 阅读 · 0 评论 -
grep -A -B 查找目标的前后
grep能找出带有关键字的行,但是工作中有时需要找出该行前后的行,下面是解释 1. grep -A1 keyword filename 找出filename中带有keyword的行,输出中除显示该行外,还显示之后的一行(After 1) 2. grep -B1 keyword filename 找出filename中带有keyword的行,输出中除显示该行外,还显示之前转载 2014-10-14 11:18:47 · 1583 阅读 · 0 评论 -
sed 使用
1,基本结构sed [option] {}原创 2014-10-31 17:33:14 · 486 阅读 · 0 评论 -
KVM虚拟机网络配置 Bridge方式
zz: http://www.linuxidc.com/Linux/2012-05/61445p2.htm摘要:KVM虚拟机网络配置的两种方式:NAT方式和Bridge方式。Bridge方式的配置原理和步骤。Bridge方式适用于服务器主机的虚拟化。问题客户机安装完成后,需要为其设置网络接口,以便和主机网络,客户机之间的网络通信。事实上,如果要在安装时使用网络通信,需要提前设置转载 2014-11-05 23:17:16 · 1628 阅读 · 0 评论 -
linux mount ntfs file system
zz: http://gzmaster.blog.51cto.com/299556/61160/ntfs-3g code : 1. 什么是NTFS-3G NTFS-3G是一个开源软件,支持在Linux, FreeBSD, Mac OS X, NetBSD, Haiku操作系统下读写NTFS格式的分区。它能快速且安全的操作Windows XP, Windows Server 2转载 2014-11-05 21:06:50 · 610 阅读 · 0 评论