Skip to main content

Posts

Showing posts with the label Linux

6 Way to Control CD in Linux

ពាក្យបញ្ជា cd នេះ ត្រូវបានគេនិយមប្រើយ៉ាងច្រើន សំរាប់ប្រពន្ធ័ យូនិច និង លីនុច ។ ក្នុងអត្ថបទនេះ ខ្ញុំនិងបង្ហាញ ៦​ ចំនុច នៃពាក្យបញ្ជានេះ ។​ ចំនុចទី១ . ប្រើ CDPATH ដើម្បីកំណត់មូលដ្ឋាននៃកន្សោមឯកសារ ( base directory សំរាប់ពាក្យ cd បើសិនជាអ្នកប្រើ cd សំរាប់ subdirectories អ្នកអាចប្រើប្រាស់ដោយតាងអថេរ CDPATH សំរាប់ធ្វើជា parent directory ហើយប្រើ cd សំរាប់ចូលទៅកាន់ subdirectories ដូចខាងក្រោម ៖ [root@chaitik sokun]# pwd /home/sokun [root@chaitik sokun]# cd asterisk -bash: cd: asterisk: No such file or directory [Note: This is looking for mail directory under current directory] [root@chaitik sokun]# export CDPATH=/etc [root@chaitik sokun]# cd asterisk /etc/asterisk [Note: This is looking for mail under /etc and not under current directory] [root@chaitik asterisk]# pwd /etc/asterisk

5 Basic Way to Control SSH in Linux

៥ មូលដ្ឋានគ្រឹះនៃការប្រើពាក្យបញ្ជា SSH Client សំរាប់ លីនុច ក្នុងអត្ថបទនេះខ្ញុំនិងបង្ហាញពីការប្រើប្រាស់ SSH client ដែលមាន៥មូលដ្ឋានគ្រឹះដូចខាងក្រោម៖ ១. បង្ហាញពីកំណែនៃ SSH client ២. Login ទៅកាន់remote host ៣. បញ្ជូនហ្វាលto/from ទៅកាន់remote host ​​៤. ធ្វើការបង្ហាញពីDebug នៃការតភ្ជាប់របស់​ SSH client ៥. Escape Characterរបស់SSH ដូចជា SSH session, SSH session statistics ១ . បង្ហាញពីកំណែ នៃ SSH client ពេលខ្លះវាមានសារៈសំខាន់ចំពោះការកំណត់ពីកំណែនៃSSH client ដែលអ្នកកំពុងប្រើប្រាស់វានិងបង្ហាញពី​ លេខនៃកំណែដូចតទៅនេះ។ចូរចំណាំថាលីនុចវាមានការតភ្ជាប់ជាOpenSSH ។ [root@chaitik ~]# ssh -V OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 ២ . Login ទៅកាន់ remote host ទី១ . ជាលើកដំបូងពេលអ្នកLogin ពីlocalhost ទៅកាន់remotehost និងបង្ហាញពីhost key​ ដែលវារកមិនឃើញហើយអ្នកអាចclick ដើម្បីបន្តទៅទៀត។ពាក្យhost key រ​បស់remote host វានិងបន្ថែមនៅខាងក្រោមdirectory .ssh2/hostkeys ដូចខាងក្រោម៖ [root@chaitik ~]# ssh -l root 203.223.42.62 The ...