PWD(1) General Commands Manual PWD(1)NAME
pwd - print working directory
pwd # Print the name of the working directory
The full path name of the current working directory is printed.
SEE ALSO getcwd(3).
Check Out this Related Man Page
PWD(1) User Commands PWD(1)NAME
pwd - print name of current/working directory
Print the full filename of the current working directory.
use PWD from environment, even if it contains symlinks
avoid all symlinks
--help display this help and exit
output version information and exit
NOTE: your shell may have its own version of pwd, which usually supersedes the version described here. Please refer to your shell's docu-
mentation for details about the options it supports.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report pwd translation bugs to <http://translationproject.org/team/>
Written by Jim Meyering.
Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO getcwd(3)
The full documentation for pwd is maintained as a Texinfo manual. If the info and pwd programs are properly installed at your site, the
info coreutils 'pwd invocation'
should give you access to the complete manual.
GNU coreutils 8.22 June 2014 PWD(1)
In a Unix (ksh) script, is there a way to determine the current working directory path of another logged-in user? Of course, I can use "pwd" to find my own path. But, how do I find it for another active user?
Thanks for any input you can provide. LY (6 Replies)
Hi, first post here be gentle. Very new to Unix. Using HP-UX 10.20
I CD into a remote directory on one machine
$ cd /net/remote hostname
yet when I do an ll in this directory none of the contents appear. It just is empty.
when I do the same command from another machine,
$ cd... (13 Replies)
I have a file in which I need to replace some text with the current path of the execution.
if I am running from
/user/oldtrash/scripts and the file contains
"this is ur directory current_dir"
then I should see the file content as
"this is ur... (6 Replies)
Hello everyone - First post here,
I'm trying to connect to an anonymous ftp server and I am told by the server admin that I cannot have access to the "print working directory" command. I need to have access to this command in order for my (and my clients) preferred ftp client to connect. (the... (9 Replies)
I have a conenction to remote server that I'm sending files too via FTP.
The problem I have is that when the file gets delivered it is 0 (zero) size.
I've manually connected and logged on. The only command I can successfully execute is pwd. When I do a dir or a put command it will... (7 Replies)
In sun solaris, pwdx will give the print working directory.
Suppose I have 5 databases running on different oracle versions.
If I want to know what database is running on what oracle version, I just give pwdx <process id>. It will show the oracle home details.
Could you give me the... (10 Replies)
I have entry in the my .profile like below, but still i see $PWD is not defied in my system
echo $PWD also gives me nothing, my env list also give no entry for PWD.Can someone help me setting PWD variable.
I use /bin/sh (9 Replies)
Assume that you want to set your prompt to display the current working directory followed by a percent symbol and then a space. The command pwd can be used to display this information, so explain why the following command does not have the expected result:
set prompt=" `pwd`'%' "
Its a... (7 Replies)
I decided I wanted to have the cd command print my full working directory after each cd command, so I put this cw command in .bashrc as a function.
}While this works I would like pwd to print escapes when a space in a directory name exists. This would... (7 Replies)
can anyone expalin the real importance of PWD as a variable.
However pwd command and $PWD is going to give the same result, then why do we have 2 different things.
Please give some example which illustrates the difference between both.
Thanks (9 Replies)
I need to utilize pam_pwdfile in order to authenticate virtual users in vsftpd. I know I can utilize htpasswd2 -m to create a password file however it is vital since I am administrating several machines in our organization that the password generated be in clear text. Does anyone on here know if... (10 Replies)
I am trying to use 'pwd' command in following way.
current_directory == /dirA/dirB/test/dirC
if ; then
I am not sure how to pass this in command way. Please help!
emily (10 Replies)