Re: get /full/path/filename.ext from filename.ext

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Dec 09, 2014 at 03:57:03PM -0500, ken wrote:
> You'd think this functionality would be included already in one or
> another linux utility.  It's kinda like the complement to the
> 'basename' utility.  I've looked into the dark corners of ls, stat,
> file, bash, type, find, and a few other linux standards, but nothing
> seems to do this.

'readlink -f FILE'

The -f (or --canonicalize) follows symlinks and prints the canonical
path.

-- 
Jonathan Billings <billings@xxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux