0

Normally, every text document has an extension. With LibreOffice Writer, the extension could be .odt or .doc, etc depending on your preference but mousepad and leafpad don't provide extensions automatically. I do not mind that, but I do not understand why those files do not have an extension. Why is that?

pomsky
  • 68,507
  • 4
    You write "Normally, every text document has an extension" but that isn't strictly true. See https://unix.stackexchange.com/a/267250/61798 – DK Bose Jan 09 '19 at 11:23
  • 1
    Possible duplicate: https://askubuntu.com/questions/803434/do-file-extensions-have-any-purpose-for-the-operating-system – DK Bose Jan 09 '19 at 11:28
  • 2
    Normally in Windows, but there are many examples of files without any extension in Linux. – sudodus Jan 09 '19 at 11:42

1 Answers1

3

With LibreOffice Writer you are creating an Open Document (word document) file, so by default it suggests odt extension because it knows what the file is supposed to be.

With leafpad, ,mousepad, gedit, and any other text editors the options are endlessness.

The file can be a simple text file or anything else. it can be a PHP, Perl or Python script, it can be an HTML or XML markup language, JSON file, config file or anything else that you can think of.

So it doesn't use any extension by default. That is up to you to choose the one which best suits you.

Ravexina
  • 55,668
  • 25
  • 164
  • 183