随笔分类 -  linux学习

上一页 1 2 3 4 5 6 7 下一页
linux vi 撤销重做于前进后退--转
摘要:在vi中按u可以撤销一次操作u 撤销上一步的操作Ctrl+r 恢复上一步被撤销的操作注意:如果你输入“u”两次,你的文本恢复原样,那应该是你的Vim被配置在Vi兼容模式了。重做如果你撤销得太多,你可以输入CTRL-R(redo)回退前一个命令。换句话说,它撤销一个撤销。要看执行的例子,输入CTRL-... 阅读全文
posted @ 2014-04-21 16:33 一天不进步,就是退步 阅读(32156) 评论(1) 推荐(0)
Common Linux log files name and usage--reference
摘要:If you spend lot of time in Linux environment, it is essential that you know where the log files are located, and what is contained in each and every ... 阅读全文
posted @ 2014-04-16 15:08 一天不进步,就是退步 阅读(354) 评论(0) 推荐(0)
How to allow/block PING on Linux server – IPTables rules for icmp---reference
摘要:BYADMIN-APRIL, 9TH 2014The ‘PING’, it’s a command-line tool to check a host is reachable or not. We can manage it by the help of ‘iptables’. The ‘ping’ is using ICMP to communicate. We can simply manage the ‘icmp : Internet Controlled Message Protocol’ from iptables.Required iptables switchesThe bel 阅读全文
posted @ 2014-04-11 08:47 一天不进步,就是退步 阅读(472) 评论(0) 推荐(0)
Linux下*.tar.bz2等文件如何解压--转
摘要:如果tar不支持j这个参数就先用bzip2 -d xxx.tar.bz2把它解压成.tar文件,然后再用tar xvf xxx.tar拆包。压缩解压linux下怎么解后缀名是gzip的文件?1.以.a为扩展名的文件:#tar xv file.a2.以.z为扩展名的文件:#uncompress file.Z3.以.gz为扩展名的文件:#gunzip file.gz4.以.bz2为扩展名的文件:#bunzip2 file.bz25.以.tar.Z为扩展名的文件:#tar xvZf file.tar.Z或 #compress -dc file.tar.Z | tar xvf -6.以.tar.gz/ 阅读全文
posted @ 2014-04-08 15:06 一天不进步,就是退步 阅读(2562) 评论(0) 推荐(0)
linux乱码问题
摘要:命令输入:export LANG=zh_CN.GBKgrep匹配时高亮先执行:export GREP_OPTIONS='--color=auto';后执行:grep 匹配内容 文件;描述:匹配部分将高亮显示,export GREP_OPTIONS='--color=auto' 这条命令添加到 ~/.... 阅读全文
posted @ 2014-04-04 15:55 一天不进步,就是退步 阅读(373) 评论(0) 推荐(0)
Linux内核--网络栈实现分析(二)--数据包的传递过程--转
摘要:转载地址http://blog.csdn.net/yming0221/article/details/7492423作者:闫明本文分析基于Linux Kernel 1.2.13注:标题中的”(上)“,”(下)“表示分析过程基于数据包的传递方向:”(上)“表示分析是从底层向上分析、”(下)“表示分析是从上向下分析。上篇:上一篇博文中我们从宏观上分析了Linux内核中网络栈的初始化过程,这里我们再从宏观上分析一下一个数据包在各网络层的传递的过程。我们知道网络的OSI模型和TCP/IP模型层次结构如下:上文中我们看到了网络栈的层次结构:我们就从最底层开始追溯一个数据包的传递流程。1、网络接口层* 硬 阅读全文
posted @ 2014-03-16 22:46 一天不进步,就是退步 阅读(3361) 评论(0) 推荐(0)
Linux内核--网络栈实现分析(一)--网络栈初始化--转
摘要:转载地址http://blog.csdn.net/yming0221/article/details/7488828作者:闫明本文分析基于内核Linux Kernel 1.2.13以后的系列博文将深入分析Linux内核的网络栈实现原理,这里看到曹桂平博士的分析后,也决定选择Linux内核1.2.13版本进行分析。原因如下:1.功能和网络栈层次已经非常清晰2.该版本与其后续版本的衔接性较好3.复杂度相对新的内核版本较小,复杂度低,更容易把握网络内核的实质4.该内核版本比较系统资料可以查询下面开始零基础分析Linux内核网络部分的初始化过程。经过系统加电后执行的bootsect.S,setup.S 阅读全文
posted @ 2014-03-16 22:42 一天不进步,就是退步 阅读(982) 评论(0) 推荐(0)
20+ Rsync command’s switches and common usages with examples – Unix/Linux--reference
摘要:reference:http://crybit.com/rsync-commands-switches/The “rsync” is a powerful command under the Linux environment. The rsync stands for Remote Sync. Normally rsync is used to transfer file from one server(source) to another server(destination). rsync has a lot of switches or option for managing the 阅读全文
posted @ 2014-03-15 22:08 一天不进步,就是退步 阅读(406) 评论(0) 推荐(0)
DDNS 的工作原理及其在 Linux 上的实现--转
摘要:http://www.ibm.com/developerworks/cn/linux/1305_wanghz_ddns/index.htmlDDNS (Dynamic DNS) 扩展了 DNS 将客户端 IP 与其域名进行静态映射的功能,它可以将同一域名实时地解析为不同的动态 IP,而不需要额外的人工干预。这在客户端 IP 地址不断发生变化的情况下,尤其是在无线网络和 DHCP 环境中,都有着极其重要的意义。本文通过分析 DDNS 的工作原理,简单演示了其在 Linux 网络协议栈的内核空间及用户空间创建 netlink 套接字、进行数据交换、并最终通过 nsupate 工具将更新消息发送给 阅读全文
posted @ 2014-03-12 23:22 一天不进步,就是退步 阅读(2617) 评论(0) 推荐(0)
探索 Linux 内存模型--转
摘要:引用:http://www.ibm.com/developerworks/cn/linux/l-memmod/index.html理解 Linux 使用的内存模型是从更大程度上掌握 Linux 设计和实现的第一步,因此本文将概述 Linux 内存模型和管理。Linux 使用的是单一整体式结构 (Monolithic),其中定义了一组原语或系统调用以实现操作系统的服务,例如在几个模块中以超级模式运行的进程管理、并发控制和内存管理服务。尽管出于兼容性考虑,Linux 依然将段控制单元模型 (segment control unit model)保持一种符号表示,但实际上已经很少使用这种模型了。与内 阅读全文
posted @ 2014-03-12 23:17 一天不进步,就是退步 阅读(361) 评论(0) 推荐(1)
Linux 进程管理剖析--转
摘要:地址:http://www.ibm.com/developerworks/cn/linux/l-linux-process-management/index.htmlLinux 是一种动态系统,能够适应不断变化的计算需求。Linux 计算需求的表现是以进程的通用抽象为中心的。进程可以是短期的(从命令行执行的一个命令),也可以是长期的(一种网络服务)。因此,对进程及其调度进行一般管理就显得极为重要。在用户空间,进程是由进程标识符(PID)表示的。从用户的角度来看,一个 PID 是一个数字值,可惟一标识一个进程。一个 PID 在进程的整个生命期间不会更改,但 PID 可以在进程销毁后被重新使用,所 阅读全文
posted @ 2014-03-12 23:09 一天不进步,就是退步 阅读(571) 评论(0) 推荐(0)
10+ commonly using find command switches with example Unix/Linux
摘要:http://crybit.com/find-command-usage-with-example-unixlinux/find command is one of the best search tool under UNIX/LINUX. Here I’m discussing some common switches of find command with detailed example. Like the name find, the “find” command is using for search files under a directory hierarchy. One 阅读全文
posted @ 2014-03-12 09:28 一天不进步,就是退步 阅读(320) 评论(0) 推荐(0)
Linux 2.4调度系统分析--转
摘要:http://www.ibm.com/developerworks/cn/linux/kernel/l-k24sch/index.html杨沙洲(pubb@163.net)国防科技大学计算机学院简介:本文详尽地分析了Linux 2.4内核中调度系统的工作原理,特别是i386体系结构下SMP系统的调度表现。通过对2.4调度系统实现原理及其细节的分析,文章在文末指出了2.4调度系统在功能上、实时性上以及多处理机系统表现上存在的不足,为后继的2.6系统的分析作铺垫。一. 前言在开源操作系统中,Linux的发展最为显著,到目前为止,它在低端服务器市场已经占据了相当大的份额。从最新的Linux 2.6系 阅读全文
posted @ 2014-03-10 19:28 一天不进步,就是退步 阅读(2329) 评论(0) 推荐(0)
Common Linux log files name and usage--reference
摘要:reference:http://www.coolcoder.in/2013/12/common-linux-log-files-name-and-usage.htmlif you spend lot of time in Linux environment, it is essential that you know where the log files are located, and what is contained in each and every log file.When your system is running smoothly, take some time to l 阅读全文
posted @ 2014-03-10 09:14 一天不进步,就是退步 阅读(317) 评论(0) 推荐(0)
15+ tar command usages with examples – Unix/Linux--reference
摘要:reference :http://crybit.com/tar-command-usages-with-examples/The ‘tar’ saves many files together into a single tape or disk archive, and can restore individual files from the archive. It is very useful in such conditions like when we want to send a lot of files via email, transfer files from one ma 阅读全文
posted @ 2014-03-10 08:53 一天不进步,就是退步 阅读(331) 评论(0) 推荐(0)
DNS服务器全面解析--转
摘要:引用地址:http://pangge.blog.51cto.com/6013757/1273087基础认知篇DNS服务的概述DNS是Domain Name System 的缩写,即域名系统。DNS服务主要功能是将域名转换为相应的IP地址,提供DNS服务的系统就是DNS服务器。形如它能够把www.baidu.com这样的域名转换为61.135.169.125这样的IP地址;没有DNS,浏览baidu.com这个网站时,就必须用61.135.169.125这么难记的数字来访问。DNS服务器可以分为3种,即主域名服务器(Master DNS)、辅助域名服务器(Slave DNS)、缓存服务器。uMa 阅读全文
posted @ 2014-03-09 22:29 一天不进步,就是退步 阅读(18904) 评论(1) 推荐(1)
Anatomy of the Linux kernel--转
摘要:ref:http://www.ibm.com/developerworks/linux/library/l-linux-kernel/?S_TACT=105AGX52&S_CMP=cn-a-lGiven that the goal of this article is to introduce you to the Linux kernel and explore its architecture and major components, let's start with a short tour of Linux kernel history, then look at t 阅读全文
posted @ 2014-03-08 08:18 一天不进步,就是退步 阅读(491) 评论(0) 推荐(0)
linux文件操作命令--转
摘要:引用地址:http://bbsunchen.iteye.com/blog/1010993想自己一开始处理文件的时候,看文件有多少行,都要写个perl脚本,好不麻烦啊...以此文纪念自己傻逼的科研生活linux 文本操作命令1. cat 查看文件中的内容, -n 查看时为每一行加编号;-b 和-n类似,只不过对于空白行不编号;2. head file 显示文件头的内容,默认显示10行,加 -n 可以显示指定的行数;3. tail file 显示文件尾的内容,默认显示10行,加 -n 可以显示指定的行数;tail -n 20 file 显示文件后20行;tail -f /var/log/messa 阅读全文
posted @ 2014-03-03 14:46 一天不进步,就是退步 阅读(565) 评论(0) 推荐(0)
Linux / Unix Command: bunzip2--reference
摘要:http://linux.about.com/library/cmd/blcmdl1_bunzip2.htmNAMEbzip2, bunzip2 - a block-sorting file compressor, v1.0.2bzcat - decompresses files to stdoutbzip2recover - recovers data from damaged bzip2 filesSYNOPSISbzip2[-cdfkqstvzVL123456789] [filenames ...]bunzip2[-fkvsVL] [filenames ...]bzcat[-s] [fi 阅读全文
posted @ 2014-02-28 11:48 一天不进步,就是退步 阅读(371) 评论(0) 推荐(0)
centos复制到另外一台电脑连不上网
摘要:http://snow-berry.iteye.com/blog/1991754从一台电脑virtual box克隆出来的centos.vdi复制到另外一台电脑,找不到网卡,提示Device eth0 does not seem to be present故障现象:service network restartShutting down loopback insterface: [ OK ]Bringing up loopback insterface: [ OK ]Bringing up interface eth0: Device eth0 does not seem to be pres 阅读全文
posted @ 2014-02-24 16:51 一天不进步,就是退步 阅读(661) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 下一页