What is /opt/app/current after these commands?
ln -s /opt/app/v2 /opt/app/current rm -rf /opt/app/v2
- A broken link to a missing path
- A hard link that keeps the data
- An empty directory left behind
- A regular file holding old data
A symbolic link only stores a path; once the target is deleted the link dangles and any access fails.
Play Linux CLI ▸