Search code examples
linuxgedit

How to change text file extension type in Linux?


Using gedit, I want to create a config.env file, how do I change the extension as simply naming it config.env doesn't work.

THanks in advance


Solution

  • It really doesn't matter what the file extension is, as long as it is in a linux machine. Just execute file <filename> to know the file type.

    However you could try this:

    Save the file as it is like config.txt or other and execute the below command

    mv config.txt config.env