Frequently Asked Questions: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Marked this version for translation)
No edit summary
Line 22: Line 22:
==Text file line endings == <!--T:46-->
==Text file line endings == <!--T:46-->
For historical reasons, Windows and most other operating systems, including Linux and OS X, disagree on the convention that is used to denote the end of a line in a plain text ASCII file. Text files prepared in a Windows environment will therefore have an additional invisible "carriage return" character at the end of each line and this can cause certain problems when reading this file in a Linux environment. For this reason you should either consider creating and editing your text files on the cluster itself using standard Linux text editors like emacs, vim and nano or, if you prefer Windows, to then use the command <tt>dos2unix <filename></tt> on the cluster login node to convert the line endings of your file to the appropriate convention.  
For historical reasons, Windows and most other operating systems, including Linux and OS X, disagree on the convention that is used to denote the end of a line in a plain text ASCII file. Text files prepared in a Windows environment will therefore have an additional invisible "carriage return" character at the end of each line and this can cause certain problems when reading this file in a Linux environment. For this reason you should either consider creating and editing your text files on the cluster itself using standard Linux text editors like emacs, vim and nano or, if you prefer Windows, to then use the command <tt>dos2unix <filename></tt> on the cluster login node to convert the line endings of your file to the appropriate convention.  
== Saving files is slow in my editor ==
=== Emacs ===
Emacs uses the fsync system call when saving files to reduce the risk of losing data in the case of a system crash. This extra reliability comes at a cost: sometimes it can take several seconds to save even a small file when writing to a shared filesystem (e.g., <tt>home</tt>, <tt>scratch</tt>, <tt>project</tt>) on one of the clusters. If you find that your work is impacted by slow file saves, you can add the following line to your <tt>~/.emacs</tt> file to increase performance:
<code>(setq write-region-inhibit-fsync t)</code>
More about this setting here: [https://www.gnu.org/savannah-checkouts/gnu/emacs/manual/html_node/emacs/Customize-Save.html Customize save in Emacs]


== Moving files across the project, scratch and home filesystems == <!--T:40-->
== Moving files across the project, scratch and home filesystems == <!--T:40-->
cc_staff
22

edits

Navigation menu