- ติดตั้ง
$ yum install python
$ wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
$ chmod +x speedtest-cli Read More
3,289 total views, 1 views today
3,289 total views, 1 views today
ตัวอย่าง การใช้ find ในการค้นหาไฟล์
[[email protected] ~]# find / -name hostname
ตัวอย่าง การใช้ grep ในการค้นหาข้อความในไฟล์นั้นๆ
[[email protected] ~]# grep -n 183.90.168 /etc/sysconfig/network-scripts/ifcfg-ens192
1,496 total views, 1 views today
เข้า Vsphere client คลิ๊กขวาที่ VPS > Guest OS > Install VMware Tools…
1,620 total views, 1 views today
1,323 total views, 1 views today
สำหรับ CentOS 6 เมื่อติดตั้งเสร็จ จะใช้เป็นสิทธิ root เลย
ifconfig
system-config-network
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Modify the file to look similar to the example below.
service network restart
ping 8.8.8.8
957 total views
set nu #สั่งให้ vi แสดงหมายเลขบรรทัด (nu = number) set ic #สั่งให้เวลา Search ไม่ดูการค้น ตัวเล็ก ตัวใหญ่ ใด ๆ (ic = Ignore Case) set nu ic #สั่งให้ทำงานทั้ง 2 แบบ
อ่านเพิ่มเติมได้ที่ https://kb.iu.edu/d/afcx
การค้นหาไฟล์ใน vi editor
/test #ทำการค้นหา keyword n #ค้นหา keyword เดิม next occurrence of the word
อ่านเพิ่มเติมได้ที่ http://ccm.net/faq/982-finding-a-word-in-vi-vim
820 total views, 1 views today