I create many notes in plain text files, but after a while the .txt suffix I put at the end of them seems to be unnecessary typing and visual noise. Is appending .txt to plain text files a strongly encouraged convention or just a suggestion?
|
|
|||||||
|
closed as off topic by Michael Mrozek♦ May 13 '11 at 14:35
Questions on Unix & Linux Stack Exchange are expected to relate to Unix or Linux within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
Adding any extension to any file on Linux/Unix systems is totally optional. However it is much easier to recognise which file contains what type of information at a glance with suitable extensions, particularly when you share your files with others. Also for integration with GUI desktops (or automation of tasks, such as compiling programs), it makes file association much easier - although some associations can be infered from identification within the file, such as the #! for executable scripts and magick number for a variety of file formats, this is not the case for other types of contents, such as plain text or some of the raw images for instance. So at the end of the day it depends on what your text files mean to you and what you do with them. |
||||
|
|
|
I would add
There's lots of "types" of files in Linux/UNIX that are text files, for example, documentation files, configuration files, scripts, source code. By adding And to actually answer your question, it is indeed a convention which probably came into vogue after the rise of DOS. |
||||
|
|