Linux command Readlink

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.