Terminal command to remove folders

Hi, I was wondering what the terminal command to remove entire folders was if anyone can tell me thanks.

rm -rf path/to/folder

Similar Messages

  • Terminal Command to Remove All Permissions on a Drive (Please help)

    Sorry, I'm new and was wondering what the Terminal command is to set all permissions to Root as the owner and propagate those permissions to every folder and file on a drive. Any help would be great appreciated.

    Long story. Basically I have files that are tagged with unknown user info. What I'm trying to do is remove the info and propagate that info the the file within the folder. I've done this before, but I can't remember the command.

  • Command-Line Remove Open Directory Server

    What is the terminal command to remove an Open Directory server?

    On LDAP server open the Terminal and run this:
    +sudo slapconfig -destroyldapserver+
    *man slapconfig* will give you more interesting options

  • Terminal Command for "Folders On Top" in Mountain Lion

    Looking for a terminal Command that will place all "Folders On Top", even in sub-folders. The utility I was using on Lion does'nt work on ML anymore.

    Looks like to me there has been a recent update to TotalFinder.  Claims to support 10.8, now. See
    http://www.macupdate.com/app/mac/33373/totalfinder
    I misunderstood your questions.  I thought you wanted to display the files in the Terminal.  You want to change the way the finder displays files.
    Robert

  • Removing a terminal command

    I would wish to remove this command
    defaults write com.apple.finder NSQuitAlwaysKeepsWindows -bool true
    What would be the terminal command?
    Thank you.

    Eric,
    I guess I just want to make sure in my start up defaults write com.apple.finder NSQuitAlwaysKeepsWindows -bool false line is not appearing/in use.  So, maybe my request to completely have the line gone from the start up.
    Thank you.

  • Remove read receipt terminal command

    Several months ago I was having issues with delivery of email.  One of my troubleshooting solutions was to implement a read receipt code in terminal to determine which emails were going through and which were not.  I have since "fixed the glitch" and want to remove or reverse the terminal command but I have no idea how to do it.
    This is the terminal command I used: 
    defaults write com.apple.mail UserHeaders '{"Return-Receipt-To" = "[email protected]"; "Disposition-Notification-To" = "[email protected]"; }'
    Does anyone know how to remove a terminal command, disable it, or reverse the function?
    Appreciate any help.
    Thanks!!!

    Quit Mail, then in Terminal type:
    defaults read com.apple.mail UserHeaders
    to check that the value of UserHeaders is what you expect. If there are additional UserHeaders beyond the ones you want to delete you'll need to add them back later. Now type:
    defaults delete com.apple.mail UserHeaders
    All of your UserHeaders will be gone. If you need to add back some headers use:
    defaults write com.apple.mail UserHeaders '{"foo" = "bar";}'
    Obviously you need to replace foo and bar with your values.

  • Remove a terminal command?

    Hi guys,
    I was looking for a command to remove Finder from my dock and I found this...
    f=/System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus; sudo cp $f.plist $f-old.plist; sudo defaults write $f finder-running -array-add '<dict><key>command</key><integer>1004</integer><key>name</key><string>REMOVE_F R​OM_DOCK</string></dict>'; sudo chmod 644 $f.plist; osascript -e 'quit app "Dock"'
    It worked but I don't want it anymore and I was wondering if there was any way I could remove/reverse this. Now everytime I right-click on Finder, it says: REMOVE_FROM_DOCK, and I would just like for that to go away. Is there anyway to fix this? Thanks.

    I fixed it nevermind.

  • Need a Terminal Command

    Hi, I have no idea how to use terminal so I need code I can copy and paste. I am running iFreeMem and its crashed. These type of apps do not show up in the force quit box so I have no idea how to force quit it. My only idea was Terminal but I don't know how to do it.
    Can someone please help? Has this ever happened to anyone? I just read some articles that made me decide to trash the app altogether, but I need to get it closed first. :o)
    I have to many things going on to shut the computer down at the moment and the iFreeMem screen is in the way of everything (floats on top). Thanks in advance!

    You must know either the correct case sensitive name of the application, such as iFreeMem. If you do then the Terminal command is:
    killall iFreeMem
    Press RETURN.
    However, even though iFreeMem is an application it may fork a process with a different identifier. If so the above command will fail. In this case you need to find the PID - Process IDentifier. In the Terminal enter, top, and press RETURN. If the process is in the listing then you get the PID from the lefthand column. Use the same killall command but with the PID instead of the application name.
    If you cannot find a PID, then you need to restart the computer. If the application runs automatically then you need to uninstall its components. See the following:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS. Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • How can I change the "Ask to join new networks" option using a terminal command?

    We are currently switching to a new wireless network throughout our school district and I have pushed commands to connect to the new and remove the old. However, any Macs that have "Ask to join new networks" enabled are jumping over to our unsecure guest network, even if that network has been removed from the list of Preferred Networks. So far the fix has been to remove the guest network from the list of Preferred Networks and then disable Ask to join. The only issue I'm running into now is I have been unable to find a terminal command to change this setting. Once I have the command I can write a script and send that out to all of the Macs.
    So is there a way to disable "Ask to join new networks" using command line?

    sed -i "" 's/Prompt/DoNothing/' /Library/Preferences/SystemConfiguration/preferences.plist

  • Is there a terminal command that will close quicktime player once a video is finished?

    I'm running a python program that uses subprocess.call(['open', '-a', "Quicktime Player", filename]) to open a video and defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1 starts it automatically. I'm wondering if there's a terminal way or a python way to close the video once it's finished.

    Hi, Thanks for the reply, I appreciate it.
    What do you mean by "pick up"?
    I mean to show what the DNS numbers are that the router is using.
    They are not entered in the DNS server field in Networks, TCP/IP tab.
    If you mean refresh the client settings, the DNS settings are obtained as part of the DHCP lease (or PPP connection in the case of PPP).
    The user/ OP is actually using PPPoA, when i googled PPPoA.. seems he is using Cisco perhaps.
    http://en.wikipedia.org/wiki/Point-to-PointProtocol_overATM (Asynchronous Transfer Mode)
    "PPPOA or PPPoA, Point-to-Point Protocol (PPP) over ATM, is a network protocol for encapsulating PPP frames in ATM AAL5. It is used mainly with cable modem, DSL and ADSL services.
    It offers standard PPP features such as authentication, encryption, and compression. If it is used as the connection encapsulation method on an ATM based network it can reduce overhead slightly (around 0.58%) in comparison to PPPoE".
    Essentially the original poster removed the OpenDNS #s from his DNS server field in the TCP/IP tab (b/c they seem to make Adobe.com inaccessible to him)
    removing them & allowing his router to "pick them up from the ISP" seems to solved his problem.
    However he can not, find what the numbers are that are being utilized,
    b/c they are not entered as usual in the Network, & part of the DHCP lease,
    or in Airport admin Utility.
    I/ we wondered, if there was a Terminal command that will show what the
    numbers are that are being used .
    Does that help clarify what I mean? Sorry to be so long winded.
    Eme '~[ )♥♪

  • What Is The Terminal Command For PRAM & SMC Reset?

    Hi Folks - Cant get my Macbook Pro to shut down (instead it does a re-start) thus the key combination for these re-sets doesnt seem to function (no chimes). I saw in another thread a terminal command entry "sudo nvram boot-args=”-p -r” but I also saw it mentioned that entering that casued the following to pop-up "Note that resetting the PRAM will wipe out the contents of the boot-args environment variable, which means the command would need to be reissued each startup." Whats with "reissued each startup"? Also would like a an SMC re-set command. THANKS in advance!

    I dont know of a terminal command but here is how to reset the SMC:
    Resetting the System Management Controller (SMC)
    Resetting the SMC on Mac portables with a battery you can remove
    Shut down the computer.
    Disconnect the MagSafe power adapter from the computer, if it's connected.
    Remove the battery (to remove the battery - click here: MacBook or MacBook Pro).
    Press and hold the power button for 5 seconds.
    Release the power button.
    Reconnect the battery and MagSafe power adapter.
    Press the power button to turn on the computer.
    Resetting the SMC on portables with a battery you should not remove on your own
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer.

  • Is there a Terminal command that will pick up DNS numbers?

    Hello all,
    Is there a Terminal command that will pick up the DNS numbers utilized by a router?
    The router options don't show any, though the router is set to use PPPoA to pick them up.
    I kindly TIA,
    Eme '~[ )♥♪

    Hi, Thanks for the reply, I appreciate it.
    What do you mean by "pick up"?
    I mean to show what the DNS numbers are that the router is using.
    They are not entered in the DNS server field in Networks, TCP/IP tab.
    If you mean refresh the client settings, the DNS settings are obtained as part of the DHCP lease (or PPP connection in the case of PPP).
    The user/ OP is actually using PPPoA, when i googled PPPoA.. seems he is using Cisco perhaps.
    http://en.wikipedia.org/wiki/Point-to-PointProtocol_overATM (Asynchronous Transfer Mode)
    "PPPOA or PPPoA, Point-to-Point Protocol (PPP) over ATM, is a network protocol for encapsulating PPP frames in ATM AAL5. It is used mainly with cable modem, DSL and ADSL services.
    It offers standard PPP features such as authentication, encryption, and compression. If it is used as the connection encapsulation method on an ATM based network it can reduce overhead slightly (around 0.58%) in comparison to PPPoE".
    Essentially the original poster removed the OpenDNS #s from his DNS server field in the TCP/IP tab (b/c they seem to make Adobe.com inaccessible to him)
    removing them & allowing his router to "pick them up from the ISP" seems to solved his problem.
    However he can not, find what the numbers are that are being utilized,
    b/c they are not entered as usual in the Network, & part of the DHCP lease,
    or in Airport admin Utility.
    I/ we wondered, if there was a Terminal command that will show what the
    numbers are that are being used .
    Does that help clarify what I mean? Sorry to be so long winded.
    Eme '~[ )♥♪

  • Is there a terminal command to disable the "Boing' sound ?

    Hello, Everyone
    I was wondering if any one knows if there is a terminal command that can
    be used to disable the "boing" sound that folders and files make (in Tiger)
    as they are being moved about the desktop and or into finder windows.
    A couple of people have looked in the System preferences,usual areas but
    can not locate the file for this "Boing" sound. If any one knows I would love
    the answer. TIA for reading this & any help.; )
    Regards , Eme
     Power PC G4 (3.3) ♥ iMac Flat Panel 10.3.9 ] 15 Alum.PowerBook Tiger   Mac OS X (10.4.6)   AEBS & iMac Intel Core Duo 2gb
    Message was edited by: Eme~

    Mine doesn't make a sound when I do this.
    I presume you have unchecked the "Play user interfacesound effects" > in System Preferences> Sound. The other OP wants to disable only the infamous boing. I found both the files you wrote of. Thank you very much !
    I just needed to summarize this & then undoing if so desired.
    Bill, please what would the command be for undoing this action ?
    Launch Terminal and type this: sudo gzip
    enter ~~
    password prompt,
    then this : /System/Library/PrivateFrameworks/ScreenReader.framework/Versions/A/Resources/S ounds/SpringForward.aiff
    Is this correct ?
    Thanks so very, very much for your expertise, patience and sharing it with me.~ Eme
     Power PC G4 (3.3) ♥ iMac Flat Panel 10.3.9 ] 15 Alum.PowerBook Tiger   Mac OS X (10.4.6)   AEBS & iMac Intel Core Duo 2gb

  • Terminal command to reactivate mail activity wheel

    Does anyone know a terminal command that allows you to view once again the activity wheel(s) next to the inbox/accounts, when checking mail? The mail activity indicator window on the bottom left is not really enough, and often shows no activity for few/small emails.
    IMHO, it's unfortunate Mail shows you very little about its activity (without having to open the separate activity window).

    They were there in Lion (you didn't need to enable them). They've been removed in Mountain Lion.
    You're already aware of the two possibilities for monitoring activity on Mail: keeping the Activity window open in the background, or watching the monitor at the bottom of the Mail window. Neither is the same as the wheels, but that's all there is now.

  • I've used a terminal command to change default send keyboard shortcut and now it doesn't work at all!

    My friend provided me with a Terminal command allow me to use Cmd+Enter to send an email (muscle memory from Outlook, hard to forget!)
    Command was:
    defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
    Did that, and it didn't add the Cmd+Enter instruction but removed the Cmd+Shift+D instruction, so I had NO keyboard shortcut. Then Cmd+Enter started working. For a while. Now I'm back to getting the irritating error bleep sound, and having no functional keyboard shortcut for sending mail.
    Does anybody have any advice?

    Try
    defaults delete com.apple.mail NSUserKeyEquivalents
    Then, relaunch Mail.

Maybe you are looking for

  • Session variables being lost in IE7

    has anyone else experienced, heard of, or solved this issue? I have a web app thats been running fine for 5+ years and using session variables (i'm currently using CF8). When a user goes from page to page the session is carried with them so i know th

  • Flash stop working properly all browser

    Hi Adobe community, I'm using WINDOWS 7 ULTIMATE 32BIT Adobe Flash Player - Version: 17.0.0.134 Chrome - 41.0.2272.101 m Firefox   36.0.4 Problem: 1. Flash videos are not working stuck on buffering, including embedded or non embedded flash players, b

  • Default User Permissions in CCM 5.1

    It seems that CCM 5 user creation has a new step from 4.1.3 It may have been default in 4 but does not appear to be in 5.1.2. Is there any way to set the user permissions to Standard CCM End User group by default. Furthermore is there a way to set th

  • Shopping cart not creating follow-on documents

    Hi, We were using extened classic for some time in test system and now deactivated extended classic and want to work with classic scenario. However when i create shopping cart for the material it is not creating any follow-on documents like reservati

  • Data Display Type

    Hi, I've developed a dynpro application which accesses a backend SAP system, sends a variant value and gets results as table. When I run the RFC function module inside SAP system, result displayed as follow: WEMNG            MEI  BAKORAN  TOB 1.582,5