linux技巧
kingjinkin
这个作者很懒,什么都没留下…
展开
-
wget使用技巧
wget 是一个命令行的下载工具。对于我们这些 Linux 用户来说,几乎每天都在使用它。下面为大家介绍几个有用的 wget 小技巧,可以让你更加高效而灵活的使用 wget。$ wget -r -np -nd http://example.com/packages/这条命令可以下载 http://example.com 网站上 packages 目录中的所有文件。其中,-np 的作转载 2012-07-14 09:02:48 · 307 阅读 · 0 评论 -
Xephyr使用
【Ubuntu安装Xephyr】#dpkg -L xserver-xephyr #查看是否安装了xephyr#sudo apt-get install xserver-xephyr#sudo apt-get install ssh【启动xephyr】#Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /de原创 2012-07-15 12:06:32 · 1061 阅读 · 0 评论 -
创建子进程释放父进程FD
#include #include static int CloseAllFd(void){ struct rlimit lim; unsigned int i; if (getrlimit(RLIMIT_NOFILE, &lim) < 0) { return -1; } if (lim.rlim_cur == RLI原创 2014-06-19 20:24:03 · 1002 阅读 · 0 评论