11-04-2005
Are you logging in as root while using the command line version? This would cause the home directory to be set as root and your pwd would be the home directory (root's home directory).
If you are trying to read the configuration file without using the absolute path, your script/program will look for the file relative to the pwd. May be thats why you have this problem.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello guys ,
Is there a way to backup unix files from a windows 2003 server
i have a tape drive in the unix box but just for extra security what would be the best way to backup unix files .
Thanks a lot (7 Replies)
Discussion started by: josramon
7 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?.
Regs
Anand (5 Replies)
Discussion started by: u449064
5 Replies
3. UNIX for Dummies Questions & Answers
I have two machines, one running Windows and another one Unix over a network. I want to execute a batch file on the Windows machine using a script running on the Unix machine.
I have tried creating a rsa key and transferrring it to the destination machine but it doesn't work. The purpose was to... (3 Replies)
Discussion started by: MobileUser
3 Replies
4. Shell Programming and Scripting
I am using windows Xp. From windows I would connect to my IBM AIX unix machine using telnet client. Is there any command available to view the IP address of Windows machine from Unix? (Note that ifconfig will give unix mahcine's IP address currently logged in.) (3 Replies)
Discussion started by: mvictorvijayan
3 Replies
5. Shell Programming and Scripting
i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies
6. Shell Programming and Scripting
Hello World,:cool:
Is there a Way to create a UNIX enviornment on Windows bases Machine for enchancing my Skills regarding UNIX scripting.:confused:
I know a software name VMware but i dont know how to confiure it:rolleyes:. If this is the apporitate tool for UNIX please guide me the... (3 Replies)
Discussion started by: jojo123
3 Replies
7. UNIX for Dummies Questions & Answers
What is the best way to learn UNIX, shell, and Perl on a Windows 2000 machine? My place of employment uses Solaris and Perl and I would like to learn some UNIX skills on my home PC.
I read about "dual boots", "Microsoft Windows Services for UNIX", and "cygwin". What other free options are... (9 Replies)
Discussion started by: wolfv
9 Replies
8. Shell Programming and Scripting
Hi Experts,
I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers.
Could some body provide the inputs for this.
and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies
9. UNIX Desktop Questions & Answers
Hello,
I am pretty new to UNIX and would like to know how i can run unix commands on a windows 7 machine. Basically, I want to practice running commands, created bash/awk/etc. scripts. I've read some things about cygwin, but it doesn't sound like it's exactly what I'm looking for.
Any... (4 Replies)
Discussion started by: tester213
4 Replies
10. Shell Programming and Scripting
hi,
i am using ftp command to transfer files from unix server to windows server using a web interface.
there is a shell script which is called by the web page which executes a ftp command which (ftp) tries to connect to the windows machine and asks for username and password.
so in order to... (6 Replies)
Discussion started by: Little
6 Replies
pwd(1) General Commands Manual pwd(1)
NAME
pwd - working directory name
SYNOPSIS
DESCRIPTION
prints the path name of the working (current) directory.
Options
recognizes the following options:
Display the directory with the name of the symbolic link if any.
If the environment variable contains an absolute path name of the current directory that does not contain the file names
(dot) or (dot-dot), writes this path name to standard output. Otherwise, the option behaves like the option.
Display the actual physical directory path.
Directories of symbolic link types are not displayed.
If both and are specified, the last one applies. If neither nor is specified, the default option is:
from UNIX 2003 environment onwards; see standards(5).
otherwise.
EXTERNAL INFLUENCES
For information about the UNIX Standard environment, see standards(5).
Environment Variables
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multibyte character code sets are supported.
DIAGNOSTICS
Possible file system trouble; contact system administrator.
Current directory has been removed (usually by a different process).
Use command to move to a valid directory (see cd(1)).
EXAMPLES
If your home directory is and the command is executed from the home directory, typing produces the following display:
In the following example, a symbolic link, points to the directory. Then the command displays the actual directory:
The command displays the directory with the symbolic link:
In the following example, there is no symbolic link. The displayed directory is the same for both the and options.
AUTHOR
was developed by AT&T and HP.
SEE ALSO
cd(1), csh(1), sh(1), sh-posix(1), standards(5).
STANDARDS CONFORMANCE
pwd(1)