QuestionQ69

Linux Fundamentals

A symbolic link named latest_log must be created in the current directory and point to /var/log/app.log. Which command accomplishes this?

  • A ln /var/log/app.log latest_log
  • B ln -s /var/log/app.log latest_log
  • C ln link /var/log/app.log latest_log
  • D ln -s latest_log /var/log/app.log
Explanation

The ln -s command creates a symbolic link. Its first path is the target and its second path is the new link name, so /var/log/app.log is the target and latest_log is the symbolic-link name.

Community Discussion

No comments yet. Be the first to start the discussion!