Home Apple command line – Which macOS model launched “readlink -f”?

command line – Which macOS model launched “readlink -f”?

0
command line – Which macOS model launched “readlink -f”?

[ad_1]

The earliest model the place readlink -f seems in man pages is macOS Monterey 12.3.


The next excerpts have been taken from the stat.1 file for macOS 12.2.

SYNOPSIS

readlink [-n] [file ]

DESCRIPTION

When invoked as readlink, solely the goal of the symbolic hyperlink is printed. If
the given argument is just not a symbolic hyperlink, readlink will print nothing and exit
with an error.


The next excerpts have been taken from the stat.1 file for macOS 12.3.

SYNOPSIS

readlink [-fn] [file ]

DESCRIPTION

When invoked as readlink, solely the goal of the symbolic hyperlink is printed. If
the given argument is just not a symbolic hyperlink and the -f possibility is just not specified,
readlink will print nothing and exit with an error. If the -f possibility is specified, the output is canonicalized by following each symlink in each part
of the given path recursively. readlink will resolve each absolute and relative
paths, and return absolutely the pathname akin to file. On this case, the
argument doesn’t should be a symbolic hyperlink.


Confirm This Reply

The output beneath is from macOS Catalina 10.15.7.

  1. Enter to command man -w readlink to find out the file title of the person web page to obtain. The output is proven beneath.
    /usr/share/man/man1/stat.1
    
  2. Enter the command which readline to get the total path to the command. The output is beneath.
    /usr/bin/readlink
    
  3. Use the total path to enter the command what /usr/bin/readlink. The output (proven beneath) may be tailored to search out the suitable stat.1 file.
    /usr/bin/readlink
        PROGRAM:stat  PROJECT:file_cmds-287.100.2
    
  4. Goto Apple Open Supply Releases to obtain the suitable stat.1 file for the specified model of macOS.
  5. Enter the command man ~/Downloads/stat.1 to view the formatted model of the stat.1 file.

[ad_2]