Where is $PATH set up when Ubuntu boots ?
location: ubuntuforums.com - date: June 5, 2008
Silly beginners question here: Where are the initial values for $PATH set up in Ubuntu. What is the equivalent of the DOS "autoexec.bat" file in which paths are set ?
Where is the default PATH set?
location: ubuntuforums.com - date: May 14, 2010
I'm using Ubuntu 9.10, and trying to figure out where my shell is getting the 'default' PATH environment variable from?
Historically, Linux distros used to put a PATH statement in /etc/profile, or maybe /etc/bash.bashrc. There doesn't appear to be any such statement in either file.
I also noticed that /etc/profile invokes scripts in /etc/profile.d, but it doesn't appear that either of the two files in that directory are setting the path.
So, I'm not sure how bash is getting any path? Does it have a default path hard-coded into the executable, and it's just using the default path?
If I want to globally add a directory to the path, what's the 'best' place to put it? I'm thinking maybe in a file in /etc/profile.d? That way, if an Ubuntu package update overwrite /etc/profile, my local change isn't lost?
where can set Network name on Linux Centos Dhcp Server
location: linuxquestions.com - date: November 22, 2012
am Aneesh & new guy on Linux Centos machine...Now I am facing a problem regarding Network name.Because in my company using Centos 6.3 Server,On the server DHCP & DNS has been configured and everything is working fine...But while I connecting to client(windows 7)through LAN will pick IP Address,Mask,Gateway & DNS Server address but only "network name is not showing" on network connection tab.There showing"Local area connection & Network". if i connecting wi-fi will show SSID(network name)correctly.
So kindly help me guys if you know about this Problem
Aneesh T S
Relative path set to PATH in script
location: ubuntuforums.com - date: February 7, 2012
I'm having a hard time finding a way to do something. This is probably kind of stupid but I want to add a path to the enviroment PATH, the problem is the script isn't going to know where it lives.
There is a tool that comes bundled with a project, project1/tools and that path needs to be set when making project 2.
so I tried (and failed) to do something like this
How is root's PATH set?
location: ubuntuforums.com - date: July 30, 2008
When I run
When I run
Notice the two PATH's differ. I did manage to discover that `sudo su`s PATH is dependent on /etc/environment, so there is little mystery there.
However, I can't seem to find how /usr/X11R6/bin is being added to the PATH when `sudo -i` is run.
I've tried grepping for 'usr/X11R6/bin' in /etc, /usr, and /root, but didn't find anything illuminating.
Does anyone know how root's PATH gets set when `sudo -i` is run?
Where to set JAVAHOME on GeoServer
location: ubuntuforums.com - date: March 15, 2009
Has anyone installed Geoserver? I host my own Ubuntu Server LAMP and have absolutely pulled my hair out trying to set the JAVA_HOME variable. When I use the startup.sh, and the JAVA_HOME variable request is thrown at me. What file does this variable need to be set?
PATH set incorrectly and lost bash: vi command... how can I change .bashrc?
location: linuxquestions.com - date: September 22, 2009
Hi im new to linux. Im trying to install a software and wrote the PATH in the .bashrc file. However, I followed someone elses hand written example (taken from their computer elsewhere) however they left out the $PATH command, for example:
Since then I have lost all my bash commands, ls, vi, su, sudo etc. when I type in echo $PATH I get:
/pathdestination/ (from the above example) but that is it.
I can go to the directory containing the .bashrc file however I can't open it to view using 'vi bashrc' I just get:
bash:vi:command not found
When I try to access using root 'su' or 'su -' I also get
bash:su:command not found
So I'm stuck as to how to modify the .bashrc file. Could someone please help me?
Thanks in advance
Where to set global alias?
location: linuxquestions.com - date: October 3, 2007
I'd like to make the alias 'll=ls -l' available to all users at all times. I've put it /etc/profile which works for console logins however I find that after launching X/Gnome and starting a gnome-terminal, the alias is gone. Is the issue that gnome-terminal creates a non login bash session? Is there some easy workaround here? Thanks.
Where to set default file permissions (umask)?
location: linuxquestions.com - date: November 30, 2003
I'm running mandrake 9.1 and KDE. Generally, I like it. But
I notice that when I save a file, the default permissions are:
This means that "others" can read my files by default.
This does not seem to be a sensible default, so I
would like to change the default permissions to:
But where do I change it?
~/.bashrc points to /etc/bashrc
~/.profile doesn't exist
Putting umask 117 in /etc/bashrc doesn't work.
Putting umask 117 in /etc/profile doesn't work either.
So where is umask being set?
CentOS: How to set font size/ resolution on main console
location: linuxquestions.com - date: November 11, 2009
I use CentOS and i need to set resolution or font size so that i can see more lines of logs at a time on the main console of my CentOS box.
Page: 1 2 3 4 5 6 7 8 9 10