Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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.

Posted on Apr 9, 2014 11:13 AM

Reply
5 replies

Apr 9, 2014 5:08 PM in response to John Galt

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?

Apr 9, 2014 7:44 PM in response to LeroyHoward

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.

How to delete a command in Terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.