Shell在编程方面比Windows批处理强大很多,无论是在循环、运算。
继续阅读“Shell 数组”查看linux 版本 version
cat /proc/version
lsb_release -a
centos
cat /etc/redhat-release
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
修改yum镜像
autogen.sh 的使用
在linux下面的大型工程很多都是makefile管理的,但是随着工程越来越大,makefile编写又成了一个大工程,这个时候出现了两个比较流行的工具,cmake和configure,configure又衍生出来一套automake。
继续阅读“autogen.sh 的使用”解决nfs挂载错误wrong fs type, bad option, bad superblock
错误:
[root@localhost]# mount -t nfs 192.168.0.106:/home/nfs1 /home/nfs
mount: wrong fs type, bad option, bad superblock on 192.168.0.106:/home/nfs1,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog – try
dmesg | tail or so
解决办法:
1 apt-get install nfs-common
或者
1 yum install nfs-utils
Svn 和git 同时使用
已经是git仓库情况
1、svn checkout
2、svn status 查看状态,会有许多删除冲突
3、使用revert命令恢复 svn revert ./* -R [或者单独文件 R递归]
4、再次查看状态,删除冲突消失
5、git pull ,git reset –hard 清除svn的更改,然后查看git 和svn状态是否正常,
6、修改,往两处提交就可以了
此过程可能需要多次gc cleanup
1 Svn checkout
2 git pull
3 换行符问题
4 git 修改为 autocrlf
5 Add 提示有些lf转换问题
6 再改为autocrlf false
7 再次add