Home> System Tutorial> LINUX> body text

Linux operating system: a free, freely disseminated and stable multi-user network system

王林
Release: 2024-06-24 15:32:35
Original
511 people have browsed it

Linux 操作系统:免费、自由传播且性能稳定的多用户网络系统

Linux is a set of Unix-like operating systems that are free to use and spread freely. It is a multi-user, multi-task, multi-threading and multi-CPU operating system based on POSIX and UNIX. It can run major UNIX software tools, applications and network contracts. It supports 32-bit and 64-bit hardware. Linux inherits the network-centric design philosophy of Unix and is a multi-user network operating system with stable performance.

linux特有的文件系统_linux系统有几种文件类型_linux典型文件系统类型

Lingyang Education teachers said before that strictly speaking, the word Linux itself only means the Linux kernel, but in fact people have long been accustomed to using Linux to describe the entire operating system based on the Linux kernel, but using various tools and databases of the GNU project.

File systems included in linux:

1. File type

Regular file: It is a file that is usually accessed. Among the attributes displayed by ls-al, the first attribute is [-], such as [-rwxrwxrwx]. In addition, according to the content of the file, it can be roughly divided into:

1. Plain text file (ASCII): This is the most common file type in Unix systems. It is called a plain text file because the content can be read directly, such as numbers, letters, etc. Settings files almost always fall into this file type. For example, use the command "cat~/.bashrc" to see the contents of the file (cat reads the contents of the file).

2. Two's complement file (binary): Although the system only recognizes and can execute two's complement file (binaryfile). Executable files in Linux (scriptsThere are several file types in Linux systems, text-form batch files are not counted) are in these formats. For example, the command cat is a two's complement file.

linux系统有几种文件类型_linux特有的文件系统_linux典型文件系统类型

3. Files in data format (data): Some programs will read individual files in specific formats during operation. These files in specific formats can be called data files (datafiles). For example, when a user logs in, Linux will record the login data in the /var/log/wtmp file. This file is a data file that can be read through the last command. But when using cat, garbled characters will be read. Because it is a file in a special format.

Directory: It is a directory, the first attribute is [d], such as [drwxrwxrwx].

Link file (link): similar to the shortcut method under Windows. The first attribute is [l], such as [lrwxrwxrwx].

Devices and device files (device): Some files related to system peripherals and storage are generally concentrated in the /dev directory. Generally divided into two types:

Block device file: It is a socket device that stores data for system access. Simply put, it is a hard disk. For example, the code of hard disk No. 1 is /dev/hda1 and other files. The first attribute is [b].

Character device file: That is, the socket device of the serial port, such as buttons, mouse, etc. The first attribute is [c].

linux典型文件系统类型_linux系统有几种文件类型_linux特有的文件系统

套接字(sockets):這類檔案一般用在網路資料連接處。可以啟動一個程式來竊聽顧客端的要求,顧客端就可以透過套接字來進行資料通訊。第一個屬性為[s],最常在/var/run目錄中看到這些檔案類型。

管線(FIFO,pipe):FIFO也是一種特殊的檔案類型,它主要的目的是,解決多個程式同時存取一個檔案所導致的錯誤。 FIFO是first-in-first-out(先進先出)的簡寫。第一個屬性為[p]。

2、linux下的文件結構

/:根目錄,所有的目錄、檔案、裝置都在/之下puppy linux,/就是Linux檔案系統的組織者,也是最上級的領導者。

/bin:bin就是二補碼(binary)英文簡寫。在通常的系統當中,都可以在這個目錄下找到linux常用的指令。系統所須要的這些指令坐落此目錄。

/boot:Linux的核心及開機系統程式所必須的檔案目錄,例如vmlinuzinitrd.img檔案都坐落在這個目錄中。在通常情況下,GRUB或LILO系統引導管理器也坐落這個目錄。

linux特有的文件系统_linux系统有几种文件类型_linux典型文件系统类型

/cdrom:這個目錄在剛才安裝系統的時侯是空的。可以將硬碟檔案系統掛在這個目錄下。諸如:mount/dev/cdrom/cdrom

