|簡體中文

比思論壇

 找回密碼
 按這成為會員
搜索



查看: 763|回復: 4
打印 上一主題 下一主題

Introduction to the UNIX Operating System

[複製鏈接]

94

主題

0

好友

453

積分

中學生

Rank: 3Rank: 3

  • TA的每日心情
    開心
    2023-3-5 14:39
  • 簽到天數: 136 天

    [LV.7]常住居民III

    推廣值
    0
    貢獻值
    11
    金錢
    253
    威望
    453
    主題
    94
    樓主
    發表於 2017-2-1 23:58:41
    What is UNIX?

    UNIX® License PlateUNIX is an operating system which was first developed in the 1960s, and has been under constant development ever since. By operating system, we mean the suite of programs which make the computer work. It is a stable, multi-user, multi-tasking system for servers, desktops and laptops.

    UNIX systems also have a graphical user interface (GUI) similar to Microsoft Windows which provides an easy to use environment. However, knowledge of UNIX is required for operations which aren't covered by a graphical program, or for when there is no windows interface available, for example, in a telnet session.

    Types of UNIX

    The Linux PenguinThere are many different versions of UNIX, although they share common similarities. The most popular varieties of UNIX are Sun Solaris, GNU/Linux, and MacOS X.

    Here in the School, we use Solaris on our servers and workstations, and Fedora Linux on the servers and desktop PCs.

    The UNIX operating system

    The UNIX operating system is made up of three parts; the kernel, the shell and the programs.

    The kernel

    The kernel of UNIX is the hub of the operating system: it allocates time and memory to programs and handles the filestore and communications in response to system calls.

    As an illustration of the way that the shell and the kernel work together, suppose a user types rm myfile (which has the effect of removing the file myfile). The shell searches the filestore for the file containing the program rm, and then requests the kernel, through system calls, to execute the program rm on myfile. When the process rm myfile has finished running, the shell then returns the UNIX prompt % to the user, indicating that it is waiting for further commands.

    The shell

    The shell acts as an interface between the user and the kernel. When a user logs in, the login program checks the username and password, and then starts another program called the shell. The shell is a command line interpreter (CLI). It interprets the commands the user types in and arranges for them to be carried out. The commands are themselves programs: when they terminate, the shell gives the user another prompt (% on our systems).

    The adept user can customise his/her own shell, and users can use different shells on the same machine. Staff and students in the school have the tcsh shell by default.

    The tcsh shell has certain features to help the user inputting commands.

    Filename Completion - By typing part of the name of a command, filename or directory and pressing the [Tab] key, the tcsh shell will complete the rest of the name automatically. If the shell finds more than one name beginning with those letters you have typed, it will beep, prompting you to type a few more letters before pressing the tab key again.

    History - The shell keeps a list of the commands you have typed in. If you need to repeat a command, use the cursor keys to scroll up and down the list or type history for a list of previous commands.

    Files and processes

    Everything in UNIX is either a file or a process.

    A process is an executing program identified by a unique PID (process identifier).

    A file is a collection of data. They are created by users using text editors, running compilers etc.

    Examples of files:

    a document (report, essay etc.)
    the text of a program written in some high-level programming language
    instructions comprehensible directly to the machine and incomprehensible to a casual user, for example, a collection of binary digits (an executable or binary file);
    a directory, containing information about its contents, which may be a mixture of other directories (subdirectories) and ordinary files.
    The Directory Structure

    All the files are grouped together in the directory structure. The file-system is arranged in a hierarchical structure, like an inverted tree. The top of the hierarchy is traditionally called root (written as a slash / )

    Unix File Structure

    In the diagram above, we see that the home directory of the undergraduate student "ee51vn" contains two sub-directories (docs and pics) and a file called report.doc.

    The full path to the file report.doc is "/home/its/ug1/ee51vn/report.doc"

    Starting an UNIX terminal

    To open an UNIX terminal window, click on the "Terminal" icon from Applications/Accessories menus.

    Gnome Menus



    An UNIX Terminal window will then appear with a % prompt, waiting for you to start entering commands.

    Unix Terminal window

    6

    主題

    0

    好友

    3725

    積分

    大學生

    Rank: 6Rank: 6

  • TA的每日心情
    擦汗
    23 分鐘前
  • 簽到天數: 2488 天

    [LV.Master]伴壇終老

    推廣值
    0
    貢獻值
    10
    金錢
    2
    威望
    3725
    主題
    6

    回文勇士 男生勳章 文明人 簽到勳章 中學生 簽到達人 高中生

    沙發
    發表於 2017-2-2 00:51:04
    介绍unix,也要抄一篇中文的啊

    1

    主題

    0

    好友

    155

    積分

    小學生

    Rank: 2

  • TA的每日心情
    開心
    2023-12-30 09:46
  • 簽到天數: 190 天

    [LV.7]常住居民III

    推廣值
    0
    貢獻值
    0
    金錢
    467
    威望
    155
    主題
    1
    板凳
    發表於 2017-5-25 18:05:09
    看的太费劲了,英文不好的渣渣求翻译

    0

    主題

    0

    好友

    521

    積分

    中學生

    Rank: 3Rank: 3

  • TA的每日心情
    慵懶
    2022-12-5 21:38
  • 簽到天數: 744 天

    [LV.9]以壇為家II

    推廣值
    0
    貢獻值
    0
    金錢
    293
    威望
    521
    主題
    0
    地板
    發表於 2017-11-27 15:10:17
    請善用帖子右下角舉報鍵,來檢舉有害網站/垃圾/宣傳帖,每個舉報會有金錢增加。
    这就完了啊

    25

    主題

    0

    好友

    455

    積分

    中學生

    Rank: 3Rank: 3

  • TA的每日心情
    無聊
    前天 23:54
  • 簽到天數: 788 天

    [LV.10]以壇為家III

    推廣值
    0
    貢獻值
    0
    金錢
    3458
    威望
    455
    主題
    25

    簽到勳章 簽到達人

    5#
    發表於 2018-1-7 18:39:54
    介绍unix,也要抄一篇中文的啊
    重要聲明:本論壇是以即時上載留言的方式運作,比思論壇對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,讀者及用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,讀者及用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。 由於本論壇受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者及用戶發現有留言出現問題,請聯絡我們比思論壇有權刪除任何留言及拒絕任何人士上載留言 (刪除前或不會作事先警告及通知 ),同時亦有不刪除留言的權利,如有任何爭議,管理員擁有最終的詮釋權。用戶切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。

    手機版| 廣告聯繫

    GMT+8, 2024-5-22 07:56 , Processed in 0.021717 second(s), 29 queries , Gzip On.

    Powered by Discuz! X2.5

    © 2001-2012 Comsenz Inc.

    回頂部