Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Linux

HDG Explains: UNIX คืออะไร?

OS ยอดนิยม 3 ตัวทั่วโลกคือ Windows, Mac, และ Linux ทั้งสามได้ press attention (Windows และ Mac มากกว่า) และน่าจะเป็น OS เดียวที่คุณเคยได้ยิน

ถ้าบอกว่า 2 ใน 3 OS ยอดนิยม จริงๆ แล้ว incorporated core philosophies ของสิ่งที่เรียกว่า UNIX? ปรัชญาเหล่านี้คือ basic concepts ของ time-sharing system ให้ multiple users เข้าถึง single mainframe computer พร้อมกัน

HDG Explains: UNIX คืออะไร?

UNIX และ UNIX-like operating systems เป็น multi-user และ multi-tasking OS ที่ powerful และ popular ที่สุดบนตลาด หลาย generations ของ UNIX พัฒนาสำหรับเครื่องต่างๆ ตลอดปี รวมถึง modern POSIX systems เช่น Linux, variants มากมาย, และ Mac OS ยากจะเชื่อว่าอะไร powerful ขนาดนี้มาจากต้นตอเงียบง่าย

พัฒนาที่ Bell Telephone Laboratories (Bell Labs) โดยนักโปรแกรมเมอร์ไม่กี่คน UNIX เขียนด้วย C programming language ทำให้ติดตั้งบนคอมพิวเตอร์ใดก็ได้ที่มี C compiler นี่เพียงอย่างเดียวให้ UNIX natural portability, flexibility และเป็น OS option ที่ powerful

นอกจาก inexpensive แล้ว Bell Labs แจก OS ใน source language form ให้ใครได้มือบน modify และ customize สำหรับวัตถุประสงค์ตัวเองได้ ทำให้เกิด UNIX versions หลายสิบรุ่นในไม่กี่ปี รันบน sites ต่างๆ

Bell Labs แยกออกในปี 1984 แต่เริ่ม market UNIX พยายาม define standard version พัฒนาสิ่งที่หลายคนเห็นว่า restrictive มาก หนึ่งในนั้นคือ Richard Stallman ผู้รับผิดชอบ GNU project GNU project เป็น basis ของ Linux วันนี้ ประกอบด้วย Linux kernel ไม่ใช่ UNIX kernel

แต Linux inspired โดย MINIX ซึ่งเป็น UNIX-like OS สร้างขึ้นเพื่อการศึกษา นำไปสู่ domino effect สำหรับ OS ส่วนใหญ่วันนี้ GNU/Linux descended จาก UNIX's design และต่อมา OS หลายตัววันนี้ รวมถึง Android, Chrome OS, Steam OS, และ embedded OS จำนวนมาก สร้างบน Linux

The UNIX standard

Standard มาจริง แตไม่ได้พัฒนาจาก AT&T วันนี้ trademark "UNIX" เป็นของ The Open Group Single UNIX Specification ก็เช่นกัน OS ใดที่ใช้ UNIX ต้อง certified โดย The Open Group และ conform to Single UNIX Specification

ตาม The Open Group:

สำหรับผู้สนใจ link ในรูปภาพ: [link]

POSIX ที่กล่าวมาคือ family of standards ระบุโดย IEEE (Institute of Electrical and Electronic Engineers) ช่วย clarify และทำให้ uniform application programming interfaces ที่ UNIX-like OS ให้มา

นี่ทำให้เวลาเขียนโปรแกรมที่ relies on POSIX standards portability และ functionality ทำง่ายใน UNIX's large family of derivatives เช่น Linux และ Mac OS การใช้ API หรือ code ไม่ standardized as part of POSIX สำหรับ UNIX-like OS จะทำให้ portability ไป UNIX-like systems อื่นๆ ยากขึ้นเรื่อยๆ

UNIX Programs, Systems, และ Subsystems คืออะไร?

UNIX commands execute บน command line interface โดย shell Shell คือโปรแกรมอ่านคำสั่งที่ป้อน และ execute เอง หรือ pass ไป kernel

"Core kernel" คือสิ่งที่ UNIX systems สร้างรอบๆ จัดการ system และ processes อื่นๆ นี่คือ core ของ UNIX OS interact กับ hardware โดยตรง ให้ standard services set Kernel subsystems อาจรวม: process management, file management, memory management, network management และอื่นๆ

Core philosophies หลายอย่าง รวม requirements: single purpose, interoperable, และ working with standardized text interface คือสิ่งที่ UNIX programs ออกแบบรอบๆ

UNIX features ที่โดดเด่น:

  • อนุญาตให้ different users share same resources บน single system
  • ให้ multi-tasking: แต่ละ user execute many processes พร้อมกัน
  • OS แรกที่เขียนใน high-level language ทำให้ port ไปเครื่องอื่นง่าย minimal adaptations
  • Hierarchical file structure ให้ easier access และ maintenance ของ data
  • Built-in networking functions แลกเปลี่ยนข้อมูลระหว่าง users ง่าย

ทำไม UNIX จึงสำคัญ

นอกจาก Windows และ Windows-based systems ส่วนใหญ่ของ OS ที่คุณเห็น มี philosophies based in UNIX ดู Mac OS X terminal หรือ file system จะเห็นความคล้าย Linux มาก ทั้งคู่ต่างจาก Windows เพราะ Linux และ Mac OS เป็น UNIX-like systems

เข้าใจสิ่งนี้ช่วยเข้าใจว่า UNIX สำคัญและเคยสำคัญแค่ไหน UNIX philosophy หลักที่ใช้วันนี้: สร้าง small, modular utilities ทำ single thing ที่ exceptional efficiency การคุ้นเคย Mac OS Terminal ทำให้คุ้นเคย Linux Terminal และ vice versa นี่คือ UNIX in a nutshell

UNIX-like systems ใช้ single file system สำหรับ programs communicate กัน Windows-like systems ใช้ DOS นี่คือเหตุผลที่ Windows-like systems มี drive letters ทุก OS อื่นทุก file บน system เป็นส่วนหนึ่งของ single directory hierarchy อีกครั้ง ขอบคุณ UNIX philosophies

UNIX เห็นได้ใน architecture ของ OS อย่าง BSD, Linux, และ Mac OS โดย design หนึ่งอาจพูดว่าไม่มี UNIX ไม่มี Mac OS และอาจกล่าวได้เหมือนกันกับ competitors รวม Windows

เรา exaggerate อยู่ แตคุณต้องยอมรับว่า UNIX เล่นบทบาทสำคัญในการพัฒนา OS ทุกตัวที่ใช้วันนี้ ถ้าอะไรไม่ illustrate importance ของ UNIX และ philosophies มัน ฉันไม่รู้อะไรจะ illustrate ได้