/dev:dev是裝置(device)的英文簡寫。這個目錄對所有的使用者都極為重要。由於在這個目錄中包含了所有linux系統中使用的外部設備。而這兒並不是放的外部設備的驅動程式。這一點和常用的windows,dos作業系統不一樣。它實際上是一個存取那些外部設備的連接埠。可以十分便捷地去存取那些外部設備,和存取一個文件,一個目錄沒有任何區別。

/etc:etc這個目錄是linux系統中最重要的目錄之一。在這個目錄下儲存了系統管理時要用到的各類別設定檔和子目錄。要用到的網路配置文件,文件系統,x系統配置文件,設備配置信息,設定用戶信息等都在這個目錄下。

/home:如果建置一個用戶,用戶名是"xx",這麼在/home目錄下就有一個對應的/home/xx路徑,拿來儲存用戶的主目錄。

/lib:lib是函式庫(library)英文簡寫。這個目錄是拿來儲存系統動態聯結共享庫的。幾乎所有的應用程式都會用到這個目錄下的共享庫。為此,千萬不要輕易對這個目錄進行哪些操作,一旦發生問題,系統就無法運作了。

/lost+found:在ext2或ext3檔案系統中,當系統意外崩潰或機器意外死機,而形成一些檔案碎片置於這兒。當系統啟動的過程中fsck工具會偵測這兒,並修補早已毀壞的檔案系統。有時系統會發生問題,有好多的檔案會移到這個目錄中,可能會用手工的方法來修補,或移到檔案到原先的位置。

linux典型文件系统类型_linux特有的文件系统_linux系统有几种文件类型

/mnt:這個目錄通常是用來儲存掛載儲存設備的掛載目錄的常用linux系統,例如有cdrom等目錄。可以參考/etc/fstab的定義。

/media:有些linux的發行版使用這個目錄來掛載這些usb插口的聯通硬盤(包括U盤)、CD/DVD驅動器等等。

/opt:這兒主要儲存這些可選的程序。

/proc:可以在這個目錄下取得系統資訊。這種資訊是在顯存中,由系統自己形成的。

/root:Linux超級權限使用者root的家目錄。

/sbin:這個目錄是拿來儲存系統管理員的系統管理程式。大多是涉及系統管理的命令的儲存,是超級權限用戶root的可執行命令儲存地,普通用戶無權執行這個目錄下的命令,這個目錄和/usr/sbin;/usr/X11R6/sbin或/usr /local/sbin目錄是相像的,但凡目錄sbin包含的都是root權限能夠執行的。

linux特有的文件系统_linux系统有几种文件类型_linux典型文件系统类型

/selinux:對SElinux的一些設定檔目錄,SElinux可以讓linux愈發安全。

/srv服務啟動後linux系統有幾種檔案類型,所需存取的資料目錄,舉個反例來說,www服務啟動讀取的網頁資料就可以置於/srv/www中

/tmp:暫存檔案目錄,拿來儲存不同程式執行時所形成的暫存檔案。有時使用者運行程式的時侯,會形成臨時檔案。 /tmp就拿來儲存臨時檔案的。 /var/tmp目錄和這個目錄相像。

/usr

這是linux系統中佔用硬盤空間最大的目錄。使用者的許多應用程式和檔案都儲存在這個目錄下。在這個目錄下,可以找到這些不適合置於/bin或/etc目錄下的額外的工具

/usr/local:這兒主要儲存這些自動安裝的軟體,即不是透過「新立得」或apt-get安裝的軟體。它和/usr目錄具有相類似的目錄結構。讓軟體套件管理器來管理/usr目錄,而把自訂的腳本(scripts)放在/usr/local目錄下邊、。

/usr/share:系統共用的東西儲存地,例如/usr/share/fonts是字體目錄,/usr/share/doc和/usr/share/man幫助文件。

/var:這個目錄的內容是時常變動的,看名子就曉得,可以理解為vary的簡寫,/var下有/var/log這是拿來儲存系統日誌的目錄。 /var/www目錄是定義Apache伺服器站台儲存目錄;/var/lib拿來儲存一些函式庫文件,例如MySQL的,以及MySQL資料庫的的儲存地。

The above is the detailed content of Linux operating system: a free, freely disseminated and stable multi-user network system. For more information, please follow other related articles on the PHP Chinese website!

source:itcool.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!