iiishooter's Blog - Attitude is Altitude

Ubuntu 与 Windows双系统分区挂载

简单介绍

1.硬盘分区表示方法

/dev/hda hdahd表示dard diskIDE接口; a表示硬盘号

/dev/sda sdasd表示SCSI dskIDE以外接口的硬盘

例:/dev/sdb1表示SCSI接口的第二快硬盘上的第一个分区

注意:kernel 2.6.19之后已经都使用/dev/sdx来表示了。

grub中所有硬盘都用hdx表示,x0开始。(hd11)表示地2块硬盘 的第二个分区。

2. /etc/fstab介绍

格式:

设备名        挂载点        格式          挂载选项         是否备份      检查顺序

 /dev/sdx      /home             ext4             defaults                  0                    2

 

继续阅读

Ubuntu 学习(附1)——The description of the ubuntu file system

Its from www.ubuntu.org

1

DESCRIPTION

A typical Linux system has, among others, the following directories:

 

/ This is the root directory. This is where the whole tree starts.

/bin This directory contains executable programs which are needed in single user mode and to bring the system up or repair it.

/boot Contains static files for the boot loader. This directory only holds the files which are needed during the boot process. The map installer and configuration files should go to /sbin and /etc.

/dev Special or device files,which refer to physical devices.See mknod(1).

/etc Contains configuration files which are local to the machine.Some larger software packages, like X11, can have their own subdirectories below /etc. Site-wide configuration files may be placed here or in /usr/etc. Nevertheless, programs should always look for these files in /etc and you may have links for these files to /usr/etc.

/etc/opt

Host-specific configuration files for add-on applications installed in /opt.

继续阅读

Ubuntu 学习1——基础知识

《Ubuntu 学习》系列文章系网络上流传的《Linux命令行简明教程》提炼摘要而成。

原文作者系参考Ubuntu6.04系统,与当前Ubuntu 10.04 LTS版本略有不同,部分内容笔者稍有改动。不甚详尽,请读者参考。

该系列后续文章将不再次注明以上信息。

1. 基础知识

1.1 文件系统

1.1.1 文件

Ubuntu的隐藏文件:

Ubuntu通过设置文件权限来隐藏文件。

在文件名前加.就不会再ls命令里显示出来。

Ubuntu图形界面下可以使用Ctrl+H来查看隐藏文件。

链接:

硬链接(hard link):为文件起一个别名的链接,文件实质和源文件是相同的。

符号链接(symbolic link):建立一个指向,相当于一个指向原文件的指针。

两者的区别:硬链接只能用于文件,不能用于目录;符号链接则可以为目录建链接。硬链接不能跨文件操作系统。

继续阅读




Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee