摘要:
文件系统类型选项mount –t [文件系统类型] 设备 挂载点-t:一般可省略,如系统无法自动判断可以手动指定挂在文件系统类型。1.挂载windows fat32 和ntfs格式存储 #mount–t vfat /dev/hda2 /mnt/fat1 #mount–t ntfs /dev/hda3 /mnt/ntfs2.挂载数据光盘格式:iso9660,udf #mount–t iso9660 /dev/cdrom /mnt/cdrom3.u盘挂载 若无法加载u盘,执行下列命令,加载u盘模块 #modprobeusb-storage 挂载选项lwindows分区常用挂载选项 iocharse 阅读全文
摘要:
#include <stdio.h> void swap(int *x, int *y)
{ *y = *x ^ *y; *x = *x ^ *y; *y = *x ^ *y;
} void revert(int *a, int len)
{ int first = 0, last = len - 1; for (;first < last; first++, last--) swap(&a[first], &a[last]);
} int main()
{ int i, a[] = {1 ,2, 3, 4, 5}; revert(a, 5); for (i 阅读全文
摘要:
putty提示“Connection refused” 但可以ping通 经查,解决方法如下:首先判断是否安装sshrpm -qa opensshrpm -qa openssh-server之后执行:#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key再进行putty连接,可成功登陆。 阅读全文