pwd(n) Tcl Built-In Commands pwd(n)
pwd - Return the current working directory
Returns the path name of the current working directory.
file(n), cd(n), glob(n), filename(n)
Check Out this Related Man Page
pwd(1T) Tcl Built-In Commands pwd(1T)__________________________________________________________________________________________________________________________________________________NAME
pwd - Return the absolute path of the current working directory
Returns the absolute path name of the current working directory.
Sometimes it is useful to change to a known directory when running some external command using exec, but it is important to keep the appli-
cation usually running in the directory that it was started in (unless the user specifies otherwise) since that minimises user confusion.
The way to do this is to save the current directory while the external command is being run:
set tarFile [file normalize somefile.tar]
set savedDir [pwd]
exec tar -xf $tarFile
SEE ALSO file(1T), cd(1T), glob(1T), filename(1T)KEYWORDS
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability | SUNWTcl |
|Interface Stability | Uncommitted |
Source for Tcl is available on http://opensolaris.org.
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)