What will this command do on unix:
rm somefile ~/data
I was trying to move somefile to the folder at home/data
|
What will this command do on unix:
I was trying to move somefile to the folder at home/data
| |||||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
It will delete The command you wanted was:
If you don't do regular backups, you're probably hosed. | |||
|
feedback
|
|
You wanted
|
Yes, when I do cd ~ I don't see the /data folder anymore! But I do see if it I go to /home/xxxx/users folder. Was it just mirrored or aliased then? How can I get it back? – user3183 Jul 28 '09 at 0:17 |
|
You removed somefile completely. rm means 'remove'. You need 'mv' Use 'man rm' and 'man mv' for more information. | |||
|
feedback
|
|
Bash/Ubuntu:
As previously stated you want 'mv' | |||
|
feedback
|