When you open any terminal window this file will be run. Therefore, if you wish to have a permanent environment variable in all of your terminal windows you have to add the following
Same as bashrc you have to put the mentioned command line at the end of this file to have your environment variable in the every log in of your OS.
If you want your environment variable in every windows or application ( not just terminal window ) you have to edit this file. Add the following command at the end of this file: DISPLAY=0 Note that in this file you do not have to write export command
Normally you have to restart your computer to apply this changes. But you can apply changes in bashrc and profile by these commands:
$ source ~/.bashrc $ source ~/.profile
https://stackoverflow.com/a/31546962/978302
cat /etc/*-release
to beginning and end of the line and write it to file
- cat
- dos2unix
- sed
cat test.txt|dos2unix|sed 's/^/"/;s/$/"/' > file