Frequent Question: Where Is Profile in Linux?

Frequent Question: Where Is Profile in Linux?
Contents

The . profile file is an important part of automating your software installations. The . profile file is located in the user-specific folder called /home/.

What is profile file in Linux?

The /etc/profile File

The /etc/profile contains Linux system wide environment and other startup scripts. Usually the default command line prompt is set in this file. It is used for all users logging in to the bash, ksh, or sh shells.

How do I edit a profile in Linux?

You have two options for editing the file.

  1. 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.
  2. Use the terminal and the inbuilt command-line file editor (called nano). Open Terminal (I think CTRL Alt T works as a shortcut)
James H. Sterling
Author

James H. Sterling

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