Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to display Chinese directory and file name under linux

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to display Chinese catalogs and file names under linux. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

To choose a method once and for all is to modify the fstab file under / etc/. My fstab content is as follows:

/ dev/hda9 / ext2 defaults 1 1/dev/hda8 / boot ext2 defaults 1 2none / dev/pts devpts gid=5,mode=620 0 0none / proc proc defaults 0 0none / dev/shm tmpfs defaults 0 0/dev/hda10 swap swap defaults 0 0/dev/cdrom / mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0/dev/fd0 / mnt/floppy auto noauto,owner,kudzu 0 0/dev/hda1 / mnt/winme vfat defaults,codepage=936,iocharset=cp936 0 0/dev/hda5 / mnt/program vfat defaults,codepage=936,iocharset=cp936 0 0/dev/hda6 / mnt/backup vfat defaults,codepage=936 Iocharset=cp936 0 0/dev/hda7 / mnt/files vfat defaults,codepage=936,iocharset=cp936 0 0

The first eight lines are already in the system. Ignore them. I added the last four lines. I will only explain one of them.

Line 9: / dev/hda1 represents system disk C (disk D is followed by 5, and hda5 represents disk D, arranged in turn)

Vfat is a partition format, which means fat32 (fat16 is represented by msdos)

Winme is the folder I created under / mnt to mount disk C to / mnt/winme.

The parameter codepage=936,iocharset=cp936 is added to display Chinese.

The above is the editor for you to share how to display Chinese directories and file names under linux, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report