Bash syntax question for LiveCD (

Andrew Benton b3nt at
Fri Feb 10 03:41:31 PST 2006

Niki Kovacs wrote:
> Hi,
> I'm taking up LFS again after a few weeks break. I'm following the hint for 
> the LiveCD. Among other things, I'd like to test for the presence 
> of the /tools symlink before creating it. Like this:
> Does the symlink /tools exist? 
> No --> create it.
> Now what would that look like in Bash syntax?

Why not just use the -f flag (force) and create it anyway?

ln -sfv $LFS/tools /


More information about the lfs-support mailing list