Big Data and Hadoop Training @$80 or Rs. 6,000 only - valid till Oct 17th Apply Now!

what is etc profile file in Linux

Ads
 

what is etc profile file in Linux

Hi,

I want to know more about the /etc/profile file in Linux.

What is the use of /etc/profile file?

Thanks

View Answers

May 21, 2018 at 12:32 AM

Hi,

The profile file:

/etc/profile

Is very import file in Linux system. This file is used to set the system wide environment variable. If you set any variable in this file it will be available for all the users of the system.

You can use the vi editor in Linux terminal to do so:

vi /etc/profile

Then add variable of choice.

For example to set system wide JAVA_HOME you can add following line:

export JAVA_HOME=/opt/software/jdk1.8

Thanks


May 21, 2018 at 12:33 AM

Hi,

check one real example at:

how to install anaconda in ubuntu for all users?

Thanks

Ads









Related Tutorials/Questions & Answers:
Uploading a Profile with image[file] into a sql database
Uploading a Profile with image[file] into a sql database  I need to upload a file along with the some text into a database ......[ Similar to http... , but upload file to database ] ... Pls help
What is Linux?
What is Linux?        ...; Linux is a free Unix-type operating system originally developed by Linus... of GNU worked together to develop what we now take for granted, a derivative
Advertisements
Deploying website war file on linux
Deploying website war file on linux  I have BOLLYWOOD_MIRROR.war file.I want to host it on linux server on path. After deployment of war file its... guidance of hosting war file on linux Thank you
What is Linux?
What is Linux?        ...;      Linux is an Unix based Complete... Linux was developed for x86, but now it runs on the various platforms
What is Linux Hosting?
Linux is an operating system that is developed and licensed as open source software that can be accessed by any web developer and services. Linux... and cloud services. Presently along with Windows hosting services Linux hosting
What is a file Separator?
What is a file Separator?  What is a file separator in Java Program?   Hi, The file separator is nothing but a character that we used to separate directory path names for a particular location. These file separator
What is robot.txt file?
What is robot.txt file?  Hi, What is robot.txt file? Thanks   Hi, The robot.txt file is places in the root of the website. It allows... of your website. Here is example of robot.txt file: User-agent: * Allow
what is hibernate dtd file location
what is hibernate dtd file location  Hi, I am trying to find dtd of Hibernate online but not able to find. what is hibernate dtd file location Thanks
Linux installation
Linux installation  I want to install linux for generally purpose functions,which linux[fedora , ubunto,centos etc ]should i install.In my pc there is already windows,How much the linux will effect my windows & data in C
update profile
update profile  coding for update profile
How to delete content of a log file from linux terminal?
How to delete content of a log file from linux terminal?  Hi, My production server is on the linux machine. I am trying to debug and find the slow...-queries.log file. Can anyone tell me how to do this? Thanks   Hi, Its
profile display
profile display  How to create a user profile in JSP   Please visit the following links: http://www.roseindia.net/servlets/web-application.shtml http://www.roseindia.net/jsp/user-registration-form-using-jsp.shtml
profile display
profile display  Is it possible to create a user profile in Servlet and JSP   Please visit the following links: http://www.roseindia.net/servlets/web-application.shtml http://www.roseindia.net/jsp/user-registration
profile display
profile display  Create Jobseeker's profile in JSP and Servlet   Please visit the following links: http://www.roseindia.net/servlets/web-application.shtml http://www.roseindia.net/jsp/user-registration-form-using
Editing the Profile
Editing the Profile  how to populate drop-down menu instead of text box in editing the profile
profile display
profile display  how to display matching jobs in jobseeker's profile using jsp-servlets?   Please visit the following links: http://www.roseindia.net/servlets/search.shtml http://www.roseindia.net/jsp/user
Update Profile
Update Profile       Update Profile This facility is used for updating user information in the database. Such as login id, name, password, email address etc. When
profile display
profile display  Search page to display matching results in JSP and Servlet   Please visit the following links: http://www.roseindia.net/servlets/search.shtml http://www.roseindia.net/jsp/user-search.shtml
Where is my.cnf in linux?
Where is my.cnf in linux?  Hi, Can anyone tell me where is my.cnf in linux? Thanks   Hi, Its is /etc folder. The complete path with file name is /etc/my.cnf. Thanks
What are the concepts and purpose of Spring configuration file.
What are the concepts and purpose of Spring configuration file.  Hi, What are the concepts and purpose of Spring configuration file. Thanks
profile page
profile page  sir, i am beginer in php i am creating simple web site.i am creating login form.the user login he can any status,photo update.he can display in home pages in all user login.but problem in user goto profile page
What changes I have to do in php.ini file for file uploading?
What changes I have to do in php.ini file for file uploading?  What changes I have to do in php.ini file for file uploading
profile display
profile display  how to display matching Results using jsp-servlet?   Please visit the following links: http://www.roseindia.net/servlets/search.shtml http://www.roseindia.net/jsp/user-search.shtml http
profile display
profile display  Fetch Matching jobs in JSP Servlet  Please visit the following links: http://www.roseindia.net/servlets/search.shtml http://www.roseindia.net/jsp/user-search.shtml http://www.roseindia.net/jsp
The Beginners Linux Guide
The Beginner's Guide to Linux Dedicated website to Linux containing Online Resource, Links to Linux Resources and Tutorials. Here you will find a lot of tutorials and information about the Linux. What is Linux
If I open .class file with notepad what is displayed?
If I open .class file with notepad what is displayed?   What is displayed when we open java .class files with notepad
jsf application war file not running in my jboss 6.0 on linux 5.5
jsf application war file not running in my jboss 6.0 on linux 5.5  17:15:47,647 INFO [config] Initializing Mojarra (1.2_08-b06-FCS) for context '/MFPMSDeployment' 17:15:48,354 INFO [TomcatDeployment] deploy, ctxPath=/ 17
profile display
profile display  JSP Servlet Search Page   1)search.jsp: <html> <head> </head> <body> <br><br><br><br><br><br></p> <form method="post" name="frm
We are providing Linux CD's for free.
Linux 9.0 Linux! Linux! Linux! Get Your Linux CD's Today What is Linux? Linux is a free Operating System, Which was developed by Linus Trovalds to provide free, open source Unix-like OS. The code for Linux is freely available
We are providing Linux CD's for free.
Mandrake Linux Linux! Linux! Linux! The Best Place to get your Free Linux Mandrake 9.1 CD's Get Your Linux CD's Today What is Linux? Linux is a free... source Unix-like OS. The code for Linux is freely available to everyone under GNU
What is the best way to write to file in Java?
What is the best way to write to file in Java?  I am creating a program in Java which writes into a text file. What can be the be best method to write to a text file in Java? Since my program will continuously write the data

Ads