How Do I Edit Etc Profile in Linux?
Contents

How do I edit a user profile in Linux?

Visit your home directory, and press CTRL H to show hidden files, find . profile and open it with your text editor and make the changes. Use the terminal and the inbuilt command-line file editor (called nano). Press Y to confirm changes, then press ENTER to save.

How do I edit the ETC environment file in Linux?

How to set environment variable on Ubuntu

  1. 1. /etc/environment. 1.1 Add a new environment variable MY_HOME=/home/mkyong in the /etc/environment file and source it to reflect the changes. $ sudo vim /etc/environment. 1.2 Modify, save and exit. …
  2. 2. /etc/profile. d/new-env. sh.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest