
Linux
Chris-Lin
echo -e '#define cat(c,d) c##.d \n #define mb(a,b) a##@b \n mb(shell2010,cat(gmail,com))' \
| gcc -E -xc - 2>/dev/null |tail -n 1
展开
-
vim自己添加//的解决方法
使用vim从外面拷贝代码粘贴进去的时候,如果某一原创 2014-04-27 09:45:00 · 950 阅读 · 0 评论 -
ssh到linux时,变成 bash-4.1 的办法
1、在根目录下建立root目录。2、拷贝/etc/skel目录下的.bash_logout和.bashrc和.bash_profile到root目录即可。3、重新登录ssh即可。转载转载 2014-05-24 16:42:37 · 892 阅读 · 0 评论 -
Centos7.0的几个新特性
centos最小好化安装没有ifconfig命令 刚安装了centos7.0,最小化安装,发现没有ifconfig命令,虚拟机里面的网卡显示ens32,这是centos7.0的特点,要使用ifconfig命令,在/etc/sysconfig/network-scripts/if-ens32里面配置好网络,记住 onboot=on 这个选项一定要设置,不然网络启动不了,重启网络,/etc/i转载 2014-08-14 23:01:34 · 596 阅读 · 0 评论 -
FreeBSD安装软件报错 “You must upgrade the ports-mgmt/pkg port first.” 的解决方法
pkg(8) must be version 1.3.8 or greater, but you have 1.3.7. You must upgrade the ports-mgmt/pkg port first.原创 2014-09-28 10:55:32 · 5425 阅读 · 1 评论 -
CentOS #include <uuid/uuid.h> 找不到文件解决方法
CentOS #include 找不到文件解决方法:原创 2014-10-30 11:22:13 · 14771 阅读 · 2 评论