摘要: As we saw in the previous section, any file can have multiple directory entries pointing to its i-node. The way we create a link to an existing file is with the link function.#include <unistd.h>int link(const char *existingpath, const char *newpath)Returns: 0 if OK, -1 on errorThis function cr 阅读全文
posted @ 2012-10-09 18:57 beanmoon 阅读(255) 评论(0) 推荐(0) 编辑
摘要: The st_size member of the stat structure contains the size of the file in bytes. This field is meaningful only for regular files, directories, and symbolic links.Solaris also defines the file size for a pipe as the number of bytes that are available for reading from the pipe. We'll discuss pipes 阅读全文
posted @ 2012-10-09 18:11 beanmoon 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Windows 下硬盘安装linux 系统一、启动引导1。光盘安装方式:在BIOS 中设置为CDROM 后,重新启动从光驱启动即可。2。硬盘安装方式:A)从XP 系统安装Linux。在boot.ini 文件(在c 盘根目录,隐藏者的,末尾添加c:\grldr= Linux,保存,如不能保存,把属性的只读去掉),把boot 文件里面第二行的timeout 改为5 或者其他不是零的数字(启动菜单默认选择时间)。然后把grub 解压,把grldr grub.exe 放到C 盘的根目录。1、下载grub4dos,把grub4dos 下的grub.exe 和grldr 复制到C:/。2、从下载的linu 阅读全文
posted @ 2012-10-09 12:57 beanmoon 阅读(998) 评论(0) 推荐(0) 编辑
摘要: 一:准备工作:1:准备所需要的软件。它包括 Centos镜像(DVD)文件和windows版的syslinux.exe文件。2:准备两个操作系统,一个windows,一个linux.windows用来做引导--写 mbr和生成ldlinux.sys;linux用来创建分区、拷贝文件等。3:准备一个4G以上的U盘 为了保险起见我准备一个8个G的U盘,因为考CentOS的ISO文件就需要3.8个G。二:具体的执行步骤:Linux系统上的操作:1.在mnt目录下新建三个目录文件:usb1 ,usb2, iso#mkdir usb1 usb2 iso把CentOS的iso文件挂载到/mnt/iso上# 阅读全文
posted @ 2012-10-09 12:55 beanmoon 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 文件系统特性我们都知道磁盘分区完毕后还需要进行格式化(format),之后操作系统才能够使用这个分割槽。 为什么需要进行『格式化』呢?这是因为每种操作系统所配置的文件属性/权限并不相同, 为了存放这些文件所需的数据,因此就需要将分割槽进行格式化,以成为操作系统能够利用的『文件系统格式(filesystem)』。由此我们也能够知道,每种操作系统能够使用的文件系统并不相同。 举例来说,windows 98 以前的微软操作系统主要利用的文件系统是 FAT (或 FAT16),windows 2000 以后的版本有所谓的 NTFS 文件系统,至于Linux 的正统文件系统则为 Ext2 (Linux 阅读全文
posted @ 2012-10-09 12:46 beanmoon 阅读(1913) 评论(0) 推荐(0) 编辑