Ask Your Question
0

Where are locate the path file

asked 2015-03-13 20:19:03 -0500

tiago gravatar image

I need editing the path manuall but no locate the file or directory in ubuntu the path is locate in /etc/environment and MAC OS X /etc/paths And in the fedora where are locate the path directory for editing manually with nano???? my installation is fedora 21!!!!

edit retag flag offensive close merge delete

Comments

1

4 Answers

Sort by ยป oldest newest most voted
1

answered 2015-03-14 09:33:18 -0500

darakus gravatar image

updated 2015-03-15 09:55:39 -0500

You'll want to add some lines to your ~/.bash_profile if you need the path for just yourself. Or, to make the change global, create a file in /etc/profile.d/ with an arbitrary filename ending in .sh. For example: custompath.sh

Whichever way you choose you'll want to add the following to the file:

PATH=$PATH:/new/path/to/add
export PATH

Also, this question has been answered many times, you might want to do a search before asking a question.

edit flag offensive delete link more
0

answered 2015-03-14 08:00:18 -0500

I don't know if I understood the question correctly...

Are you looking for the 'locate' command? It's provided by the 'mlocate' package and should be already installed on your system. just try it:

$ locate nano

But remember that you have to set up the related database first (by root):

# updatedb
edit flag offensive delete link more
0

answered 2015-03-14 13:39:54 -0500

tiago gravatar image

On Mac, type in terminal nano /etc/paths and edit the path!!!! In Ubuntu type in terminal nano /etc/environments and edit the path file!!! Is possible in fedora????

edit flag offensive delete link more
0

answered 2015-03-14 14:37:04 -0500

tiago gravatar image

I want edit global system files!!!!!

edit flag offensive delete link more

Comments

You shouldn't edit the global system files directly, instead you can apply you own custom global settings in a file ending in .sh within the /etc/profile.d/ directory. The system files look at this directory and run the commands inside any files ending in .sh.

darakus gravatar imagedarakus ( 2015-03-15 09:54:35 -0500 )edit

I want edit the global system files!!!!!!!!!!!!! Where located the path file for edit????

tiago gravatar imagetiago ( 2015-04-16 06:32:20 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2015-03-13 20:19:03 -0500

Seen: 1,798 times

Last updated: Mar 15 '15