How to delete a command in Terminal?
Months ago I tried to sync ical via Dropbox, which required entering a command in Terminal. Now I'd like to reverse the action. How do I go about deleting or countermanding this command? Thanks.
Months ago I tried to sync ical via Dropbox, which required entering a command in Terminal. Now I'd like to reverse the action. How do I go about deleting or countermanding this command? Thanks.
You will have to be more specific regarding the action you took. No one but you can know what it was. Could you explain how and where you found this command to begin with?
I've found Tom Nelson's webpage on About.com which looks about right. I did this over four months ago and didn't keep any notes, so I can't be fully sure. He suggests entering the following command in Terminal
ln -s ~/Dropbox/Calendars/ ~/Library/Calendars
If this, in fact, is what I did. How would I counter it?
Alternatively, could I resolve my problem by reloading the Operating System?
Choose Go to Folder from the Finder's Go menu, provide ~/Library/ as the path, and delete the Calendars item inside if it's a symbolic link or alias.
(104483)
Based on the symlink you created long ago, your calendar directory is currently stored in Dropbox. If you want to keep your calendar data you will need to move it back to ~/Library/Calendars.
To be on the safe side use the ls command to see which is the symlink and which is the real directory:
ls -ld ~/Library/Calendars ~/Dropbox/Calendars
The one that starts with L and contains 2 file paths as in
lrwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Library/Calendars -> /Users/username/Dropbox/Calendars
is the symbolic link
The one that starts with D is the real calendars directory, for example:
drwxr-xr-x 1 username group 9 Dec 4 2011 /Users/username/Dropbox/Calendars
NOTE: I strongly suggest you have a current backup before you use the 'rm' command below. One mistake with 'rm' (remove, aka delete) and you can loose data that you are not going to get back.
To remove the symlink, and put your calendar data back where iCal expects to find it, use the following commands:
rm ~/Library/Calendars
mv ~/Dropbox/Calendars ~/Library/
The rm command is removing the symlink you created.
The mv command is moving your calendars information to ~/Library where iCal expects to find it.
LeroyHoward wrote:
I did this over four months ago and didn't keep any notes, so I can't be fully sure.
The terminal command
history
will give you a list of your past commands that you entered, to be exact.
How to delete a command in Terminal?