In my linux machine, path are configured as follows
non-root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/java
root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
when i tried to
sudo echo $PATH
it shows non-root user path only not root path
but when i put
echo $PATH
in script and tried to execute with sudo, it give
I am compiling an Android app on server with java build tool ant.
Helllo Everyone,
I am new to Fedora and am running F18. I found a very simple script online here:
http://bash.cyberciti.biz/time-and-d...t-user-script/
I have created a greeting file /usr/sbin/greeting.sh and have included the path to .bash_profile:
Code:
#.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
.
So I am using CentOS 6.3 a fresh install and I was trying to add things to my path for OpenMPI so I edited my .bash_profile file to read:
FOO='test'
export FOO
# Add support for MPI
PATH=$PATH:/usr/lib64/openmpi/bin
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
Which apparently isn't being read when I start up a bash shell, my $PATH is without the /usr
I install sqlplus using these steps https://help.ubuntu.com/community/Oracle%20Instant%20Client
but I am getting error while type "sqlplus"
**sqlplus: error while loading shared libraries: libclntsh.so.11.1:
cannot open shared object file: No such file or directory**
and I check my env variable :
ORACLE_HOME=/usr/lib/oracle/11.2/client
ORACLE_SID=XE
PATH=/usr/local/sbin:/usr/local/bin:/usr/s
I'm trying to set the $PATH to pick up the latest version of pg_dump as I'm currently getting a mismatch error while doing a migrate in my Rails app (I recently changed the schema type to SQL).
I have added a new file in /etc/profile.d called pg_dump.sh, and inside that put:
PG_DUMP=/usr/pgsql-9.1
export PG_DUMP
PATH=$PATH:$PG_DUMP/bin
export PATH
On looking at echo $PATH, I get:
/usr/local/r
I'm pretty new to Apache Tomcat and somewhat new to Linux altogether. I am trying to install the JDK, which is a prereq for Apache Tomcat. I downloaded and untarred the JDK to /usr/java and now I'm trying to set the environment path.
I need to alter my PATH variable so I put export PATH=$PATH:somedir in my $HOME/.profile which is sourced by my $HOME/.zshrc.
This works, yet whenever I open a new terminal (urxvt in X11), .zshrc and thus .profile is read, adding the :somedir to the PATH again.
Hi,
I tried to add a path vairable
export GPLOAD_CONNECT_STR= -U crm -h sdc-gp1-dev1 -d wmgpdev
but it throws the below error
-bash: export: `-U': not a valid identifier
-bash: export: `-h': not a valid identifier
-bash: export: `sdc-gp1-dev1': not a valid identifier
-bash: export: `-d': not a valid identifier
Anyone please help to fix this error
thanks in advance,
Burton