Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => command , shell script ,tool , crontab => Topic started by: golfreeze on สิงหาคม 26, 2018, 02:05:25 PM

Title: vi แล้วเจอ error xterm-256color. [Using open mode]
Post by: golfreeze on สิงหาคม 26, 2018, 02:05:25 PM
ถ้าเราเข้า vi ใน os รุ่นเก่าๆ จะเจอปัญหา xterm-256color ครับ
#vi file
xterm-256color: Unknown terminal type I don't know what kind of terminal you are on - all I have is 'xterm-256color'. [Using open mode]

###fixed by แก้ไขโดยเพิ่มการ export TERM=xterm ลงไปด้วยครับ
export TERM=xterm

เสร็จแล้วทำการ vi file อีกรอบ
#vi file