User Tools

Site Tools


move_txtfiles_linux_windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
move_txtfiles_linux_windows [2016/04/06 11:21]
Burt Henry created
move_txtfiles_linux_windows [2019/02/09 10:31] (current)
Line 1: Line 1:
-==== Move Text Files Between Linux and Windows ====    +===== Move Text Files Between Linux and Windows =====    
   by B.H.   by B.H.
  
-=== Introduction ===+==== Introduction ====
 While all modern operating systems found on personal and business computers can, and in some cases must work with text files these files are not all created equally. Besides .txt files plain text is also used in files with extensions such as .ini, .conf, .cfg and .log among others. These files are  While all modern operating systems found on personal and business computers can, and in some cases must work with text files these files are not all created equally. Besides .txt files plain text is also used in files with extensions such as .ini, .conf, .cfg and .log among others. These files are 
 convenient because they are relatively small compared to files such as .doc, .odf or .rtf that use many extra characters to control how the file' convenient because they are relatively small compared to files such as .doc, .odf or .rtf that use many extra characters to control how the file'
Line 9: Line 9:
 for an operating system to another.  for an operating system to another. 
  
-=== How Text Files Differ: ===  +==== How Text Files Differ: ====  
-== Linux, Windows and Mac-OS ==+** Linux, Windows and Mac-OS **
 There are two characters used to tell the computer that the end of a line has been reached, cr, (carriage return),  There are two characters used to tell the computer that the end of a line has been reached, cr, (carriage return), 
 and lf, (line feed). DOS, and now Windows use both of these, first cr, and then lf to terminate lines, while in Linux and other Unix based OS's the lf  and lf, (line feed). DOS, and now Windows use both of these, first cr, and then lf to terminate lines, while in Linux and other Unix based OS's the lf 
Line 18: Line 18:
 another OS, period end of story, except for maybe an error message.  another OS, period end of story, except for maybe an error message. 
  
-=== Convertion ===+==== Convertion ====
 There are editors that let you choose how you wish to save the files they create or open. One of these is the Nano editor that comes on Vinux and is available for almost all Linux distros. Editors may preserve non-native formats, but others may automatically convert line-endings to the style native to the OS they are running on.  There are editors that let you choose how you wish to save the files they create or open. One of these is the Nano editor that comes on Vinux and is available for almost all Linux distros. Editors may preserve non-native formats, but others may automatically convert line-endings to the style native to the OS they are running on. 
  
Line 25: Line 25:
 it's command/syntax is so easy to remember. For basic use you just type fromdos filename or todos filename. Let's say you write a file using the Windows notepad program called file_conversion.txt and you copy it in to your home directory. Open a gnome-terminal or log-in to a console and as you will already be in your home directory just type fromdos file_conversion.txt and todos prepares a file made for Unix/Linux for use on DOS or Windows machines. The manpage for tofrodos is easy to understand even for a Linux novice, and will explain the options available beyond simple conversion.  it's command/syntax is so easy to remember. For basic use you just type fromdos filename or todos filename. Let's say you write a file using the Windows notepad program called file_conversion.txt and you copy it in to your home directory. Open a gnome-terminal or log-in to a console and as you will already be in your home directory just type fromdos file_conversion.txt and todos prepares a file made for Unix/Linux for use on DOS or Windows machines. The manpage for tofrodos is easy to understand even for a Linux novice, and will explain the options available beyond simple conversion. 
  
-=== Conclusion ===+==== Conclusion ====
 Plain text is the most efficient human readable file format, Plain text is the most efficient human readable file format,
 and these files can be used across all the popular personal computing operating systems. There are however differences between OSs in how these files are read and written, so, while some programs can detect text file line-break formats that are not native to their operating system it's always best practice and often essential to create and edit text files on the operating system they will be used on, or if this is not convenient use a conversion utility such as tofrodos to "fix" them to be compatible with the destination OS. and these files can be used across all the popular personal computing operating systems. There are however differences between OSs in how these files are read and written, so, while some programs can detect text file line-break formats that are not native to their operating system it's always best practice and often essential to create and edit text files on the operating system they will be used on, or if this is not convenient use a conversion utility such as tofrodos to "fix" them to be compatible with the destination OS.
move_txtfiles_linux_windows.txt · Last modified: 2019/02/09 10:31 (external edit)