Linux Basics for Big Data

67 / 87
Readlink Command

Also, to deference original file of a symbolic link, you can use readlink command. A file is a symbolic link which is again symbolic, you can use -f command.

Question-

What is the actual location of java program on CloudxLab?

Hint-

readlink -f /usr/bin/java
  • It is /etc/alternatives/java
  • /usr/bin/java
  • Java is not installed
  • It is something like: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64/jre/bin/java