|
From: | Emanuel Berg |
Subject: | Re: Function to find symlink target |
Date: | Sat, 28 May 2022 17:43:00 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> How big is a symlink? > > $ touch a.txt > $ ln -s a.txt a-sy.txt > $ du -b a-sl.txt > 5 > > 5 bytes. The path to a.txt ^ relative Yes, if one places the symlink in some another dir than the target then the size increases. Observe $ cd $ mkdir -p test/sl $ cd !:2 $ touch a $ ln -s a b $ cd $ ln -s test/sl/a l then compare $ du -b test/sl/b 1 test/slb/ $ du -b l 9 l Lesson: There is a lot of space to save by placing symlinks correctly! -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |