上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 52 下一页
摘要: 我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不同的场景选择不同的方式来处理这个问题。 如果只是临时有 阅读全文
posted @ 2016-03-18 11:41 圆旭 阅读(210) 评论(0) 推荐(0)
摘要: >> /dev/null redirects standard output (stdout) to /dev/null, which discards it. (The >> seems sort of superfluous, since >> means append while > mean 阅读全文
posted @ 2016-03-18 11:34 圆旭 阅读(183) 评论(0) 推荐(0)
摘要: In a Unix shell, if I want to combine stderr and stdout into the stdout stream for further manipulation, I can append the following on the end of my c 阅读全文
posted @ 2016-03-18 11:27 圆旭 阅读(212) 评论(0) 推荐(0)
摘要: 一 权限掩码umask umask是chmod配套的,总共为4位(gid/uid,属主,组权,其它用户的权限),不过通常用到的是后3个,例如你用chmod 755 file(此时这文件的权限是属主读(4)+写(2)+执行(1),同组的和其它用户有读写权限)二 umask的作用默认情况下的umask值 阅读全文
posted @ 2016-03-18 10:24 圆旭 阅读(192) 评论(0) 推荐(0)
摘要: 在类Unix系统中,/dev/null,或称空设备,是一个特殊的设备文件,它丢弃一切写入其中的数据(但报告写入操作成功),读取它则会立即得到一个EOF[1]。 在程序员行话,尤其是Unix行话中,/dev/null被称为bit bucket[2]或者黑洞。 空设备通常被用于丢弃不需要的输出流,或作为 阅读全文
posted @ 2016-03-17 10:42 圆旭 阅读(341) 评论(0) 推荐(0)
摘要: ls -la /dev/tty shows the output: The 'c' means it's a character device. tty is a special file representing the 'controlling terminal' for the current 阅读全文
posted @ 2016-03-17 10:40 圆旭 阅读(271) 评论(0) 推荐(0)
摘要: sed -i '2a\this is a test line' test.conf 就是在test.conf中的第二行下边加上一行"this is a test line" 把一个文件的内容插入另一个文件: sed -i '2 r file1' file2 2代表插到第二行下边 替换文件中的 pro 阅读全文
posted @ 2016-03-16 17:26 圆旭 阅读(182) 评论(0) 推荐(0)
摘要: 1) 需要配置/etc/cobbler/module.conf, 把manage_dns和manage_dhcp改为manage_dnsmasq 2) 重启cobbler和dnsmasq服务,dnsmasq总是不成功,原因是之前提供dns服务和dhcp服务的named和dhcpd进程还在占用着相应的 阅读全文
posted @ 2016-03-16 14:27 圆旭 阅读(3592) 评论(0) 推荐(0)
摘要: Cobbler is a Linux provisioning server that facilitates and automates the network-based system installation of multiple computer operating systems fro 阅读全文
posted @ 2016-03-16 09:49 圆旭 阅读(295) 评论(0) 推荐(0)
摘要: Dnsmasq是一个开源的轻量级DNS转发和DHCP、TFTP服务器,使用C语言编写。Dnsmasq针对家庭局域网等小型局域网设计,资源占用低,易于配置。支持的平台包括Debian、Fedora、Smoothwall、IP-Cop、floppyfw、Firebox、LEAF、Freesco, fli 阅读全文
posted @ 2016-03-16 09:26 圆旭 阅读(545) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 52 下一页