-
Find command usage in Linux with excellent examples--referen
所属栏目:[Linux] 日期:2021-01-24 热度:79
find searches ?the directory tree rooted at each given file name by evaluating? the ?given expression from left to right,according to the rules of prece dence,until the outcome is known (the left ?hand side is false for? and ?operations,tr[详细]
-
Linux新手入门:通过chmod改变文件权限--转
所属栏目:[Linux] 日期:2021-01-24 热度:78
前面介绍过在,在中我们介绍了Linux文件的三种身份和四种权限,三种身份分别为: u:文件的拥有者 g:文件所属的群组 o:其他用户 对于每个身份,又有四种权限,分别为: r:读取文件的权限(read) w:写入文件的权限(write) x:执行的权限(execute) s[详细]
-
rsync+inotify实现实时同步案例--转
所属栏目:[Linux] 日期:2021-01-24 热度:110
转自:http://chocolee.blog.51cto.com/8158455/1400596 随着应用系统规模的不断扩大,对数据的安全性和可靠性也提出的更好的要求, rsync 在高端业务系统中也逐渐暴露出了很多不足,首先, rsync 同步数据时,需要扫描所有文件后进行比对,进行差量传输。如[详细]
-
Fast portable non-blocking network programming with Libevent
所属栏目:[Linux] 日期:2021-01-24 热度:98
h2 id="_learning_libevent"Learning Libevent div class="sectionbody" div class="ulist" These documents are Copyright (c) 2009-2010 by Nick Mathewson,and are made available under the Creative Commons Attribution-Noncommercial-Share Alike lic[详细]
-
Linux下*.tar.bz2等文件如何解压--转
所属栏目:[Linux] 日期:2021-01-24 热度:57
如果tar不支持j这个参数就先用?bzip2 -d xxx.tar.bz2?把它解压成.tar文件,然后再用?tar xvf xxx.tar?拆包。压缩解压?linux下怎么解后缀名是gzip的文件??1.以.a为扩展名的文件:?#tar xv file.a?2.以.z为扩展名的文件:?#uncompress file.Z?3.以.gz为扩展名的[详细]
-
How to allow/block PING on Linux server – IPTables rules fo
所属栏目:[Linux] 日期:2021-01-24 热度:186
div class="post-content-left" div class="random-posts" ?-?APRIL,9TH 2014 The ‘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. W[详细]
-
15+ tar command usages with examples – Unix/Linux--referenc
所属栏目:[Linux] 日期:2021-01-24 热度:139
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 wa[详细]
-
Linux 进程管理剖析--转
所属栏目:[Linux] 日期:2021-01-24 热度:126
地址:http://www.ibm.com/developerworks/cn/linux/l-linux-process-management/index.html Linux 是一种动态系统,能够适应不断变化的计算需求。Linux 计算需求的表现是以 进程 ?的通用抽象为中心的。进程可以是短期的(从命令行执行的一个命令),也可以[详细]
-
20+ Rsync command’s switches and common usages with example
所属栏目:[Linux] 日期:2021-01-24 热度:60
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(dest[详细]
-
探索 Linux 内存模型--转
所属栏目:[Linux] 日期:2021-01-24 热度:193
引用:http://www.ibm.com/developerworks/cn/linux/l-memmod/index.html 理解 Linux 使用的内存模型是从更大程度上掌握 Linux 设计和实现的第一步,因此本文将概述 Linux 内存模型和管理。 Linux 使用的是单一整体式结构 (Monolithic),其中定义了一组原语[详细]
-
DDNS 的工作原理及其在 Linux 上的实现--转
所属栏目:[Linux] 日期:2021-01-24 热度:155
http://www.ibm.com/developerworks/cn/linux/1305_wanghz_ddns/index.html DDNS (Dynamic DNS) 扩展了 DNS 将客户端 IP 与其域名进行静态映射的功能,它可以将同一域名实时地解析为不同的动态 IP,而不需要额外的人工干预。这在客户端 IP 地址不断发生变化[详细]
-
Linux内核--网络栈实现分析(一)--网络栈初始化--转
所属栏目:[Linux] 日期:2021-01-24 热度:53
转载地址? 作者:闫明 ?本文分析基于内核Linux Kernel 1.2.13 以后的系列博文将深入分析Linux内核的网络栈实现原理,这里看到曹桂平博士的分析后,也决定选择Linux内核1.2.13版本进行分析。 原因如下: 1.功能和网络栈层次已经非常清晰 2.该版本与其后续版[详细]
-
Common Linux log files name and usage--reference
所属栏目:[Linux] 日期:2021-01-24 热度:107
div id="post-body-7256318887016413630" class="post-single-body post-body" div dir="ltr"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 log[详细]
-
linux vi 撤销重做于前进后退--转
所属栏目:[Linux] 日期:2021-01-24 热度:81
在vi中按u可以撤销一次操作 u?? 撤销上一步的操作Ctrl+r 恢复上一步被撤销的操作 注意: 如果你输入“u”两次,你的文本恢复原样,那应该是你的Vim被配置在Vi兼容模式了。重做如果你撤销得太多,你可以输入CTRL-R(redo)回退前一个命令。换句话说,它撤销一[详细]
-
Linux内核--网络栈实现分析(二)--数据包的传递过程--转
所属栏目:[Linux] 日期:2021-01-24 热度:170
转载地址 作者:闫明 本文分析基于Linux Kernel 1.2.13 注:标题中的”(上)“,”(下)“表示分析过程基于数据包的传递方向:”(上)“表示分析是从底层向上分析、”(下)“表示分析是从上向下分析。 ?上篇: 上一篇博文中我们从宏观上分析了Linux内核[详细]
-
linux乱码问题
所属栏目:[Linux] 日期:2021-01-24 热度:124
命令输入: export LANG=zh_CN.GBK grep?匹配时高亮 先执行:export GREP_OPTIONS== 这条命令添加到 ~/.bash_profile 的最后,重启,就不用每次都执行该命令。 nohub ? /dev/null?2>1? . 单一个 符号,且放在完整指令列的最后端,即表示将该指令列放入后台[详细]
-
mount 需要同时设置 noatime 和 nodiratime 吗?
所属栏目:[Linux] 日期:2021-01-21 热度:163
div class="entry" 相信对性能、优化这些关键字有兴趣的朋友都知道在 Linux 下面挂载文件系统的时候设置 noatime 可以显著提高文件系统的性能。默认情况下,Linux ext2/ext3 文件系统在文件被访问、创建、修改等的时候记录下了文件的一些时间戳,比如:文件[详细]
-
xfsdump命令使用
所属栏目:[Linux] 日期:2021-01-21 热度:174
div id="article_content" class="article_content" 一:使用xfsdump备份和恢复xfs文件系统 首先了解一下xfsdump的备份级别有以下两种,默认为0(即完全备份) 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?完全备份 1 ? ? 1.创建xfs文件系统并挂载到/data目录下 -[详细]
-
VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法
所属栏目:[Linux] 日期:2021-01-21 热度:134
VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法 ?[详细]
-
linux查看主机端口进程命令
所属栏目:[Linux] 日期:2021-01-21 热度:105
div id="blog_content" class="blog_content" 1、查看主机信息 # more /etc/hosts # Do not remove the following line,or various programs # that require network functionality will fail. 127.0.0.1?????? xyn-redhat????? localhost.localdomain?? loc[详细]
-
ubuntu安装配置jdk tomcat mysql ...
所属栏目:[Linux] 日期:2021-01-21 热度:139
安装之前大家一定要检查好各个版本问题 以免造成不兼容。 ? (一)下载所需安装包: ?jdk-7u76-linux-x64.tar.gz ?apache-tomcat-7.0.63.tar.gz ?MySQL-server-5.1.73-1.glibc23.x86_64.rpm ?MySQL-client-5.1.73-1.glibc23.x86_64.rpm (二).安装jdk: 1.[详细]
-
Linux环境下实现生产者消费者问题
所属栏目:[Linux] 日期:2021-01-21 热度:121
div class="cnblogs_code" include stdio.hspan style="color: #000000;" include semaphore.hspan style="color: #000000;" include stdlib.hspan style="color: #000000;" include pthread.hspan style="color: #000000;" include unistd.h span style="co[详细]
-
Linux环境下实现管道通信-问题
所属栏目:[Linux] 日期:2021-01-21 热度:105
div class="cnblogs_code[详细]
-
Linux环境下实现哲学家就餐问题
所属栏目:[Linux] 日期:2021-01-21 热度:163
div class="cnblogs_code" #include pthread_mutex_t chopstick[ ] ; *eat_think( * phi = *( *)arg; left,right; = = = = = = = = = = /spanspan style="color: #0000ff;"gt;int/spanspan style="color: #000000;"gt; i;/spanspan style="color: #0000ff;"g[详细]
-
批量执行工具PSSH详解
所属栏目:[Linux] 日期:2021-01-21 热度:78
h1 id="批量执行工具pssh详解"批量执行工具PSSH详解 pssh是一个python编写可以在多台服务器上执行命令的工具,同时支持拷贝文件,是同类工具中很出色的,使用必须在各个服务器上配置好密钥认证访问。 yum install pssh -y # 安装setuptools包,如果安装了跳[详细]