The Y1
Thursday, 1 July 2010
List file full path in Bash
$PWD contains the full path of the current directory.
To output the full path of a file, you can simply do
echo "$PWD/filename"
Easy and useful!
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment