![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux系统
文章平均质量分 67
uvsjoh
旅游、摄影、探险、游戏、运动。
展开
-
makefile 文件
Makefile 1 每一个命令行必须以[Tab]字符开始,[Tab]字符告诉make此行是一个命令行。make按照命令完成相应的动作。这也是书写Makefile中容易产生,而且比较隐蔽的错误。 2 commands can not commence before first target[Tab]echo Helloall:[Tab]gcc –o tt tt.c原创 2009-11-15 16:57:00 · 572 阅读 · 0 评论 -
字符编码集转换
//GB2312转换成UCS-2BEint GB2312_to_UCS2BE(char **content){ static char temp_des[BUFFLEN] = {0}; char *des=temp_des; size_t srcleft=strlen(*content), desleft=BUFFLEN; iconv_t c原创 2009-12-10 14:50:00 · 433 阅读 · 0 评论 -
常用宏定义
#define TEMP(x) /do{/if(x) printf("%d/n", (x));/}while(0) if (1) TEMP(10);else TEMP(11); 可以编译通过如下定义就不行:#define TEMP(x) if(x) printf("%d/n", (x)); 求成员变量的偏移原创 2009-12-12 10:10:00 · 393 阅读 · 0 评论 -
在AIX系统安装python
1 下载安装文件,地址为:http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.htmlpython-2.3.4-4.aix5.3.ppc.rpm --pythonpython-devel-2.3.4-4.aix5.3.ppc.rpm --python-d原创 2010-03-18 13:42:00 · 5105 阅读 · 0 评论 -
shell笔记
1 检查可用IP#!/bin/shi=0while [ "$i" -le "255" ]do str="10.200.28.$i" ping -c 4 $str | awk {if ($1=="PING") {ip=$2} else if ($5=="received,") {if ($4==0) {print ip,"/tFree"} else {print ip,原创 2010-03-18 13:51:00 · 1212 阅读 · 0 评论 -
Linux开通远程登录服务与共享
目的:在windows上可以使用远程登录软件(如Xshell)登录本机上的虚拟机。sudo apt-get install openssh-server装完后默认开通ssh服务开通用户:useradd mike设置密码passwd mike 123456查看用户信息id mike查看所属的组groups mike添加mike到root组sudo usermod -g root mike赋予用户mike超级用户权限:在/etc/sudoers中添加mike ALL=(ALL) ALL现在可以在windows原创 2011-02-20 22:39:00 · 1278 阅读 · 0 评论