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 convert Linux file format dos

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the Linux file format dos how to convert, the article introduces in great detail, has a certain reference value, interested friends must read it!

When a dos format file is transferred to a Linux system, there will be an extra ^ M at the end of each line, of course, it may not be visible, but in vi, the file format, such as "dos.txt" [dos] 120L, 2532C, is displayed below, indicating that it is a [dos] format file.

1. View the file format: dos format or unix format (1) Open file: vi file name

Eg. Vi test.txt

(2) View the file format:

Command: set ff? # View the file format dos or unix.

Enter, and the result is as follows

(3) conversion file format: forced conversion of dos format and unix format

Command: set ff=dos # is forced to be converted to dos format, or set ff=unix if it is to be converted to unix format

Save: W!

(4) check the file format again. The file has been converted to dos format.

The above is all the contents of this article entitled "how to convert Linux file format dos". Thank you for reading! Hope to share the content to help you, more related knowledge, 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

Development

Wechat

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

12
Report