Things to keep in mind when switching between Windows, Macintosh, and UNIX

Filenames

Windows (DOS), Macintosh (including OS X), and UNIX have different conventions for filenames. While in all systems there are not too many restrictions on filenames, there are a few things to keep in mind when copying files coming from a DOS/Windows or Mac environment to a UNIX system. One thing that should not be done is using characters in a filename that have a special meaning in a UNIX environment, in particular *,?,/,,!,&,~, and blanks. While using such characters is not in principle forbidden under UNIX, it might lead to unwanted side effects when accessing such files on the command line. Moreover, it is also not recommended to use special characters (like umlaute or accented characters) in filenames.

Textfiles

Unforunately, Windows (DOS), Macintosh (including OS X), and UNIX use three different conventions for indicating linebreaks in text files (in particular, this applies to TeX files). While many programs (including for example the Emacs editor) under UNIX are able to deal with Windows or Mac files directly, it might be necessary to convert between the formats.
  • On the command line you can use the dos2unix utilities to convert text files. For example use
    • dos2unix paper.tex to convert the file paper.tex from dos-style line endings to unix-style line endings
    • mac2unix paper.tex to convert the file paper.tex from mac-style line endings to unix-style line endings
    Of course you can also use unix2dos respectively unix2mac to convert a file back to its original format.
  • On the graphical user interface, all KDE text editors offer an item End of Line in the Tools menu, where you can select the type you want.
  • Please mail comments about this page to www-admin@esi.ac.at.

 
       
    top

 
  
© 2002 ESI - Erwin Schrödinger Institute

website by rka