In Chapter 6, as we explored the shell, we touched upon several aspects of the file system. In this chapter, we
take our understanding further by discussing the file system in greater depth. In very simple terms, the file
system is that part of the operating system that takes care of organizing files and directories. Of course, the
file system does much more than that and in this chapter we explore the following aspects of the file system:
Various file and directory attributes and how they relate to our everyday tasks •
File system hierarchy and the location of various useful programs •
The concept of supporting multiple file systems •
Managing and maintaining the file system •
What Is the File System?
What does the file system do for the end−user? Besides organizing our data files and useful programs, it also
manages configuration information required for the operating system to provide us a consistent environment
every time we restart the computer. It also enforces security and allows us to control access to our files.
Processes may read, write, append, delete, move, or rename files and directories. The file system defines the
rules of the game when such operations are performed.
The shell, combined with a host of other programs, allows us to navigate the file system and get our tasks
done. Depending on the distribution and installed software, we may also use file managers to navigate the file
system; in the case of Red Hat Linux 9, we may use the Nautilus file manager.
However, one of the most interesting aspects of the file system (and one that is not immediately obvious) is
the fact that Linux treats almost all devices as files. Hard disks, terminals, printers, and floppy disk drives are
all devices − devices that can be read from and written to (mostly). In fact, with the proc file system, Linux
goes so far as to provide a file system abstraction to running processes. We shall see more about this later. But
the thing to note is that treating devices as files allows Linux to deal with them in a consistent manner.
Linux supports a wide variety of file system types including Microsoft Windows file system types. Some
first−time Linux users find it interesting that it is possible to copy a file from a Microsoft Windows file
system onto a floppy and edit it on a Linux machine and take it back to Windows. In fact, Linux even allows
remote Windows−shared file systems to be accessed locally using Samba (we'll see more of this in Chapter 9).
ในบทที่ 6 ที่เราสำรวจเปลือก เราได้สัมผัสกับหลายแง่มุมของระบบแฟ้ม ในบทนี้เรา
เอาความเข้าใจของเราต่อไป โดยพูดถึงเรื่องระบบแฟ้มในความลึกมากกว่า ในแง่ง่าย , ระบบแฟ้ม
เป็นส่วนหนึ่งของระบบปฏิบัติการที่ดูแลการจัดไฟล์และไดเรกทอรี แน่นอน ,
ระบบแฟ้มไม่ได้มากไปกว่านั้น และในบทนี้เราสำรวจด้านของระบบแฟ้ม :
ต่างๆไฟล์และคุณลักษณะไดเรกทอรีและวิธีที่พวกเขาเกี่ยวข้องกับของเรางานทุกวัน -
ระบบแฟ้มลำดับชั้น และสถานที่ตั้งของโปรแกรมต่างๆที่เป็นประโยชน์ -
แนวคิดสนับสนุนไฟล์หลายระบบ -
การจัดการและรักษาระบบแฟ้ม -
สิ่งที่เป็นระบบแฟ้ม
แล้วระบบแฟ้มเพื่อสิ้นสุด−ผู้ใช้ ? นอกจากการจัดแฟ้มข้อมูลและโปรแกรมที่มีประโยชน์ของเรา มันยังจัดการการตั้งค่าที่จำเป็นสำหรับข้อมูล
ระบบปฏิบัติการ เพื่อให้เรา
สิ่งแวดล้อมสอดคล้องทุกครั้งที่เรารีสตาร์ทเครื่องคอมพิวเตอร์ มันยังบังคับใช้การรักษาความปลอดภัยและช่วยให้เราเพื่อควบคุมการเข้าถึงไฟล์ของเรา .
กระบวนการสามารถอ่าน , เขียน , เพิ่ม , ลบ , ย้าย ,หรือเปลี่ยนชื่อไฟล์และไดเรกทอรี ระบบแฟ้มที่กำหนด
กฎของเกมเมื่อการดำเนินการดังกล่าวจะดำเนินการ
เปลือก รวมกับโฮสต์ของโปรแกรมอื่น ๆที่จะช่วยให้เรานำทางระบบแฟ้มและให้งานของเรา
เสร็จแล้ว ขึ้นอยู่กับการกระจาย และการติดตั้งซอฟต์แวร์ เราอาจใช้จัดการไฟล์ที่จะนำทางระบบแฟ้ม
; ในกรณีของ Red Hat Linux 9เราอาจจะใช้โปรแกรมจัดการแฟ้ม Nautilus .
แต่แง่มุมที่น่าสนใจที่สุดของระบบแฟ้ม ( และหนึ่งที่ไม่ชัดเจนทันที )
ที่ว่า Linux ถือว่าเป็นอุปกรณ์เกือบทุกไฟล์ ฮาร์ดดิสก์ , ขั้ว , เครื่องพิมพ์ , และไดรฟ์ฟล็อปปี้ดิสก์เป็น
อุปกรณ์ทั้งหมด−อุปกรณ์ที่สามารถอ่านและเขียน ( ส่วนใหญ่ ) ในความเป็นจริง ระบบแฟ้ม proc , Linux
ไปให้ไกลเท่าที่จะจัดหาระบบแฟ้มที่เป็นนามธรรมที่จะใช้กระบวนการ เราจะดูข้อมูลเพิ่มเติมเกี่ยวกับเรื่องนี้ในภายหลัง แต่
สิ่งที่ควรทราบก็คือการรักษาอุปกรณ์ไฟล์ช่วยให้ลินุกซ์ที่จะจัดการกับพวกเขาในลักษณะที่สอดคล้องกัน
Linux สนับสนุนความหลากหลายของประเภทของระบบแฟ้มรวมถึง Microsoft Windows ระบบแฟ้มประเภท บาง
ผู้ใช้ Linux เวลา−ก่อนพบว่ามันน่าสนใจที่เป็นไปได้ที่จะคัดลอกแฟ้มจากระบบแฟ้ม
Microsoft Windows บนฟล็อปปี้ดิสก์และแก้ไขบนเครื่อง Linux และพากลับไปที่หน้าต่าง ในความเป็นจริง , Linux ยังช่วยให้ Windows ระบบแฟ้มระยะไกล
−แบ่งปันการเข้าถึงได้ในประเทศโดยใช้ Samba ( เราจะดูข้อมูลนี้ในบทที่ 9 )
การแปล กรุณารอสักครู่..
