readlink
FilesFundamentals In simulator In real LinuxPrint where a symbolic link points
Name: readlink: read a link
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
readlink prints the target stored in a symbolic link. -f resolves every link along the path and prints the final absolute path, a common way to find which file a command really is.
Syntax
readlink [OPTION]... FILE...Common options
| -f / --canonicalize | Follow every link and print the final absolute path |
| -e / --canonicalize-existing | Like -f, but every part must exist |
| -m / --canonicalize-missing | Like -f, even if parts do not exist |
| -n / --no-newline | No newline at the end (handy in scripts) |