HomeAppleterminal - Is there a commandline swap for "ls" that reveals "firmlinks"

terminal – Is there a commandline swap for “ls” that reveals “firmlinks”


With macOS Sierra APFS got here with a brand new idea of “firmlinks”, typically described as being “between hardlinks and symlinks”.

A number of folders are actually at System/Volumes/Knowledge however are firmlinked to places within the root of the filesystem. Three examples I do know of:

  • /Library -> /System/Volumes/Knowledge/Library
  • /Customers -> /System/Volumes/Knowledge/Customers
  • /Functions -> /System/Volumes/Knowledge/Functions

Is there a manner when doing an ls of / from the Terminal to see which entries in that listing are literally firmlinks? There isn’t any point out of firmlinks within the ls man web page. The switches of I do know of for ls that offers probably the most detailed output is: ls -alO@ / however it does not appear to inform me:

drwxr-xr-x  20 root  wheel  sunlnk             640 24 Aug 16:59 .
drwxr-xr-x  20 root  wheel  sunlnk             640 24 Aug 16:59 ..
lrwxr-xr-x   1 root  admin  -                   36 24 Aug 16:59 .VolumeIcon.icns -> System/Volumes/Knowledge/.VolumeIcon.icns
----------   1 root  admin  -                    0 24 Aug 16:59 .file
drwxr-xr-x   2 root  wheel  hidden              64 24 Aug 16:59 .vol
drwxrwxr-x  44 root  admin  sunlnk            1408 28 Oct 09:31 Functions
drwxr-xr-x  67 root  wheel  sunlnk            2144 14 Sep 10:42 Library
drwxr-xr-x@  9 root  wheel  restricted         288 24 Aug 16:59 System
    com.apple.rootless     0 
drwxr-xr-x   5 root  admin  sunlnk             160 24 Aug 16:59 Customers
drwxr-xr-x   3 root  wheel  hidden              96 25 Oct 15:39 Volumes
drwxr-xr-x@ 38 root  wheel  restricted,hidden 1216 24 Aug 16:59 bin
    com.apple.rootless     0 
drwxrwxr-t   2 root  admin  hidden              64  8 Dec  2020 cores
dr-xr-xr-x   4 root  wheel  hidden            4888 25 Oct 15:39 dev
lrwxr-xr-x@  1 root  wheel  restricted,hidden   11 24 Aug 16:59 and many others -> personal/and many others
    com.apple.rootless     0 
lrwxr-xr-x   1 root  wheel  hidden              25 25 Oct 15:39 dwelling -> /System/Volumes/Knowledge/dwelling
drwxr-xr-x   2 root  wheel  hidden              64  8 Dec  2020 choose
drwxr-xr-x   6 root  wheel  sunlnk,hidden      192 25 Oct 15:39 personal
drwxr-xr-x@ 65 root  wheel  restricted,hidden 2080 24 Aug 16:59 sbin
    com.apple.rootless     0 
lrwxr-xr-x@  1 root  wheel  restricted,hidden   11 24 Aug 16:59 tmp -> personal/tmp
    com.apple.rootless     0 
drwxr-xr-x@ 11 root  wheel  restricted,hidden  352 24 Aug 16:59 usr
    com.apple.rootless     0 
lrwxr-xr-x@  1 root  wheel  restricted,hidden   11 24 Aug 16:59 var -> personal/var
    com.apple.rootless     0 

RELATED ARTICLES

Most Popular

Recent Comments