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.

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.

Similar Messages

  • How to disable sudo command in Terminal

    How to disable sudo command in Terminal

    Bad idea.
    Only an Admin user can use sudo, so if you have users on your system that you do not want to use sudo, then do not give them an admin account, and do not give them the password for an admin account.

  • How to delete the items in the recycle bin permanently from the windows using Diruse command

    How to delete the items in the recycle bin permanently from the windows  using Diruse command.
    Because most of the time we get out of disk space issues.
    Can somebody help me in giving with an example

    You can right-click Recycle Bin|Properties and choose radio button for
    Don't move files ....
     This one may also help.
    http://technet.microsoft.com/en-us/library/cc784980(v=ws.10).aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Recover Accidentally Deleted Commands in Terminal

    I'm trying to do a certain set up on my Nintendo 3ds system using wifi on my Mac OS X desktop and in order to do it I'm suppose to put in certain commands in the terminal, but I made a mistake and pressed backspace and accidentally deleted my commands in my terminal box. I'm new to using terminal and I have not emptied my trash. What can I do to get it back?

    You typed something into the terminal and you have no idea where you got the original command from and you have no idea what you typed. Now the screen shot you post is pretty messed up. Not really sure what you expect especially if you wont answer the questions asked or try the steps suggested.
    The terminal can be a dangerous place especially if you are not sure what you are doing. Typing in commands that you have no idea what they do or where they came from is a recipe for disaster.
    Wish I had more
    Good luck
    regards

  • .DS_Store files undo delete command in Terminal

    I was copying large quantities of files to a poorly formatted LaCie 3T external drive and kept coming up with interruptions in copying because the Finder kept "seeing" the creation of .DS_Store files. I researched and found a command for Terminal which stopped the OS from creating .DS_Store files. I restarted my laptop and sure enough, no more .DS files are being created.
    I was then able to complete the massive transfer, I reformatted the drive, and returned all of the files to the 3T drive. Now everything's working alright.
    My question is... How do I return the creation of .DS_Store files back to normal?
    Can anyone drop me a line that I can insert into the terminal command line and get it done?
    Thanks in advance.

    You know, I did that, and nothing happened. So I then decided to re-install M.L., and I'm now manufacturing .DS_Store files with abandon.
    I've been reading that it's not a popular kind of file for folks, especially those who are working with variously formatted devices. There are some obscure advantages to having the files sit around the hard drive.
    Thanks for your advice, however. It's good to know that I wasn't so far off.

  • How do I undo these commands from terminal?

    I was trying to copy music from my iPod to my mac, so I copy & pasted these two commands into terminal:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall finder
    Now there's an icon on my desktop that i can't delete that says ".DS_Store and I can't open it with any of my applications.
    Please help!
    Thanks

    Not sure, try this:
    defaults write com.apple.finder AppleShowAllFile FALSE
    then
    killall Finder

  • How to darken the desktop with terminal commands?

    how knows a trick?
    i need to start several videos with mplayer form a bath file.
    between the videos the screen has to be black.
    so how can i make the whole desktop black with commands from terminal?
    i am grateful for any idea.
    hans

    i need to start several videos with mplayer form a bath file.
    between the videos the screen has to be black.
    I'm not familiar with mplayer, but doesn't it have a kind of "playlist"?
    VLC has a playlist which enables you to play a sequence of movies without leaving the fullscreen mode.

  • How do i get my commands in terminal

    I am trying to get certain commands in terminal but it will not let me download them
    I tried installing wget but it will not install in the usr/local/bin.
    I dont think I have that folder or that file
    What am i doing wrong on my mac?

    You don't need to sudo su, just sudo /dev/tty
    According to the man page,
    The most common reason for stat(2) to return "permission denied" is if you are running
           an automounter and one of the directories in your PATH is on a machine that is currently unreachable.

  • How to delete files from external ntfs hard disk [Solved]

    Hi guys
    first, sorry for my bad English.
    I have an external hard disk ( WD 500GB ) with ntfs file system and i have installed ntfs-3g package.
    3 days ago, when i wanted to delete some files, i get a problem with it,
    look the output :
    [jahangir@Arch New Metal]$ sudo rm *
    [sudo] password for jahangir:
    rm: cannot remove '02 - Korn - Love and Meth.mp3': No such file or directory
    rm: cannot remove '30Seconds To Mars': No such file or directory
    rm: cannot remove '30Seconds To Mars 1': Is a directory
    rm: cannot remove 'Avantasia': No such file or directory
    rm: cannot remove 'Avantasia 1': Is a directory
    rm: cannot remove 'Avantasia 2': Is a directory
    rm: cannot remove 'Behemoth': No such file or directory
    rm: cannot remove 'Behemoth 1': Is a directory
    rm: cannot remove 'Hanging Garden - At Every Door - 2013': No such file or directory
    rm: cannot remove 'Hanging Garden - At Every Door - 2014': No such file or directory
    rm: cannot remove 'Rosetta': No such file or directory
    rm: cannot remove 'Rosetta 1': No such file or directory
    rm: cannot remove 'Sepultura': No such file or directory
    rm: cannot remove 'Sepultura 1': No such file or directory
    rm: cannot remove 'Slipknot': No such file or directory
    rm: cannot remove 'Slipknot 1': No such file or directory
    rm: cannot remove 'Tokio Hotel': No such file or directory
    rm: cannot remove 'Tokio Hotel 1': No such file or directory
    rm: cannot remove 'T\303\275r': No such file or directory
    rm: cannot remove 'neww': No such file or directory
    [jahangir@Arch New Metal]$
    Who can help me ?
    I wanted to delete .trash-1000 file from my main directory hard dist and i confront with this error :
    [jahangir@Arch My Passport]$ sudo rm .Trash-1000
    [sudo] password for jahangir:
    rm: cannot remove '.Trash-1000': No such file or directory
    [jahangir@Arch My Passport]$
    In the event that it is there.
    also in main directory of my hard disk i have 1 mp3 file that i can't view it in file manager and it will be displayed in Windows OS and with ls command in terminal :
    [jahangir@Arch My Passport]$ ls
    ls: cannot access 01 - Lost.mp3: No such file or directory
    ls: cannot access 02 - Surrendered To The Decadence.mp3: No such file or directory
    01 - Lost.mp3 In The Name Of God Videos ZzZ - IMAN winold
    02 - Surrendered To The Decadence.mp3 New Metal World of Warcraft Cataclysm 4.3.4 enGB navid wow wrath
    [jahangir@Arch My Passport]$
    what is this file and how can i delete .Trash-1000 and this files and content of "New Metal" directory ?
    Last edited by jiros (2013-12-23 20:57:05)

    I believe you used ntfs for a reason. As far as I know, Windows isn't friendly with hdd filesystems others than fat or ntfs, so once you format your external harddrive to ext4, windows won't talk to it at all, unless you install some additional driver or software.
    You have several possibilities to do:
    1) You could use FAT32, it's kind of a dumb filesystem, linux, mac and windows can read and write to it, there are some limitations like file permisions or 4GB file size limit.
    2) You could make multiple partitions on your external harddrive, one with ntfs (for windows) and the other with some fs that is support natively in Linux and Mac, I believe only option would be HFS+. I'm not an expert, maybe somebody will correct me. Anyway, if you aren't going to connect your disk to Mac, than ext4 would be a good choice. But this approach with two different partions is kind of dumb, because usually you need the same data available on whatever platform.
    3) If I were you, I would continue using NTFS or FAT32. It's not ideal, but it's a price you have to pay for dealing with Windows systems.
    4) If there is any other smarter solution, I believe somebody will add it to responses bellow.
    Anyway, it's weird that your problem persists. There has to be something wrong with your filesystem, otherwise ls wouldn't show you question marks in its output. Did you perform chkdisk via GUI? It has to say that either there wasn't any error with your fs, or that there was some error. We live (unfortunatelly) in binary computer world. I mean you can perform that command from shell, or however microsoft calls it, and if you run it in a proper configuration, it will tell you whether your fs is bad or not and perform needed repairs.
    And how to format disk to ext4?
    Backup your data, run as root fdisk /dev/yourexthdd (fdisk /dev/sdd), delete all partitions, create new ones, once you are done, write changes down. fdisk is pretty easy to use, don't be afraid of it. Then you have to create filesystem on each partition you created with fdisk, so if you created only one, run mkfs.ext4 /dev/yourexthddwithpartnumber (mkfs.ext4 /dev/sdd1). There are nice articles about doing these things on Arch Wiki (https://wiki.archlinux.org/index.php/File_Systems), don't be worried to read them

  • Open command in Terminal

    When I try to open a folder from Terminal using the open command, instead of a Finder window opening for the folder, another Terminal window opens up with contents like the following:
    *Last login: Sat Nov 14 16:14:45 on ttys001*
    *jt-imac:~ terrator$ /Users/terrator/Music ; exit;*
    *-bash: /Users/terrator/Music: is a directory*
    logout
    *\[Process completed\]*
    In addition, I get the same symptom when I try to open folders from the Dock and Spotlight so I think the problems are related.
    I have done the following in trying to resolve this problem:
    1. Repair permissions and repair disk with Disk Utility using the Installation DVD after booting from it.
    2. Repair LaunchServices using Onyx
    3. Created a test user to see if this user has the same problem. No, the problem doesn't happen in this user.
    4. Deleted the com.appl.terminal.plist and some other plist files.
    5. Reinstalled Snow Leopard on top of my existing installation.
    None of those attempts have resolved the problem.
    Anyone has any ideas on how to resolve this problem?

    For Terminal.app I don't see anything with name "Folder" but I see one with roles "Editor":
    The Terminal does not execute anything. It is a character terminal emulator that is connected to pseudo (fake) serial terminal device (/dev/pty**)
    The other side of that pty device is attached to an independent process that happens to be running a shell of some kind (default being the bash shell).
    The shell will create child processes on demand and run commands requested by the user. Any text send to standard out or standard error by the shell or any of the children processes started by the shell, will be sent to the pty and the Terminal will read the other side of the pty and display the text in the Terminal window.
    The Terminal will also listen to the keyboard, and send any text you type to the pty where the shell or a child process created by the shell will read the other side of the pty and do what you tell it via the keyboard.
    That is the Terminal's job. communicate through this fake serial device. It does not execute commands. I knows nothing about Folders, nor files, nor TYPE/CREATOR fields, nor file type suffixes. Just reads text you type, and displays text sent back from the shell or its child processes.

  • Locked console logs, how to delete?

    Having discovered that my CanoScan scanner is writing one line of meaningless information to the console log every second, I have resolved to delete the logs. However I'm now faced with a whole bank of log files numbered from 0, then 501 to 512. I can access and read 502 (and delete it? safely? it doesn't matter?) but the others are all locked, I don't even know how big they are.
    How do I delete the locked console log files? Please note - I am in the top level Library, not my user Home Library where there are no Console logs.

    Hi, this is the response from Terminal...
    -rw------- 1 xxxxx admin 11404 Jan 29 10:14 /Library/Logs/Console/501/console.log
    (Ignore the xxxxx). Does this mean anything to you? Does it tell me that the 501 log is 11404 bytes big? What about the other files which it didn't list?
    Happily though, with no warning the problem seems to have disappeared for no reason I can find. The scanner continues to work ok, but there is nothing in Login Items (I didn't remove anything), and the message in Console log has stopped.
    The only thing now is to delete all those other console logs, (500, and 503 - 512). And to find out how big they are, as the Terminal command only seemed to work for 501.

  • (1) files, how to delete them

    I have several files like "001.jpg" and "001 (1).jpg". I want to get rid of the (1) files, but I do not know how to do it, except by marking each one of them naually. I tried to use Terminal to issue an rm command, but I can't figure out how to do it. For example this command:
    ls -l *\ \(1\)
    says that no * (1) file exists. Of course the files are there, I can see them.
    Anyone knows how to delete these?

    Well, I don't know that ls will take anything but a folder path... but I honestly have never tried giving it a list of files. The rm command should take similar parameters to mv, though I prefer using mv since I can double-check the results before anything gets deleted.
    However, the main problem with what you were trying before was the pattern you were using:
    *\ \(1\)
    This pattern matches only files ending in a space followed by "(1)". The examples you gave ended in ".jpg", so they would not match.

  • How to delete an old locked appleworks (.cwk) word processing document?

    How to delete an old locked appleworks (.cwk) word processing document? This is merely a startup file to make AppleWorks come up with text formatting etc all set to desired styles. AppleWorks doesn't work in Mavericks. I cannot find how to use Get Info to unlock this file so that it may be shoved to the trash.

    Eustace,
    1. Yes, the screenshot did not survive the trip into the text entry box after I hit send or whatever. Maybe I should upload it to my Flickr account and give it its own set and then insert the URL for that set here.
    Thanks for the link. I've never used Terminal before so I tried out your link twice. I was able to follow the directions but I did not see an icon for the created file appear on my desktop. Then I added two screenshots to my desktop and those did not appear either. So, I restarted and both the file names that I'd created with terminal and the screen shots appeared on the desktop. Then I tried to use Terminal to make the added file disappear and it would not. However, I was able to select the created filenames and the screen shots and dump them all in the trash and empty the trash.
    This morning I tried the method to create a file on the desktop a third time and it still does not appear on the desktop. What is the command for showing a listing of all the files in a directory? Suppose I wanted a listing of all the files on my desktop. I probably should be looking on the internet for a tutorial on using Terminal.
    I understand your suggestion that I can use Terminal to delete the unwanted locked files but my computer is not acting quite the way the tutorial in your link suggests.
    Thanks for the idea. It tells me I need to learn a bit about using Terminal.

  • HT1222 how to delete Xcode without uninstall-devtools

    how to delete Xcode without uninstall-devtools.Cause I have alredy install xcode before and delete it in a wrong way ,so my file in folder Libary named "unistall-devtools" does not exist .In this case ,everytime I re-install it , it will say install fail .So how to completely unistall it under my condition.Plaese help me .

    At a Terminal prompt enter "sudo " and then drag the command into the Terminal window. Press RETURN. Enter your admin password when prompted which is not echoed to the screen.

  • How to delete "other"

    i have a 500 gb hard drive and 341 gb is filled with something called "other"
    i dont know how to delete it

    First, empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash as well:
    iPhoto ▹ Empty Trash
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of your data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    If you're using Time Machine to back up a portable Mac, some of the available space will be used to make local snapshots, which are backup copies of files you've recently deleted. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as "Backups." The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself.
    To locate large files, you can use Spotlight. That method may not find large folders that contain a lot of small files.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders. It may take some minutes for ODS to list all the files.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

Maybe you are looking for

  • How much RAM & CPU should I allocate for Windows 7 Ultimate?

    I am in the process of setting up my new 27" iMac i7. I'm brand new to Apple computers so this is a learning curve for me! I have installed Parallels Desktop 5 so I can run Windows 7 side by side with Snow Leopard. Now I am trying to install Windows

  • REUSE_ALV_HIERSEQ_LIST_DISPLAY field underline

    Hi All, Im displaying a list using the ALV function module REUSE_ALV_HIERSEQ_LIST_DISPLAY. I need a field to be underlined while displaying. I triedusing hotspot with fieldcat.It works with grid display but not with hier display.. Can somebody help m

  • PR creation through upload.

    Hi,   I have created a batch upload program to create PR in me51. the following problems i am facing. 1> for each line item my program is creating a new pr. i am not able to do any looping there to run this. i guess my bdc is wrong or what.?? help.(i

  • Implementierung und Konfiguration von Business Objects

    Sehr geehrte Damen und Herren, für einen Kunden prüfen wir derzeit den zukünftigen Einsatz von Business Objects. Hierfür benötigen wir jegliche Informationen bzgl. Installation und Konfiguration der Komponenten SAP Crystal Addon, sowie von Business O

  • Why won't my iphone 3gs will not sync with itunes???

    My Iphone 3GS will not sync with itunes on my iMac computer. Currently the device is plugged in and recieving a charge. I am operating the version 10.6 in itunes and the version OS5.1 on the 3GS. Can anyone help me figure this out?!?!?!