10-19-2001
have you tried
<pre>
echo $PWD
</pre>
Aris ;=)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear Guys ,
i installed sun solaries 8 for intel platform .
now i want to edit root env or init. files in order to add the follwing :
EDITOR=vi
export PATH EDITOR
export PS1=`uname -n`:\$PWD\>
set -o vi
alias dir="ls -la|more"
alias c=clear
stty erase "^H"
what file i have to... (13 Replies)
Discussion started by: tamemi
13 Replies
2. HP-UX
The root pwd on an hpux11i box was changed by an ex-employee. Is there anyway to reset it without shutting down the machine? If not how can I do it..
Thanks in Advance
Brian (6 Replies)
Discussion started by: breigner
6 Replies
3. UNIX for Advanced & Expert Users
Dear friends,
I am using linux os .
my root passward has expired suddenly.
in command prompt iam giving su-
and password
it is saying that your root password has expired .
how to get my root password.
anyone pls rep.
rajan (3 Replies)
Discussion started by: rajan_ka1
3 Replies
4. Solaris
Hello,
I'm working on a Solaris 9 machine. I found the root's environment variables (say, $PATH, $ORACLE_HOME, big problem) were set differently from the users'. All regular users use C shell now and share the same environment file stored in /usr/local/config/cshrc.default.
Should I just use... (4 Replies)
Discussion started by: alanlh
4 Replies
5. UNIX for Dummies Questions & Answers
Could you please tell me, which process / file is responsible for the setting of PWD env variable in Solaris
Thanks (1 Reply)
Discussion started by: chaandana
1 Replies
6. Shell Programming and Scripting
Hi,
I want to assign a pwd value to a variable
filepath=$pwd
Thx in advance (4 Replies)
Discussion started by: vls1210
4 Replies
7. AIX
currently, my samba login works just fine. i want my clients to use aix5.3 account to login to samba so they don't have to change samba pwd and aix pwd. i googled, and vi /usr/lib/smb.conf per some of knowledge base, but i could not get to work.
aix5.3 and samba 3.0.24.0
thanks in advace..... (2 Replies)
Discussion started by: tjmannonline
2 Replies
8. Shell Programming and Scripting
is there anyway i could store the output of pwd that is the path in a variable...? (7 Replies)
Discussion started by: vivek d r
7 Replies
9. Web Development
(Above from Apache docs).
On my system, using:
SetEnvIf User-Agent Mozilla IsBad=1
Order allow,deny
Allow from all
Deny from env=IsBad ...I see that environment variable is set (using phpinfo()) but the page is still served. No errors in the Apache logs. (1 Reply)
Discussion started by: gnurob
1 Replies
10. Red Hat
Hi all,
Hereby wish to have your advise for below:
Main concept is
I intend to get current directory of my script file.
This script file will be copied to /etc/init.d.
A string in this copy will be replaced with current directory value.
Below is original script file:
... (6 Replies)
Discussion started by: cielle
6 Replies
LEARN ABOUT OPENDARWIN
printenv
PRINTENV(1) BSD General Commands Manual PRINTENV(1)
NAME
printenv, env -- print out the environment, set and print environment
SYNOPSIS
printenv [name]
env [-i] [name=value ...] [utility [argument ...]]
DESCRIPTION
The printenv utility prints out the names and values of the variables in the environment, with one name/value pair per line. If name is
specified, only its value is printed.
Some shells may provide a builtin printenv command which is similar or identical to this utility. Consult the builtin(1) manual page.
The env utility executes utility after modifying the environment as specified on the command line. The option name=value specifies an envi-
ronment variable, name, with a value of value.
The options are as follows:
-i Execute the utility with only those environment values specified. The environment inherited by env is ignored completely.
If no utility is specified, env prints out the names and values of the variables in the environment, with one name/value pair per line.
The env utility is sometimes useful with the ``#!'' construct (see execve(2)). The only difference between ``#!/usr/local/bin/foo'' and
``#!/usr/bin/env /usr/local/bin/foo'' is that the latter works even if /usr/local/bin/foo is itself interpreted. Using env this way also
allows one to reference foo without the path, as well as set up the environment as desired.
ENVIRONMENT
The env utility uses the PATH environment variable is used to locate the requested utility if the name contains no '/' characters.
DIAGNOSTICS
The printenv utility exits 0 on success, and >0 if an error occurs.
The env utility exits 0 on success, and >0 if an error occurs. An exit status of 126 indicates utility was found, but could not be executed.
An exit status of 127 indicates utility could not be found.
COMPATIBILITY
The env utility accepts the - option as a synonym for -i.
SEE ALSO
csh(1), sh(1), execvp(3), environ(7)
STANDARDS
The env utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The printenv command appeared in 3.0BSD.
BUGS
The env utility doesn't handle utility arguments with equal (``='') signs in their names, for obvious reasons.
BSD
June 6, 1993 BSD