linux man使用方法 和centos安装中文man包 --转
摘要:http://blog.chinaunix.net/uid-25100840-id-302308.html这两天学习中的异步通知,其中有一个fcntl()函数,就是找不到,很气愤,在网上搜,也没有好的解决办法,最终,一个网友给我做了解答:是因为fcntl()是标准库,在内核源码中是找不到的,只能在系统中查找到,你可以用这个命令来实现:man fcntl所以,我才重新看看man的用法,发现确实有这么多的用处,咳,整理如下:什么是man手册首先,man是manual的简称,中文说法可以是手册。在Linux世界中,许多新手请教某条命令的用法时, 好多不耐心的老手通常会用一条命令来回答这位无助的新手,
阅读全文
posted @
2014-02-23 23:00
一天不进步,就是退步
阅读(942)
推荐(0)
centos6.4使用man查找命令时,报错No manual entry for xxxx
摘要:前提:安装man的命令yum -y install man使用man报错[root@localhost objs]# man fcntlNo manual entry for fcntl[root@localhost objs]# cd [root@localhost ~]# man fcntlNo manual entry for fcntl[root@localhost ~]# which man/usr/bin/man解决报错的方法:yum install man-pages此时就ok了。
阅读全文
posted @
2014-02-23 22:59
一天不进步,就是退步
阅读(5141)
推荐(2)
18 Command Line Tools to Monitor Linux Performance
摘要:ByRavi SaiveUnder:Linux Commands,Monitoring ToolsOn:December 26, 2013http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/It’s really very tough job for everySystemorNetworkadministrator to monitor and debugLinux System Performanceproblems every day. After being aLinux Administrato
阅读全文
posted @
2014-02-17 11:47
一天不进步,就是退步
阅读(842)
推荐(0)
10 Linux DIG Command Examples for DNS Lookup--reference
摘要:byRAMESH NATARAJANonFEBRUARY 29, 2012http://www.thegeekstuff.com/2012/02/dig-command-examples/Dig stands for domain information groper.Using dig command you can query DNS name servers for your DNS lookup related tasks. This article explains 10 examples on how to use dig command.1. Simple dig Command
阅读全文
posted @
2014-02-16 21:06
一天不进步,就是退步
阅读(407)
推荐(0)
如何看linux是32位还是64位--转
摘要:地址:http://hi.baidu.com/hehongrong/item/20c296bcf8d834432aebe3b2如何看linux是32位还是64位如何看linux是32位还是64位查看linux是多少位的几位方法:查看linux机器是32位还是64位的方法:方法一:file /sbin/init 或者 file /bin/ls结果如下:/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18
阅读全文
posted @
2014-02-14 11:35
一天不进步,就是退步
阅读(391)
推荐(0)
Linux getopt()函数 getopt_long()函数---转
摘要:http://hi.baidu.com/scoundrelgg/item/d4083f8412eea05d26ebd97fLinux getopt()函数 getopt_long()函数get_opt()函数:函数原型::#include int getopt(int argc, char * const argv[], const char *optstring);extern char *optarg;extern int optind, opterr, optopt;用法见右边栏1.参数说明:optstring:选项字母组成的字串。如果该字串里的任一字符后面有冒号,那么这个选项就要求有选
阅读全文
posted @
2014-02-11 15:43
一天不进步,就是退步
阅读(570)
推荐(0)
Linux下Makefile的automake生成全攻略--转
摘要:http://www.yesky.com/120/1865620.shtml作为Linux下的程序开发人员,大家一定都遇到过Makefile,用make命令来编译自己写的程序确实是很方便。一般情况下,大家都是手工写一个简单Makefile,如果要想写出一个符合自由软件惯例的Makefile就不那么容易了。 在本文中,将给大家介绍如何使用autoconf和automake两个工具来帮助我们自动地生成符合自由软件惯例的Makefile,这样就可以象常见的GNU程序一样,只要使用“./configure”,“make”,“make instal”就可以把程序安装到Linux系统中去了。这将特别适合.
阅读全文
posted @
2014-02-10 15:18
一天不进步,就是退步
阅读(291)
推荐(0)
Find command usage in Linux with excellent examples--reference
摘要:http://www.coolcoder.in/2014/02/find-command-usage-in-linux-with.htmlfind searchesthe directory tree rooted at each given file name by evaluating thegiven expression from left to right, according to the rules of precedence, until the outcome is known (the lefthand side is false forandoperations, tru
阅读全文
posted @
2014-02-10 09:31
一天不进步,就是退步
阅读(820)
推荐(0)
iptables详解--转
摘要:出处:http://yijiu.blog.51cto.com/433846/1356254iptables详解基本概念:1.防火墙工作在主机边缘:对于进出本网络或者本主机的数据报文,根据事先设定好的检查规则对其检查,对形迹可疑的报文一律按照事先定义好的处理机制做出相应处理对linux而言tcp/ip协议栈是在内核当中,意味着报文的处理是在内核中处理的,也就是说防火墙必须在工作在内核中,防火墙必须在内核中完成tcp/ip报文所流进的位置,用规则去检查,才真正能工作起来。iptables用来衡量tcp/ip报文的属性:源ip、目标ip、源端口、目标端口;tcp标志位: syn、syn+ack、a.
阅读全文
posted @
2014-02-08 17:42
一天不进步,就是退步
阅读(152558)
推荐(5)
Linux服务器性能评估与优化--转
摘要:http://www.itlearner.com/article/4553一、影响Linux服务器性能的因素1.操作系统级ØCPUØ内存Ø磁盘I/O带宽Ø网络I/O带宽2.程序应用级二、系统性能评估标准影响性能因素评判标准好坏糟糕CPUuser% + sys%=90%内存Swap In(si)=0Swap Out(so)=0Per CPU with 10 page/sMore Swap In & Swap Out磁盘iowait % = 50%其中:%user:表示CPU处在用户模式下的时间百分比。%sys:表示CPU处在系统模式下的时间百分比。
阅读全文
posted @
2014-02-08 09:08
一天不进步,就是退步
阅读(486)
推荐(0)
Basic Data Structures and Algorithms in the Linux Kernel--reference
摘要:http://luisbg.blogalia.com/historias/74062Thanks toVijay D'Silva'sbrilliant answerincstheory.stackexchange.comI have been reading some of the famous data structures and algorithms used in the Linux Kernel. And so can you.Links based onlinux 2.6:Linked lists,doubly linked lists,lock-free link
阅读全文
posted @
2014-01-26 17:20
一天不进步,就是退步
阅读(423)
推荐(0)
awk - Unix, Linux Command---reference
摘要:http://www.tutorialspoint.com/unix_commands/awk.htmNAMEgawk - pattern scanning and processing languageSYNOPSISgawk[POSIXorGNUstyle options ]-fprogram-file[--] file ...gawk[POSIXorGNUstyle options ] [--]program-textfile ...pgawk[POSIXorGNUstyle options ]-fprogram-file[--] file ...pgawk[POSIXorGNUstyl
阅读全文
posted @
2014-01-23 16:48
一天不进步,就是退步
阅读(2040)
推荐(0)
Learning Linux Commands: awk--reference
摘要:http://how-to.linuxcareer.com/learning-linux-commands-awk1.IntroductionIn this case, the title might be a little misleading. And that is because awk is more than a command, it's a programming language in its own right. You can write awk scripts for complex operations or you can use awk from the
阅读全文
posted @
2014-01-23 16:46
一天不进步,就是退步
阅读(413)
推荐(0)
Sed - An Introduction and Tutorial by Bruce Barnett
摘要:http://www.grymoire.com/unix/sed.htmlQuick Links - NEWSed Commands: label# comment{....} Block=- print line numbera \- Appendb label- Branchc \ - changedandD- DeletegandG- GethandH- Holdi \- Insertl- LooknandN- NextpandP- Printq- Quitr filename- Read Files/..../..../- Substitutet label- Testw filena
阅读全文
posted @
2014-01-23 16:40
一天不进步,就是退步
阅读(456)
推荐(0)
Handling of asynchronous events---reference
摘要:http://www.win.tue.nl/~aeb/linux/lk/lk-12.html12.Handling of asynchronous eventsOne wants to be notified of various events, like data that has become available, files that have changed, and signals that have been raised. FreeBSD has the nicekqueueAPI. Let us discuss the Unix/Linux situation.It is ea
阅读全文
posted @
2014-01-23 11:59
一天不进步,就是退步
阅读(371)
推荐(0)
NMAP - A Stealth Port Scanner--reference
摘要:http://nmap.org/bennieston-tutorial/实例:nmap -sP 192.168.21.*Contents1IntroductionNmap is a free, open-source port scanner available for both UNIX and Windows. It has an optional graphical front-end, NmapFE, and supports a wide variety of scan types, each one with different benefits and drawbacks.Thi
阅读全文
posted @
2014-01-22 19:59
一天不进步,就是退步
阅读(1389)
推荐(0)
Getting over the dangers of rm command in Linux---reference
摘要:reference:http://www.coolcoder.in/2014/01/getting-over-dangers-of-rm-command-in.htmlWhen we want to delete a directory and everything in it, we normally usually use rm -rf. However, this is a bad habit to get into. If you make a mistake, you could delete your entire partition.For a start, if you dro
阅读全文
posted @
2014-01-21 19:07
一天不进步,就是退步
阅读(282)
推荐(0)
Linux定时增量更新文件--转
摘要:http://my.oschina.net/immk/blog/193926动机与需求:现在有两台服务器A和B,由于A的存储随时会挂(某些原因),所以需要B机器上有A的备份,并且能够与A同步更新一、crontab定时任务发现了crontab这个东西简单实践了一下,把使用的过程写到下面:首先是编辑一个文件,这个文件在一个很不好找的位置,但crontab提供了一个命令可以直接用vi打开这个文件crontab -e文件打开以后要在文件末尾加上一行:* * * * * mkdir /usr/local/test >/home/log.txt 2>&1总共分为三个部分,首先是5个星星
阅读全文
posted @
2014-01-20 08:58
一天不进步,就是退步
阅读(2954)
推荐(0)
Boost application performance using asynchronous I/O-ref
摘要:http://www.ibm.com/developerworks/linux/library/l-async/?S_TACT=105AGX52&S_CMP=cn-a-lIntroduction to AIOLinux asynchronous I/O is a relatively recent addition to the Linux kernel. It's a standard feature of the 2.6 kernel, but you can find patches for 2.4. The basic idea behind AIO is to all
阅读全文
posted @
2014-01-16 11:56
一天不进步,就是退步
阅读(476)
推荐(0)
Linux 线程实现机制分析--转
摘要:http://www.ibm.com/developerworks/cn/linux/kernel/l-thread/一.基础知识:线程和进程按照教科书上的定义,进程是资源管理的最小单位,线程是程序执行的最小单位。在操作系统设计上,从进程演化出线程,最主要的目的就是更好的支持SMP以及减小(进程/线程)上下文切换开销。无论按照怎样的分法,一个进程至少需要一个线程作为它的指令执行体,进程管理着资源(比如cpu、内存、文件等等),而将线程分配到某个cpu上执行。一个进程当然可以拥有多个线程,此时,如果进程运行在SMP机器上,它就可以同时使用多个cpu来执行各个线程,达到最大程度的并行,以提高效率;
阅读全文
posted @
2014-01-16 11:53
一天不进步,就是退步
阅读(751)
推荐(0)