Comments on Linux readlink and realpath Command Tutorial for Beginners (with Examples)
In this tutorial, we will discuss the basics of realpath and readlink commands that are similar (if not same) in the sense that they display resolved symbolic links in output.
1 Comment(s)
Add comment
Comments
By: Marius at: 2018-09-29 09:09:04
If your are interessted to learn about the true nature of a "file"/"link" you may wanne change to this tool :
# pathdiscover /home/wordpress/jetpack/ '/home/wordpress/jetpack/' translates to '/opt/root/home/wordpress/jetpack' 4096 Bytes wordpress/wordpress drwxr-xr-x : jetpack ( directory ) 4096 Bytes wordpress/services drwxr-x--- : wordpress ( directory ) 4096 Bytes root/root drwxr-xr-x : home ( directory ) 4096 Bytes root/root drwxr-xr-x : root ( directory ) 4096 Bytes root/root drwxr-xr-x : opt ( directory )It will make a lot of informations available, that are usefull for debugging problems with links.
Source: https://github.com/Cyborgscode/pathdiscovery/
And building it is so easy: gcc pathdiscover.c -o pathdiscover
no nmp, ruby, python, java, frameworks of anykind involved ;)