Mac Terminal Delete file

Source: Internet
Author: User

There are many ways to delete files in Mac OS systems, but there are many ways to uninstall them, but in general, if the software side provides the uninstall tool, it is best to choose a special uninstaller, such as Input method and so on. Other common software for the general user tightly need to drag the application icon to the Trash can be deleted, but some stubborn residue of software can be in the Mac terminal with the command to uninstall.

Mac Terminal Delete file

1 Open Terminal application

2 Input command: sudo (space) RM (space)-R (Space)-F (space) (note that there are spaces behind-f), but also note that all lowercase.

3 You want to delete the file or folder with mouse dragged into the terminal window, many can also be dragged together.

4 and then enter in the terminal.

5 Enter the current Admin user password. Enter directly if there is no password. Note that the password is not the root account.

6 The terminal does not have any prompt information indicating successful deletion.

Mac Terminal Uninstall software tutorial

Open applications-Utilities-terminals

Input wallys-mbp:~ wally$ mdfind-name "Mac Software treasure Box"

/users/wally/library/caches/metadata/safari/history/http:%2f%2fwww.macx.cn%2fthread-2134541-1-1.html.webhistory

/users/wally/library/caches/metadata/safari/history/http:%2f%2fwww.macx.cn%2fforum.php?mod=post&action= Edit&fid=2000&tid=2134541&pid=3297484&page=1.webhistory

/users/wally/library/caches/metadata/safari/history/http:%2f%2f

/users/wally/downloads/mac software treasure box. App (2). zip

/users/wally/desktop/mac software treasure box. App

The system will match all files on the hard disk with the Mac software box by name. The advantage of using a terminal command search is that you can search many system-hidden files, which are generally Spotlight.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.