Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pwd(1) [suse man page]

PWD(1)								   User Commands							    PWD(1)

NAME
pwd - print name of current/working directory SYNOPSIS
pwd [OPTION] DESCRIPTION
Print the full filename of the current working directory. --help display this help and exit --version 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. AUTHOR
Written by Jim Meyering. REPORTING BUGS
Report pwd bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> COPYRIGHT
Copyright (C) 2009 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 command info coreutils 'pwd invocation' should give you access to the complete manual. GNU coreutils 7.1 July 2010 PWD(1)

Check Out this Related Man Page

PWD(1)								   User Commands							    PWD(1)

NAME
pwd - print name of current/working directory SYNOPSIS
pwd [OPTION]... DESCRIPTION
Print the full filename of the current working directory. -L, --logical use PWD from environment, even if it contains symlinks -P, --physical avoid all symlinks --help display this help and exit --version 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. AUTHOR
Written by Jim Meyering. REPORTING BUGS
Report pwd bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> Report pwd translation bugs to <http://translationproject.org/team/> COPYRIGHT
Copyright (C) 2010 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 command info coreutils 'pwd invocation' should give you access to the complete manual. GNU coreutils 8.5 February 2011 PWD(1)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

file of largest size in pwd

How to find file of the largest size in pwd? (4 Replies)
Discussion started by: rameshparsa
4 Replies

2. Linux

GNU's Not Unix! - The Free Software Foundation

The GNU Project: http://www.gnu.org/ (20 Replies)
Discussion started by: Neo
20 Replies

3. Shell Programming and Scripting

Where is and what its name of bigest file

Hi, In linux machine , I would like to know how to locate the name of the largest file and its location in the tree under pwd. Thanks Yoav. (4 Replies)
Discussion started by: yoavbe
4 Replies

4. Solaris

Shell

Hi folks, How can I change a terminal to display different things in different collors.. for example, folders in blue, scripts in green... as it works in Linux?? Thanks for any tip! Fernanda (21 Replies)
Discussion started by: ffpradella
21 Replies

5. Shell Programming and Scripting

echo $PWD doesn't work

I have entry in the my .profile like below, but still i see $PWD is not defied in my system export PS1=$LOGNAME@`hostname`':'$PWD'>' 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)
Discussion started by: yesmani
9 Replies

6. Shell Programming and Scripting

Current working directory in prompt

Can someone tell me how do i set my current working directory in my prompt? Note: I dont want to use env variable PWD and using `pwd` gives me only my home directoy. suggest a different way ? I use /bin/sh thanks!! (3 Replies)
Discussion started by: yesmani
3 Replies

7. UNIX for Dummies Questions & Answers

crontab environment help

Hi, I've read many many threads and I'm still having problems (yes i read https://www.unix.com/answers-frequently-asked-questions/13527-cron-crontab.html and it's suggested posts too). My problem is with the $PWD, yes, that's the only causing problems so i have exported the PATH, I've checked... (12 Replies)
Discussion started by: malky
12 Replies

8. UNIX for Dummies Questions & Answers

PWD COMMAND

Hi, Can you tell me if there is a command such as pwd which does not give me the absolute NFS pathname i.e. it starts with .autofs? At the moment on the unix when I use the 'pwd' command it always gives me the nfs pathname rather thanthe local pathname of which is what i want, is there an... (4 Replies)
Discussion started by: cyberfrog
4 Replies

9. UNIX for Dummies Questions & Answers

set prompt = pwd

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)
Discussion started by: Blockshelf
7 Replies

10. UNIX for Dummies Questions & Answers

Present Working Directory (not the full path)

Hi, Is there a command that tells you right away the current working directory? I know the command "pwd", but that one gives the full path. if pwd gives me: /a/b/c/d/ggg/HERE I want something that will give me: HERE Thanks, Gaurab (13 Replies)
Discussion started by: gaurab
13 Replies

11. Shell Programming and Scripting

Make pwd print escape character

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. cw () { cd "${1}" pwd }While this works I would like pwd to print escapes when a space in a directory name exists. This would... (7 Replies)
Discussion started by: jelloir
7 Replies

12. UNIX for Dummies Questions & Answers

$PWD vs `pwd`

Hi, 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)
Discussion started by: pandeesh
9 Replies

13. UNIX for Dummies Questions & Answers

Current working directory

Hi all, How do I print the name of my current working directory only to screen? Not pwd! For example, if I was in /home/work I am looking for 'work' only (4 Replies)
Discussion started by: jimjam
4 Replies

14. UNIX for Dummies Questions & Answers

Getting ls content into a file using variable

hi i just cant figure out how can i do this ls -lt > log.txt using $PWD what i mean is how can i get the ls command content into a file using $PWD variable? :confused: (4 Replies)
Discussion started by: chinababy
4 Replies

15. Shell Programming and Scripting

Unable to swap values

#!/bin/bash pwd1=`cat 1.ini | grep -w PWD | cut -d'=' -f2` //value is /home/java/Desktop/sh_h echo the value is `pwd` pwd2=`cat 2.ini | grep -w PWD | cut -d'=' -f2` //value is /home/unix/Desktop/sh_h echo the value is $pwd2 if ] then echo both are same else pwd2=$pwd /* here i want to... (6 Replies)
Discussion started by: anandpasunoori
6 Replies