Home » Questions » Computers [ Ask a new question ]

I did rm instead of mv, how can I reference my data folder again?

I did rm instead of mv, how can I reference my data folder again?

In this question: what did I do on my linux box, used the rm incorrectly

Asked by: Guest | Views: 211
Total answers/comments: 1
Guest [Entry]

"I don't quite follow your explanation, but you may be after the ln command.

Basically, if you have a folder /stuff/data, and you want that to be available to you as ~/data without moving it, you can do:

ln -s /stuff/data ~/data

This will create a symbolic link ~/data pointing to /stuff/data. If you then do a ls -l you will see something like:

[other columns omitted] data@ -> /stuff/data"