摘要:1,需要安装rpmbuild2,准备好工作目录:mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}3,自定义环境:vim ~/.rpmmacros%_topdir /root/rpmbuild%_tmppath /root/rpmbuild/tm...
阅读全文
摘要:from :http://www.allpinouts.org/index.php/APC_USB_cable_schematicconnector or cable wiring APC part# 940-0127B10 pin RJ50 (10P10C) male connector to t...
阅读全文
摘要:A virtual filesystem is filesystem that exists in a file, which in turn exists on a physical disk. There's a lot of great things you can do with virtu...
阅读全文
摘要:1,既输出到屏幕又输出到文件make -j4 | tee log_file如果再次执行,log_file会被冲刷掉,若想追加,使用-a选项:make -j4 | tee -a log_file
阅读全文
摘要:1,tail命令它默认打印后边10行,但是如果你想指定行数,可以:dmesg | tail -n 20还有一个妙用,它能自动帮你读取文件追加的内容:tail -f /var/log/dmesg2,dmesg彩色打印:dmesg --color # or dmesg -L
阅读全文
摘要:有如下文件1 # file boot.kylin 2 boot.kylin: ASCII cpio archive (SVR4 with no CRC)extract:# cpio -i boot
阅读全文
摘要:最近用u盘dd了一个安装镜像,发现用fdisk 重新分区后分区表仍旧乱乱的,这时候使用wipefs命令就能完美解决。eg:1 wipefs -a /dev/sdc
阅读全文