Readlink, you can see from the literal meaning that the output symbolic link value or authoritative file name.
The readlink command parameters under OpenWrt are as follows:
[email protected]:/# readlink--help
BusyBox v1.22.1 (2016-05-16 12:27:19 CST) multi-call binary.
Usage:readlink [-FNV] FILE
Display the value of a symlink
-F canonicalize by following all symlinks
The option can recursively follow all symbolic links given the file name to standardize, except for the last one, all components must exist.
To put it simply, it is the file location that follows the symbolic link until the non-symbolic link, and the limit is that a non-symbolic link must finally exist.
-N Don ' t add newline
-V Verbose
[email protected]:/#
View directly:
[email protected]:/#READLINK/ETC/RC.D/S50SNMPD
.. /init.d/snmpd
[email protected]:/#
[email protected]:/#readlink-n/etc/rc.d/s50snmpd
.. /init.d/snmpd[email protected]:/#
[email protected]:/#
[email protected]:/#readlink-v/etc/rc.d/s50snmpd
.. /init.d/snmpd
[email protected]:/#
[email protected]:/#readlink-f/etc/rc.d/s50snmpd
/etc/init.d/snmpd
[email protected]:/#
Linux command Readlink