Re: How to follow symbolic link(s) to the actual filename?
- From: chris-usenet@xxxxxxxxxxxx
- Date: Tue, 31 Jan 2006 10:27:48 +0000
moma <moma@xxxxxxxxxxx> wrote:
> $ ls -l link2 link1 afile
> -rw-r--r-- 1 moma moma 0 2006-01-31 10:58 afile
> lrwxrwxrwx 1 moma moma 5 2006-01-31 10:58 link1 -> afile
> lrwxrwxrwx 1 moma moma 5 2006-01-31 10:58 link2 -> link1
> If my bash script got "link2", how to find the actual filename (afile)?
readlink -f link2
Chris
.
- References:
- Prev by Date: Re: How to write a kernel patch to expose a kernel-level function?
- Next by Date: Re: HEY NEWBIES, LET ME HELP YOU...
- Previous by thread: Re: How to follow symbolic link(s) to the actual filename?
- Next by thread: Mount NTFS read/write with INSERT
- Index(es):
Relevant Pages
|