Make Linux and Windows systems friendly

Source: Internet
Author: User
Tags command line file system linux

Linux system, although because of its free, not easy to virus tools and other reasons, gradually on the operating system platform, with Microsoft's operating system, can be a rival. However, due to various restrictions, such as some software must also be able to operate under the Windows platform, such as the financial Department of Value-added tax certification software, personal income tax reporting software, design Department of product design software, so enterprises can not abandon the Windows operating system. Therefore, how the Linux operating system and the Windows operating system can be friendly coexistence, this becomes a Linux system senior administrator faced a topic.

The following author combined with his years of work experience, the Linux operating system I encountered in the work and the Windows operating system to list the places to fight, I hope that these content to the vast number of Linux enthusiasts in the actual work to help.

First, the name of the Chinese file in the Windows operating system is displayed as garbled under Linux.

As often as a user reflects to me, they build a file under the Windows operating system, such as a excle form of an employee payroll card number established by a financial officer. However, the administration is using the Linux system, when the financial staff to send this document to the executive staff, the administrator sees a garbled file name, not "Employee Payroll card Number" so normal display. In fact, this problem is often encountered when the Linux operating system coexists with the Windows operating system. So how do we solve this problem?

Solution Method:

This is primarily a problem caused by the different coding formats of the Windows operating system and the Linux operating system characters. Under the Linux operating system, the UTF8 encoding is used, whereas in Windows, the GDK code is commonly used. Therefore, in the Windows operating environment, you can display the file name, but in the Linux operating system, but not the normal display, the display is garbled, and its file content display will make garbled.

In this case, we need to use the Iconv command to convert the file name and the encoding format of the contents of the file. For example, now the financial staff to the administrator of a file, "Employee Pay Card number. txt" file, in the Linux system display is garbled, at this time, we can in the Linux operating system terminal (that is, the Windows operating system called the command line) mode, Transform using the Iconv format.

Iconv–f gdk–t UTF8 Employee Payroll card number. txt > Employee Payroll card number. Txt.utf8

Note case, in the Linux operating system, the use of Terminal command operation, case is sensitive. This is not the same as the command line format for Windows operating systems, where the command-line mode is case-insensitive, and Dir is equivalent to the dir command. However, in Linux terminal mode, LS and LS two commands are different.

But this is only a temporary way, and if you need such a transformation every time, it's too cumbersome to deal with. Is there any way to do it once and for all? The author now is to do not use Offcie office software inside the company, but use open office open-source word processing software. This software root office function is very similar, but in fact, open source. Most importantly, its support for Linux is very good. In general, the Windows operating system, the use of open Office files, under the Linux operating system to open, it will not appear these garbled problems.

How does the Windows operating system access files under the Linux partition?

The author has installed the Windows XP operating system and the Linux operating system on a single host. One day, the Windows operating system space is full, for this reason, the author intends to remove the Linux file system, have to use the Windows partition format. However, the problem is that I don't know if there are any important files in the Linux operating system partition. And now I'm using XP's operating system, and I can't directly view the Linux OS partition. I think not only has the author encountered this situation, most Linux system administrators may have encountered a similar situation. What should we do in this situation?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.