1.1 INTRODUCTION
1.1 GENERAL CHARACTERISTICS
1.1.2 VERSIONS
1-ការណែនាំ
ប្រភពដើម៖ ត្រូវបានបង្កើតឡើងនៅដើមទសវត្សរ៍ ១៩៧០ ក្នុងមន្ទីរពិសោធន៍ Bell–AT&T។
ការពង្រីកឧស្សាហកម្ម៖ នៅដើមទសវត្សរ៍ ១៩៨០។
តួនាទីបច្ចុប្បន្ន៖ ជាអ្នកលេងសំខាន់ម្នាក់ក្នុងកម្មវិធីសហប្រតិបត្តិការ (groupware) និងស្ថាបត្យកម្ម client/server។
2-លក្ខណៈទូទៅ
ពហុអ្នកប្រើ (Multi‑user)៖ អ្នកប្រើជាច្រើនអាចធ្វើការនៅពេលតែមួយ។
ពហុភារកិច្ច (Multitasking)៖ កម្មវិធីជាច្រើនអាចដំណើរការដំណាលគ្នា។
ពហុវេទិកា (Multi‑platform)៖ មានលើវេទិកាឧបករណ៍រឹងជាច្រើនប្រភេទខុសៗគ្នា។
គាំទ្រពហុប្រូសេស័រ (Multiprocessor support)៖ អាចប្រើប្រាស់អត្ថប្រយោជន៍ពីម៉ាស៊ីនដែលមានប្រូសេស័រច្រើន។
3-ប្រសិទ្ធភាព និងទីតាំង
ដំណោះស្រាយ Unix៖
- ផ្តល់កម្រិតប្រសិទ្ធភាពដែលអាចប្រៀបធៀបបាននឹងប្រព័ន្ធផ្តាច់មុខ (proprietary systems),
- ផ្តល់មុខងារស្មើគ្នា,
- ជាញឹកញាប់មានភាពទាក់ទាញជាង ក្នុងទាក់ទងនឹងថ្លៃដើម និងសមត្ថភាពពង្រីក (scalability)។
4-វិញ្ញាសា និងទស្សនវិស័យរបស់ Unix
Unix គឺជាប្រព័ន្ធអភិវឌ្ឍន៍ជាងគេមុនសិន។
អ្វីៗត្រូវបានរចនាឡើងដោយគិតគូរទៅលើការសរសេរកម្មវិធី។
គោលការណ៍សំខាន់៖ ការបែងចែកជាម៉ូឌុល (modularity)។
មានឧបករណ៍ប្រើប្រាស់ស្តង់ដារ (standard utilities)។
ឧបករណ៍ទាំងនេះអាចបន្សំជាមួយគ្នាបានមិនដាច់ដូង (របៀប «ប្រអប់ឧបករណ៍» / toolbox approach)។
5-ការរៀន និងការកាន់កាប់ឱ្យបានជំនាញ
តម្រូវឱ្យមានការរៀនសូត្រច្រើននៅដំបូង (ដោយសារតែសម្បូរមុខងារ និងភាពបើកចំហ)។
ជាគុណវិបាកវិញ៖
- កម្រិតជំនាញនឹងកើនឡើងតាមការអនុវត្តន៍ជាប្រចាំ។
- អ្នកយល់ដឹង Unix កាន់តែច្រើន អ្នកនឹងទទួលបានអត្ថប្រយោជន៍ច្រើនកាន់តែបន្ថែម។
ដើម្បីមានផាសុកភាពជាមួយ Unix អ្នកត្រូវតែស្គាល់៖
- មេកានិزمមូលដ្ឋាន,
- ឧបករណ៍ និងសេវាកម្មដែលមានផ្តល់ឱ្យ។
6-ស្តង់ដារ និងសមត្ថភាពផ្ទេរ
បើទោះបីមានវ៉ារីយ៉ង់ Unix ច្រើនក៏ដោយ ប្រព័ន្ធនេះស្ថិតលើមូលដ្ឋាន៖
- ស្តង់ដារជាច្រើនប្រភេទ,
- ស្តង់ដារបែប de facto ជាពិសេសសម្រាប់៖
- ចំណុចប្រទាក់កម្មវិធី (programming interfaces),
- សេវាកម្ម។
លទ្ធផល៖ កម្មវិធីមានសមត្ថភាពផ្ទេរខ្ពស់ (high portability of applications) ដែលជាទ្រព្យសម្បត្តិសំខាន់មួយរបស់ Unix។
7-ចំណុចខ្លាំងរបស់ Unix ក្នុងស្ថាបត្យកម្មព័ត៌មានវិទ្យា
មានដំណោះស្រាយកម្មវិធីជាច្រើន៖
- ឧទាហរណ៍ ជាម៉ាស៊ីនមេគ្រប់គ្រងមូលដ្ឋានទិន្នន័យ (DBMS server)។
បណ្តាញ (Networking)៖
- មានគុណភាព និងភាពទុកចិត្តបានខ្ពស់ជុំវិញពិធីការ TCP/IP។
ក្រាហ្វិច (Graphics)៖
- មានដំណោះស្រាយផ្អែកលើប្រព័ន្ធ X Window។
អ្វីទាំងនេះធ្វើឱ្យការទទួលយក Unix ក្លាយជារឿងងាយស្រួល នៅពេលជ្រើសរើសស្ថាបត្យកម្មព័ត៌មានវិទ្យា។
ប្រសិនបើអ្នកចង់ អ្នកអាចផ្ញើទំព័រផ្សេងទៀត ឬអត្ថបទផ្សេងទៀតឲ្យបកប្រែដូចគ្នានេះបានផង។
1.1.1 COMPONENTS OF THE SYSTEM
The components of the system can be represented as follows:
Kernel
- Written in the C language
- Performs the essential functions
(memory management, process management, input/output, etc.)
File system
- Integrated into the kernel
- The internal implementation and the resulting administration capabilities
are specific to each version, but the available commands and utilities
are, of course, common.
Command languages (shells)
- Dual role: interpreter and programming language
- The “shell” is a program external to the kernel; a login consists in
starting the interpreter of one’s choice. - The most widespread shells are:
- Korn shell (the recommended shell today)
- POSIX shell (standardized version of the Korn shell)
- Bourne shell (the original shell)
- C shell (from the Berkeley versions)
- Bash, for Bourne Again Shell (from the Open Source world)
Available utilities and services
- Numerous commands for the user
- Compilers (C, C++, etc.)
- Text editors (ed, vi, emacs, etc.)
- Filters (text file processing tools)
- TCP/IP network protocols
- TCP/IP applications and services
- standard applications: telnet, ftp, “remote commands,” etc.
- NFS file-sharing service
- NIS centralized administration services
- SNMP network management protocols
- Internet tools
- X Window graphical interface system
- etc.
Programming interfaces
- System calls (C under Unix)
- Network programming (sockets, TLI, RPCs)
- X Window programming
- A multitude of freeware tools for development and administration
1.1.1 សមាសភាគនៃប្រព័ន្ធ
សមាសភាគនៃប្រព័ន្ធអាចបង្ហាញបានដូចខាងក្រោម៖
Kernel
- សរសេរឡើងដោយប្រើភាសា C
- អនុវត្តមុខងារចម្បងៗ
(ការគ្រប់គ្រងមេម៉ូរី ការគ្រប់គ្រងដំណើរការ ការបញ្ចូល/បង្ហាញលទ្ធផល ជាដើម)
ប្រព័ន្ធឯកសារ (File system)
- បញ្ចូលរួមជាមួយខឺណែល
- រចនាសម្ព័ន្ធខាងក្នុង និងសមត្ថភាពគ្រប់គ្រងដែលទទួលបាន
ខុសគ្នាតាមកំណែនីមួយៗ ប៉ុន្តែពាក្យបញ្ជា និងឧបករណ៍សម្រួល
ដែលអាចប្រើបានវិញ គឺជារឿងទូទៅដូចគ្នា។
ភាសាពាក្យបញ្ជា (shells)
- មានតួនាទីពីរ៖ ជាកម្មវិធីបកប្រែ និងជាភាសាកម្មវិន្ធ
- «Shell» គឺជាកម្មវិធីមួយនៅខាងក្រៅខឺណែល; ការចូលប្រើប្រព័ន្ធ (login)
គឺជាការចាប់ផ្ដើមកម្មវិធីបកប្រែដែលអ្នកជ្រើសរើស។ - Shell ដែលគេប្រើច្រើនបំផុតមាន៖
- Korn shell (shell ដែលបានផ្ដល់អនុសាសន៍សម្រាប់បច្ចុប្បន្ន)
- POSIX shell (កំណែស្តង់ដារនៃ Korn shell)
- Bourne shell (shell ដើម)
- C shell (មកពីកំណែ Berkeley)
- Bash សម្រាប់ Bourne Again Shell (មកពីពិភព Open Source)
ឧបករណ៍សម្រួល និងសេវាកម្មដែលអាចប្រើបាន
- ពាក្យបញ្ជាច្រើនសម្រាប់អ្នកប្រើ
- កម្មវិធីបកប្រែកូដ (compilers) (C, C++ ជាដើម)
- កម្មវិធីកែសម្រួលអត្ថបទ (text editors) (ed, vi, emacs ជាដើម)
- Filters (ឧបករណ៍ដំណើរការឯកសារអត្ថបទ)
- ពិធីការបណ្ដាញ TCP/IP
- កម្មវិធី និងសេវាកម្ម TCP/IP
- កម្មវិធីស្តង់ដារ៖ telnet, ftp, «remote commands» ជាដើម
- សេវាកម្មចែករំលែកឯកសារ NFS
- សេវាកម្មគ្រប់គ្រងកណ្ដាល NIS
- ពិធីការគ្រប់គ្រងបណ្ដាញ SNMP
- ឧបករណ៍សម្រាប់អ៊ីនធឺណិត
- ប្រព័ន្ធចំណុចប្រទាក់ក្រាហ្វិក X Window
- ជាដើម។
ចំណុចប្រទាក់សរសេរកម្មវិធី (Programming interfaces)
- System calls (C ក្រោម Unix)
- ការសរសេរកម្មវិធីបណ្ដាញ (sockets, TLI, RPCs)
- ការសរសេរកម្មវិធី X Window
- ឧបករណ៍ឥតគិតថ្លៃជាច្រើនសម្រាប់ការអភិវឌ្ឍ និងការគ្រប់គ្រង
1.1.2 VERSIONS
Introduction
Unix currently comes in many different variants.
The impact of these different versions is really significant only with regard to « System Administration » aspects and, to a lesser extent, « Network Configuration » aspects.
Some major versions (in alphabetical order)
AIX
IBM (RS/6000 and pSeries ranges) and BULL (Escala)
Versions 5, 4.3.x (PowerPC hardware)
Versions 4.x (Intel, Alpha… platforms)
HP (HP9000 range)
Versions 10.x, 11.x and 11i
SGI (Octane, O2, Onyx… range)
Versions 6.5.x (MIPS processors)
2.x kernel (various distributions on various platforms)
Linux and UNIX distribution
OpenLinux, Open UNIX 8
SCO Open Server 5.x
UnixWare 7
Intel and Itanium platforms
SUN (Sparc and Intel platforms)
Solaris 8, 9
សេចក្តីផ្ដើម ក្នុងបច្ចុប្បន្ន Unix មានកំណែ និងកំណែរងជាច្រើនប្រភេទខុសៗគ្នា។ ផលប៉ះពាល់នៃកំណែផ្សេងៗទាំងនេះ មានសារៈសំខាន់ពិតប្រាកដ តែក្នុងចំណុច «ការគ្រប់គ្រងប្រព័ន្ធ» ប៉ុណ្ណោះ ហើយមានផលប៉ះពាល់តិចជាង ក្នុងចំណុច «ការកំណត់រចនាសម្ព័ន្ធបណ្តាញ» ។ កំណែសំខាន់ៗខ្លះ (តាមលំដាប់អក្សរក្រម) AIX IBM (ជួរ RS/6000 និង pSeries) និង BULL (Escala) កំណែ 5, 4.3.x (ផ្នែករឹង PowerPC) កំណែ 4.x (វេទិកា Intel, Alpha…) HP (ជួរ HP9000) កំណែ 10.x, 11.x និង 11i SGI (ជួរ Octane, O2, Onyx…) កំណែ 6.5.x (ប្រព័ន្ធដំណើរការ MIPS) ខឺណែល 2.x (ការចែកចាយជាច្រើន នៅលើវេទិកាផ្សេងៗគ្នា) ការចែកចាយ Linux និង UNIX OpenLinux, Open UNIX 8 SCO Open Server 5.x UnixWare 7 វេទិកា Intel និង Itanium SUN (វេទិកា Sparc និង Intel) Solaris 8, 9 1.2 WORKING ENVIRONMENT Unix was originally a command-line–oriented system, which you access via an asynchronous text terminal. The evolution of technologies and the emergence of network solutions and graphical interfaces have broadened the possible ways to connect. Graphical environments are becoming increasingly widespread and standardized. A good command of the syntax of commands and utilities is still necessary for IT professionals, regardless of their connection environment. Depending on the type of activity, there are several ways to connect to Unix: An X terminal is directly connected to the network and receives a “login banner” allowing the X Window interface to be started. The IT specialist can, in particular, open a number of terminal emulator windows and thus have several simultaneous connections on the same workstation. An X workstation is a Unix machine equipped with a graphics screen used as a console. An X workstation provides the same working environment as an X terminal. From an operating system that implements the TCP/IP protocols, it is possible, via applications built on these protocols, to connect to a Unix machine on the network. This connection can be made either: There is a wide range of software available, particularly for Microsoft Windows environments. 1.2 បរិស្ថានការងារ Unix ដំបូងគេ គឺជាប្រព័ន្ធដែលផ្អែកលើបន្ទាត់ពាក្យបញ្ជា ដែលអ្នកចូលប្រើតាមរយៈ terminal អក្សរអសមកាល (asynchronous text terminal) មួយ។ ការវិវឌ្ឍន៍បច្ចេកវិទ្យា និងការកើតមានដំណោះស្រាយបណ្តាញ និងចំណុចប្រទាក់ក្រាហ្វិក បានពង្រីកវិធីសាស្រ្តផ្សេងៗសម្រាប់ភ្ជាប់ចូលប្រព័ន្ធ។ បរិស្ថានក្រាហ្វិកកំពុងក្លាយជាអ្វីដែលប្រើប្រាស់យ៉ាងទូលំទូលាយ និងមានស្តង់ដារកាន់តែច្រើនឡើង។ ជំនាញល្អលើវាក្យសម្ពន្ធ (syntax) នៃពាក្យបញ្ជា និងឧបករណ៍ (utilities) នៅតែជាអ្វីចាំបាច់សម្រាប់អ្នកជំនាញព័ត៌មានវិទ្យា (IT professionals) មិនថាពួកគេភ្ជាប់ចូលមកពីបរិស្ថានប្រភេទណាក៏ដោយ។ អាស្រ័យលើប្រភេទសកម្មភាព មានវិធីច្រើនដើម្បីភ្ជាប់ចូល Unix ៖ terminal X ត្រូវបានភ្ជាប់ដោយផ្ទាល់ទៅបណ្តាញ ហើយទទួលបាន “login banner” មួយ ដែលអនុញ្ញាតឲ្យចាប់ផ្ដើមចំណុចប្រទាក់ X Window។ អ្នកជំនាញ IT អាចបើកបង្អួច emulator terminal ច្រើន ហើយដូច្នេះអាចមានការភ្ជាប់ជាច្រើនម្ដងតែមួយ លើ workstation តែមួយបាន។ workstation X គឺជាម៉ាស៊ីន Unix មួយ ដែលបំពាក់ដោយអេក្រង់ក្រាហ្វិក ហើយត្រូវបានប្រើជា console មួយ។ workstation X ផ្ដល់នូវបរិស្ថានការងារដូចគ្នានឹង terminal X។ ចាប់ពីប្រព័ន្ធប្រតិបត្តិការមួយ ដែលអនុវត្តពិធីការ TCP/IP រួចរាល់ អាចតភ្ជាប់ទៅម៉ាស៊ីន Unix មួយនៅលើបណ្តាញ តាមរយៈកម្មវិធីដែលសង់លើពិធីការទាំងនោះ។ ការភ្ជាប់នេះអាចធ្វើបាន ៖ មានកម្មវិធីជាច្រើនប្រភេទអាចរកបាន ជាពិសេសសម្រាប់បរិស្ថាន Microsoft Windows។ To log into the system, you must have a login name (login) to which it is recommended, or even mandatory, to associate a password. Each login is placed, when it is created by the administrator, in a primary group. It may also belong to supplementary or secondary groups in order to benefit from a broader range of file access rights. There is a privileged user with the traditional name root (internal number 0) who corresponds to the administrator and has full powers over the system. A login session consists in the execution of a shell (command interpreter). This login shell (a program external to the kernel) is chosen when the login is created. Its role is to display a prompt and to interpret the command lines typed by the user, until the user requests to log out. The original Bourne shell (sh or bsh) is still used for programming. The Korn shell (ksh) is the recommended interpreter because of its rich functionality and its standardized nature for programming. In this respect, it is a superset of the original Bourne shell. The C shell (csh) provided convenient interactive features on systems where the Korn shell was not available. Its use is becoming more and more marginal. BASH (bash) is the Open Source version. It offers an improvement over the Korn shell and C shell versions, while ensuring upward compatibility with the Bourne shell. ដើម្បីចូលទៅក្នុងប្រព័ន្ធ អ្នកត្រូវមានឈ្មោះចូល (login) មួយ ដែលត្រូវបានផ្ដល់ឲ្យ និងភ្ជាប់ជាមួយពាក្យសម្ងាត់ (password) មួយ ដែលភាគច្រើនត្រូវបានណែនាំ ឬត្រូវបានទាមទារឱ្យមាន។ រាល់ login ត្រូវបានដាក់ឲ្យស្ថិតក្នុងក្រុមមេមួយ នៅពេលវាត្រូវបានបង្កើតឡើងដោយអ្នកគ្រប់គ្រងប្រព័ន្ធ។ វាអាចក្លាយជាសមាជិកក្រុមបន្ថែម ឬក្រុមរងផ្សេងទៀត ដើម្បីទទួលបានជួរសិទ្ធិចូលដំណើរការឯកសារធំទូលាយជាងមុន។ មានអ្នកប្រើដែលមានសិទ្ធិពិសេសម្នាក់ មានឈ្មោះប្រពៃណីថា root (លេខខាងក្នុង 0) ដែលតំណាងឱ្យអ្នកគ្រប់គ្រង និងមានអំណាចពេញលេញលើប្រព័ន្ធ។ សម័យការចូលមួយ (login session) គឺជាការប្រតិបត្តិរបស់ shell មួយ (កម្មវិធីបកស្រាយពាក្យបញ្ជា)។ shell សម្រាប់ការចូល (login shell) នេះ គឺជាកម្មវិធីមួយនៅខាងក្រៅ kernel ដែលត្រូវបានជ្រើសនៅពេលបង្កើត login។ ភារកិច្ចរបស់វាគឺបង្ហាញ prompt (សញ្ញាអញ្ជើញបញ្ចូលពាក្យបញ្ជា) និងបកស្រាយបន្ទាត់ពាក្យបញ្ជាដែលអ្នកប្រើវាយ ចាប់តាំងពីពេលចូលរហូតដល់ពេលអ្នកប្រើស្នើចង់ចេញ (logout)។ Bourne shell ដើម (sh ឬ bsh) នៅតែត្រូវបានប្រើសម្រាប់ការកម្មវិធី។ Korn shell (ksh) គឺជាអន្ទាក់បកស្រាយដែលត្រូវបានផ្ដល់អនុសាសន៍ ពីព្រោះមានមុខងាររឹងមាំ និងមានលក្ខណៈស្ដង់ដាសម្រាប់ការកម្មវិធី។ ក្នុងទិដ្ឋភាពនេះ វាជាសំណុំផ្ទៃលើ (superset) នៃ Bourne shell ដើម។ C shell (csh) បានផ្ដល់ភាពស្រួលក្នុងការប្រើប្រាស់អន្តរកម្មល្អលើប្រព័ន្ធ នៅពេលដែល Korn shell មិនមាន។ ការប្រើប្រាស់របស់វាកំពុងតែតិចតួចចុះៗទៅ។ BASH (bash) គឺជា version បើកទូលាយ (Open Source)។ វាបន្ថែមការកែលម្អលើ Korn shell និង C shell ខណៈដែលរក្សាភាពឆបគ្នាឡើងលើ (upward compatibility) ជាមួយ Bourne shell។ command [-option(s)] [argument(s)] command options simple options options with arguments They are often file names (abridged) which will be processed by the shell before invoking the command $ ls -il exemple Of course, some commands do not follow this basic syntax. Furthermore, more advanced mechanisms (redirections, pipelines, etc.) enrich this command line. The following chapters will gradually present these additional aspects. Unix distinguishes between lowercase and uppercase. All commands are in lowercase. Deleting a character Deleting the whole line Logout ពាក្យបញ្ជា [-ជម្រើស(ಗಳು)] [អាគ្យូម៉ង់(ಗಳು)] ពាក្យបញ្ជា (command) ជម្រើស (options) ជម្រើសធម្មតា ជម្រើសដែលមានអាគ្យូម៉ង់ វាជាញឹកញាប់ជាឈ្មោះឯកសារ (ទម្រង់កាត់) ដែលនឹងត្រូវបានដំណើរការដោយ shell មុនពេលប្រតិបត្តិពាក្យបញ្ជា $ ls -il exemple ជាក់ស្តែង មានពាក្យបញ្ជាមួយចំនួនមិនធ្វើតាមវាក្យសម្ព័ន្ធមូលដ្ឋាននេះទេ។ ពីមួយភាគទៅមួយភាគ មានយន្តការលំបាកជាងនេះ (redirect, pipeline ជាដើម) ដែលបន្ថែមលើបន្ទាត់ពាក្យបញ្ជានេះ។ ជំពូកបន្ទាប់ៗ នឹងបង្ហាញបន្ថែមពីឯកសារទាំងនេះបន្តបន្ទាប់គ្នា។ Unix ខុសគ្នារវាងអក្សរតូច និងអក្សរធំ (case‑sensitive)។ ពាក្យបញ្ជាទាំងអស់ ត្រូវសរសេរដោយអក្សរតូច។ លុបតែតួអក្សរមួយ លុបបន្ទាត់ទាំងមូល ចេញពីប្រព័ន្ធ (logout) clear Command without options or parameters. who With the -q option, the command gives a summarized list of the users as well as the number of connected users. who am i tty clear ពាក្យបញ្ជាមួយ ដែលគ្មានជម្រើស (options) ឬប៉ារ៉ាម៉ែត្រ (parameters) ណាមួយ។ who ជាមួយនឹងជម្រើស -q ពាក្យបញ្ជានេះ ផ្តល់បញ្ជីសង្ខេបអ្នកប្រើ និងក៏បង្ហាញចំនួនអ្នកប្រើ ដែលកំពុងភ្ជាប់ផងដែរ។ who am i tty id echo The command interprets a few conventional characters: You must use double quotes ( » « ) for these characters to be interpreted correctly and to avoid conflicts with the shell’s special characters. id echo ពាក្យបញ្ជានេះ បកស្រាយតួអក្សរពិសេសមួយចំនួន៖ ត្រូវប្រើ « double quotes » ( » « ) ដើម្បីឲ្យតួអក្សរពិសេសទាំងនេះត្រូវបានបកស្រាយត្រឹមត្រូវ ហើយដើម្បីជៀសវាងការជាន់គ្នាជាមួយតួអក្សរពិសេសរបស់ shell ផ្សេងៗ។ passwd is used to set or change a password. Whether a password is mandatory, the syntax constraints and the validity periods all vary depending on the version and/or the choices made by the system administrator. On all versions, only the first eight characters of the password are significant. Command with no echo ⇒ password must be entered twice: Syntax constraint: Input error: Display the system date. The administrator can change the date using this command. This command is an example of options that are unusual compared with the classical syntax. $ date '+Il est &H:&M' $ date '+&T' បញ្ជា passwd ត្រូវបានប្រើដើម្បីកំណត់ ឬផ្លាស់ប្ដូរពាក្យសម្ងាត់។ ការត្រូវការមានពាក្យសម្ងាត់ ឬអត់ ក៏ដូចជាកម្រិតកំណត់ទ្រង់ទ្រាយ (syntax) និងរយៈពេលមានសុពលភាព នឹងខុសគ្នាអាស្រ័យលើកំណែប្រព័ន្ធ និង/ឬ ជម្រើសរបស់អ្នកគ្រប់គ្រងប្រព័ន្ធ។ ក្នុងកំណែទាំងអស់ មានតែអក្សរ ៨ តួដំបូងនៃពាក្យសម្ងាត់ប៉ុណ្ណោះ ដែលត្រូវបានគេចាត់ទុកថាសំខាន់។ ពេលប្រើបញ្ជានេះ កាលវាយពាក្យសម្ងាត់ អក្សរមិនបង្ហាញលើអេក្រង់ឡើយ (no echo) ដូច្នេះ ត្រូវវាយពាក្យសម្ងាត់ពីរដង៖ កម្រិតកំណត់ទ្រង់ទ្រាយ (syntax constraint)៖ កំហុសពេលវាយ (input error)៖ បញ្ជា date បង្ហាញកាលបរិច្ឆេទ និងម៉ោងរបស់ប្រព័ន្ធ។ អ្នកគ្រប់គ្រងប្រព័ន្ធអាចផ្លាស់ប្ដូរកាលបរិច្ឆេទតាមរយៈបញ្ជានេះ។ បញ្ជានេះជាឧទាហរណ៍មួយនៃជម្រើស (options) ដែលមានទ្រង់ទ្រាយខុសប្លែកពី_Syntax_ ធម្មតា (classical syntax)។ Cliquer ici pour ajouter votre propre texte1.1.2 កំណែ (VERSIONS)
1.3 FIRST STEPS IN UNIX
1.3.1 LOGGING INTO THE SYSTEM
1.3 ជំហានដំបូងលើ Unix
1.3.1 ការចូលទៅក្នុងប្រព័ន្ធ
Command line syntax
executable file or internal shell command
$ ls -il
$ ps -u stagelarguments &
Special characters
key “Backspace” (Ctrl H)
keys @ or Ctrl U
keys Ctrl D or exit
វាក្យសម្ព័ន្ធនៃបន្ទាត់ពាក្យបញ្ជា
ឯកសារប្រតិបត្តិ (executable file) ឬពាក្យបញ្ជាផ្ទៃក្នុងរបស់ shell
$ ls -il
$ ps -u stagelarguments &
តួអក្សរពិសេស
គ្រាប់ចុច “Backspace” (Ctrl H)
គ្រាប់ចុច @ ឬ Ctrl U
គ្រាប់ចុច Ctrl D ឬ exit1.3.2 FIRST SIMPLE COMMANDS
Clear the screen.
Display the list of connected users. root console Oct 17 08:07stage3 pts/3 Oct 17 12:07
stage5 tty01 Oct 17 09:30
stagel tty02 Oct 17 10:55
root stage3 stage5 stage1 # users=4
Identify the user connected on the terminal.stagel tty02 Oct 17 10:55
Identify the terminal./dev/tty02
១.៣.២ ពាក្យបញ្ជាសាមញ្ញដំបូង
ជម្រះអេក្រង់។
បង្ហាញបញ្ជីអ្នកប្រើ ដែលកំពុងភ្ជាប់។ root console Oct 17 08:07stage3 pts/3 Oct 17 12:07stage5 tty01 Oct 17 09:30stagel tty02 Oct 17 10:55
$ who -q
#users$ =4
root stage3 stage5 stage1
កំណត់អត្តសញ្ញាណអ្នកប្រើ ដែលកំពុងភ្ជាប់នៅលើ terminal ។$ who am i
stagel tty02 Oct 17 10:55
កំណត់អត្តសញ្ញាណ terminal ។$ /dev/tty02
Identify the login name and the names of the groups (primary and secondary).$ id
uid=1001(stagel) gid=1000(stage) groups=1(staff)
$ id stage2
uid=1002(stage2) gid=1000(stage) groups=1(staff)
Display the list of parameters, separating them with a space and ending with a newline.
$ echo Bienvenue chez e-Center
Bienvenue chez e-Center
$ echo "\tA bientot\nchez e-Center\t\c"
A bientot
chez e-Center $
កំណត់អត្តសញ្ញាណឈ្មោះ login និងឈ្មោះក្រុម (ក្រុមមេ និងក្រុមរង)។$ id
uid=1001(stagel) gid=1000(stage) groups=1(staff)
$ id stage2
uid=1002(stage2) gid=1000(stage) groups=1(staff)
បង្ហាញប៉ារ៉ាម៉ែត្រ (arguments) ទាំងអស់ ដោយបំបែកគ្នាដោយចន្លោះ ហើយបញ្ចប់ដោយការចុះបន្ទាត់មួយ។
$ echo Bienvenue chez e-Center
Bienvenue chez e-Center
$ echo "\tA bientot\nchez e-Center\t\c"
A bientot
chez e-Center $passwd
$ passwd
New password:
Re-enter new password:
$ passwd
old password:
New password:
Password is too short - must be at least 6 characters
New password:
Reenter new password:
$ passwd
old password:
Sorry.
date
$ date
Mon Jan 03 17:27:53 WET 2000
Il est 17:28
17:28:28
passwd
$ passwd
New password:
Re-enter new password:
$ passwd
old password:New password:
Password is too short - must be at least 6 characters
New password:
Reenter new password:
$ passwd
old password:
Sorry.
date
$ date
Mon Jan 03 17:27:53 WET 2000
$ date +%H%M'
Il est 17:28
$ date '+&T'
17:28:28
Cliquer ici pour ajouter votre propre texte
Cliquer ici pour ajouter votre propre texte
Cliquer ici pour ajouter votre propre texte
Cliquer ici pour ajouter votre propre texte
Cliquer ici pour ajouter votre propre texte


