Cleanup Macos

2020-06-09

手动清理Macos 大文件
进入系统文件夹 使用 sudo du -hs * | sort -h 查看当前目录文件夹大小 逐一查看 有问题(可以删除的数据文件夹)的删除即可

 cd ~/Library
 sudo du -hs * | sort -h

  0B	ColorPickers
  0B	Components
  0B	Compositions
  0B	Contextual Menu Items
  0B	CoreAnalytics
  0B	DirectoryServices
  0B	DriverExtensions
  0B	GPUBundles
  0B	Keyboard Layouts
  0B	Mail
  0B	Managed Preferences
  0B	OpenDirectory
  0B	Sandbox
  0B	Screen Savers
  0B	Speech
  0B	StagedDriverExtensions
  0B	StartupItems
  0B	SystemExtensions
  0B	SystemProfiler
  0B	Video
4.0K	CoreMediaIO
4.0K	HostUUID
8.0K	OSAnalytics
 12K	SystemMigration
 24K	LaunchAgents
 40K	TeX
 56K	Input Methods
 64K	LaunchDaemons
 72K	Spotlight
 76K	Security
144K	Receipts
196K	InstallerSandboxes
240K	QuickTime
316K	Perl
500K	ScriptingAdditions
524K	Python
628K	PDF Services
724K	Fonts
1.1M	Updates
1.2M	Modem Scripts
1.3M	Automator
1.4M	Audio
1.4M	User Template
1.5M	Graphics
2.1M	Scripts
2.2M	Ruby
3.0M	Filesystems
4.6M	Google
5.2M	Preferences
8.1M	Documentation
8.6M	Keychains
8.8M	PrivilegedHelperTools
8.8M	StagedExtensions
9.5M	Logs
 13M	Extensions
 13M	WebServer
 14M	Image Capture
 16M	ColorSync
 17M	OFX
 17M	Plug-ins
 21M	User Pictures
 28M	Egret
 29M	QuickLook
 31M	Printers
 33M	PreferencePanes
 41M	Apple
 98M	Caches
109M	Desktop Pictures
328M	Internet Plug-Ins
585M	Frameworks
759M	Developer
1.8G	Java
3.4G	Application Support
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/Library » cd ~/Library                                                                                                                                 holoto@MacBook-Pro
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~/Library » sudo du -hs * | sort -h                                                                                                                     holoto@MacBook-Pro

  0B	ApplicationSupport
  0B	Assistants
  0B	Audio
  0B	BlueStacks
  0B	CallServices
  0B	ColorPickers
  0B	Compositions
  0B	Developer
  0B	Family
  0B	Favorites
  0B	GameKit
  0B	Input Methods
  0B	Jupyter
  0B	Keyboard Layouts
  0B	Maps
  0B	MobileDevice
  0B	Nemu
  0B	PDF Services
  0B	Parallels
  0B	PhotoshopCrashes
  0B	PreferencePanes
  0B	Printers
  0B	Private Documents
  0B	SafariSafeBrowsing
  0B	Screen Savers
  0B	ScreenRecordings
  0B	Scripts
  0B	Sounds
  0B	Speech
  0B	Voices
  0B	Workflows
  0B	iMovie
4.0K	DES
4.0K	Network
4.0K	News
4.0K	Python
4.0K	UIKitSystem
4.0K	Vivox
8.0K	Colors
8.0K	Recovery
 12K	Spelling
 12K	studentd
 16K	Sharing
 16K	iTunes
 24K	FileProvider
 24K	FontCollections
 32K	Google
 36K	ColorSync
 36K	CoreFollowUp
 36K	LaunchAgents
 48K	Receipts
 72K	Fonts
 80K	FrontBoard
 80K	MediaStream
 80K	PDF Expert
 96K	Keyboard
132K	com.apple.internal.ck
196K	Application Scripts
200K	PubSub
212K	dmd
260K	LanguageModeling
276K	Personas
328K	Dictionaries
372K	Cookies
476K	ssdtPRGen
604K	Passes
684K	KSCrashReports
892K	Accounts
968K	sapi
1.4M	Mail
2.2M	Assistant
2.6M	QuickLook
2.6M	apktool
2.7M	VirtualBox
2.9M	Saved Application State
3.1M	KeyboardServices
3.3M	Clipber
3.3M	IdentityServices
3.3M	Reminders
3.7M	SyncedPreferences
4.4M	WebKit
4.6M	HomeKit
5.3M	Calendars
6.4M	Safari
8.1M	PersonalizationPortrait
8.5M	Services
 11M	Metadata
 11M	Suggestions
 25M	Autosave Information
 25M	com.apple.icloud.searchpartyd
 44M	XMind
 47M	Internet Plug-Ins
 51M	Messages
112M	Keychains
113M	Mobile Documents
199M	Preferences
533M	Logs
543M	Group Containers
7.0G	Caches
 11G	Android
 11G	com.tencent.qq
 23G	Application Support
 29G	Containers
 cd Containers
 sudo du -hs * | sort -h
8.0K	holoto.myfirst
 16K	com.apple.DownloadFolderImporter
 16K	com.apple.ScreenSaver.Engine
 16K	com.apple.ScreenSaver.Engine.legacyScreenSaver
 20K	Denoiser-III
 20K	com.adguard.mac.adguard.loginhelper
 20K	com.alibaba.DingTalk-Drive.DTSyncStatus
 20K	com.apple.AirPlayUIAgent
 20K	com.apple.CryptoTokenKit.pivtoken
 20K	com.apple.CryptoTokenKit.setoken
 20K	com.apple.LoginUserService
 20K	com.apple.MessageUIMacHelperService
 20K	com.apple.OSDUIHelper
 20K	com.apple.Photos.librarychooserservice
 20K	com.apple.PressAndHold
 20K	com.apple.STMExtension.AppleInternal
 20K	com.apple.STMExtension.GarageBand
 20K	com.apple.SceneKitQLThumbnailExtension
 20K	com.apple.StickiesMigration
 20K	com.apple.coremedia.pluginformatreader
 20K	com.apple.diagnosticextensions.osx.filevault
 20K	com.apple.diagnosticextensions.osx.installlog
 20K	com.apple.diagnosticextensions.osx.maillogs
 20K	com.apple.diagnosticextensions.osx.spotlight
 20K	com.apple.diagnosticextensions.osx.syslog
 20K	com.apple.diagnosticextensions.osx.systemprofile
 20K	com.apple.diagnosticextensions.osx.timemachine
 20K	com.apple.diagnosticextensions.osx.wifi
 20K	com.apple.osx-tailspin
 20K	com.apple.preferences.sharing.SharingBluetoothService
 20K	com.apple.weather
 20K	com.microsoft.OneDriveLauncher
 20K	com.omnigroup.GraffleLayout
 20K	com.terry.ig
 20K	net.yanue.V2rayU.Launcher
 24K	com.Microsoft.OsfWebHost
 24K	com.Swiftify.FileService
 24K	com.Swiftify.Service
 24K	com.adguard.mac.adguard-loginhelper
 24K	com.appersian.IconKit-Helper
 24K	com.apple..NowPlayingWidgetContainer
 24K	com.apple..NowPlayingWidgetContainer.NowPlayingWidget
 24K	com.apple.AppSSOKerberos.KerberosExtension
 24K	com.apple.AppStoreDaemon.ASDAskPermissionExtension
 24K	com.apple.AquaAppearanceHelper
 24K	com.apple.AuthKitUI.AKAppSSOExtension
 24K	com.apple.CalendarFileHandler
 24K	com.apple.ClassKit.diagnosticextension
 24K	com.apple.CloudDocsDaemon.StorageManagement
 24K	com.apple.DataDetectorsActionService
 24K	com.apple.KerberosMenuExtra
 24K	com.apple.MarkupUI.Markup
 24K	com.apple.MediaLibraryService
 24K	com.apple.Music.MusicCacheExtension
 24K	com.apple.Music.MusicStorageExtension
 24K	com.apple.NetworkExtension.IKEv2Provider
 24K	com.apple.Notes.HTMLConverter
 24K	com.apple.Notes.datastore
 24K	com.apple.PhotoThemeService
 24K	com.apple.Photos.Migration.Reader
 24K	com.apple.Photos.StorageManagementExtension
 24K	com.apple.RAQLPreviewExtension
 24K	com.apple.RAQLThumbnailExtension
 24K	com.apple.STMExtension.Applications
 24K	com.apple.STMExtension.CloudFiles
 24K	com.apple.STMExtension.OtherUsers
 24K	com.apple.STMExtension.Trash
 24K	com.apple.STMExtension.iOSFiles
 24K	com.apple.STMFramework.UIHelper
 24K	com.apple.SceneKitQLPreviewExtension
 24K	com.apple.ScreenSaver.Computer-Name
 24K	com.apple.ScreenSaver.iLife-Slideshow-Extension
 24K	com.apple.SiriUI.SiriUISetupXPC
 24K	com.apple.Stickies
 24K	com.apple.TV.TVCacheExtension
 24K	com.apple.TV.TVStorageExtension
 24K	com.apple.accessibility.mediaaccessibilityd
 24K	com.apple.amp.devicesui
 24K	com.apple.appkit.xpc.ColorSampler
 24K	com.apple.appkit.xpc.LegacyExternalColorPickerService
 24K	com.apple.archiveutility
 24K	com.apple.diagnosticextensions.osx.getmobilityinfo
 24K	com.apple.dt.XCDocumenter.XCDocumenterExtension
 24K	com.apple.finder.CreatePDFQuickAction
 24K	com.apple.finder.MarkupQuickAction
 24K	com.apple.finder.RotateQuickAction
 24K	com.apple.finder.TrimQuickAction
 24K	com.apple.findmy.FindMyNotificationsServiceExtension
 24K	com.apple.iBooksX.CacheDelete
 24K	com.apple.iBooksX.DiskSpaceEfficiency
 24K	com.apple.iBooksX.SharingExtension
 24K	com.apple.languageassetd
 24K	com.apple.mediaanalysisd
 24K	com.apple.messages.MapRenderingService
 24K	com.apple.notificationcenterui.WeatherSummary
 24K	com.apple.photos.ImageConversionService
 24K	com.apple.photos.VideoConversionService
 24K	com.apple.podcasts.MacPodcastsStorageExtension
 24K	com.apple.preferencepane.security.PrivacyAnalytics
 24K	com.apple.replayKit.RPBroadcastActivityExtension-macOS
 24K	com.apple.scenekit.SCNSceneLoader
 24K	com.apple.sidecar.DisplayMarkup
 24K	com.apple.siri.DeepSyncVerificationService
 24K	com.apple.siriplugin.FileSearch
 24K	com.apple.stocks-widget-container
 24K	com.apple.system.airplay
 24K	com.apple.tonelibraryd
 24K	com.colliderli.iina.OpenInIINA
 24K	com.docker.helper
 24K	com.eltima.Folx3.FolxSafariExtension
 24K	com.eltima.folxgoplus.FolxSafariExtension
 24K	com.eltima.folxgoplus.FolxScheduleHelper
 24K	com.fiplab.bh3loginhelper
 24K	com.google.GoogleDrive.FinderSyncAPIExtension
 24K	com.koolesache.ColorSnapper2Helper
 24K	com.microsoft.Microsoft-Mashup-Container
 24K	com.microsoft.SkyDriveLauncher
 24K	com.microsoft.onenote.mac.shareextension
 24K	com.neatmp3.iconplus
 24K	com.omnigroup.OmniSoftwareUpdate.OSUCheckService
 24K	com.oray.pgy.PgyVisitorMac.Helper
 24K	com.tencent.ScreenCapture
 24K	com.tencent.ScreenCapture2
 24K	com.tencent.localserver
 24K	com.tencent.xinWeChat.WeChatMacShare
 24K	net.eisbox.iConvertIcons
 28K	andriiliakh.InstantTranslateHelper
 28K	cn.futu.FTMiniNNApp
 28K	com.Swiftify.TextService
 28K	com.appersian.iconkit
 28K	com.apple.AMPDeviceDiscoveryAgent
 28K	com.apple.AddressBook.UrlForwarder
 28K	com.apple.AmbientDisplayAgent
 28K	com.apple.AppleMediaServices.FollowUpExtension
 28K	com.apple.AuthKitUI.AKFollowUpServerUIExtension
 28K	com.apple.CommerceKit.AskPermissionExtension
 28K	com.apple.ContactsAgent
 28K	com.apple.ContactsUI.ContactPickerService
 28K	com.apple.CoreRoutine.helperservice
 28K	com.apple.DataDetectorsLocalSources
 28K	com.apple.FaceTime.IntentsExtension
 28K	com.apple.Grab
 28K	com.apple.IntlTexts.KeyboardServicesHelper
 28K	com.apple.Localization.SetDefaultsService
 28K	com.apple.MailCacheDelete
 28K	com.apple.MarkupUI.MarkupPhotoExtension
 28K	com.apple.Notes.NotesImporter
 28K	com.apple.Pass-Viewer
 28K	com.apple.PassXPCService
 28K	com.apple.PhotoIngestService
 28K	com.apple.PhotoLibraryServices.PhotosDiagnostics
 28K	com.apple.Photos.PhotosSiriExtension
 28K	com.apple.Siri
 28K	com.apple.TelephonyUtilities.PhoneIntentHandler
 28K	com.apple.appstore.PluginXPCService
 28K	com.apple.configurator.xpc.DeviceService
 28K	com.apple.configurator.xpc.LogService
 28K	com.apple.diagnosticextensions.osx.bluetooth
 28K	com.apple.diagnosticextensions.osx.safari
 28K	com.apple.dt.BitbucketHostBuiltInExtension
 28K	com.apple.dt.GitLabHostBuiltInExtension
 28K	com.apple.dt.GitLabSelfHostBuiltInExtension
 28K	com.apple.dt.IDECacheDeleteAppExtension
 28K	com.apple.dt.XcodeBuiltInExtensions
 28K	com.apple.grapher
 28K	com.apple.iBooksX-SecureUserDefaults
 28K	com.apple.iCal.CalendarNC
 28K	com.apple.iTunes.today.TodayExtension
 28K	com.apple.mail.SpotlightIndexExtension
 28K	com.apple.messages.StorageManagementExtension
 28K	com.apple.mobileslideshow.photo-picker
 28K	com.apple.ncplugin.WorldClock
 28K	com.apple.ncplugin.calculator
 28K	com.apple.podcasts.MacQuicklookExtension
 28K	com.apple.podcasts.PodcastsAuthAgent
 28K	com.apple.preferencepane.security.AdvertisingExtension
 28K	com.apple.print.normalizerd
 28K	com.apple.reminders.macOSTodayExtension
 28K	com.apple.reminders.quicklookextension
 28K	com.apple.replayKit.RPVideoEditorExtension-macOS
 28K	com.apple.share.AirDrop.send
 28K	com.apple.share.Mail.compose
 28K	com.apple.share.Mail.compose-back-to-sender
 28K	com.apple.share.SocialWidget
 28K	com.apple.share.System.add-to-iphoto
 28K	com.apple.share.System.add-to-safari-reading-list
 28K	com.apple.share.System.set-account-picture
 28K	com.apple.share.System.set-buddy-picture
 28K	com.apple.share.System.set-desktop-image
 28K	com.apple.sharekit.EntitlementsHelper
 28K	com.apple.signpost.signpost-notificationd
 28K	com.apple.systempreferences.cacheAssistant
 28K	com.microsoft.OneDrive.DownloadAndGo
 28K	com.parallels.desktop.console.DiskUsage
 28K	com.tencent.qq.QQShare
 28K	com.tunabellysoftware.TGProLaunchHelper
 28K	com.xunlei.Thunder.Thunder-Extension
 28K	net.shinyfrog.image2icon.templateRenderer
 28K	ru.keepcoder.Telegram.TelegramShare
 32K	com.apple.AddressBook.ABPersonViewService
 32K	com.apple.AddressBook.ContactsAccountsService
 32K	com.apple.CloudPhotosConfiguration
 32K	com.apple.DataDetectorsViewService
 32K	com.apple.MailServiceAgent
 32K	com.apple.MailShareExtension
 32K	com.apple.PassKit.PaymentAuthorizationUIExtension
 32K	com.apple.PhotoLibraryMigrationUtility
 32K	com.apple.Photos.Migration
 32K	com.apple.ReminderKitUI.ReminderCreationViewService
 32K	com.apple.STMExtension.Mail
 32K	com.apple.Safari.BrowserDataImportingService
 32K	com.apple.Safari.DiagnosticExtension
 32K	com.apple.ScreenTimeViewService
 32K	com.apple.Siri.SiriTodayExtension
 32K	com.apple.SystemProfiler.MessagesHelper
 32K	com.apple.TextEdit
 32K	com.apple.configurator.xpc.AirTrafficService
 32K	com.apple.configurator.xpc.MigrationService
 32K	com.apple.configurator.xpc.SmartHubService
 32K	com.apple.dt.BitbucketServerHostBuiltInExtension
 32K	com.apple.dt.GitHubEnterpriseHostBuiltInExtension
 32K	com.apple.iTunesCacheExtension
 32K	com.apple.iTunesStorageExtension
 32K	com.apple.inputmethod.EmojiFunctionRowItem
 32K	com.apple.mail.MailQuickLookExtension
 32K	com.apple.messages.AssistantExtension
 32K	com.apple.photomodel
 32K	com.apple.podcasts.SpotlightIndexExtension
 32K	com.apple.reminders.macOSIntentsExtension
 32K	com.apple.reminders.sharingextension
 32K	com.apple.share.CloudSharing.invite
 32K	com.apple.share.Facebook.post
 32K	com.apple.share.Facebook.set-profile-image
 32K	com.apple.share.LinkedIn.post
 32K	com.apple.share.LinkedIn.set-profile-image
 32K	com.apple.share.SinaWeibo.post
 32K	com.apple.share.System.add-to-aperture
 32K	com.apple.share.TencentWeibo.post
 32K	com.apple.share.Twitter.post
 32K	com.apple.share.Twitter.set-profile-image
 32K	com.apple.share.Video.upload-Tudou
 32K	com.apple.share.Video.upload-Vimeo
 32K	com.apple.share.Video.upload-Youku
 32K	com.betafish.adblock-mac.SafariMenu
 32K	com.microsoft.openxml.excel.app
 32K	com.microsoft.outlook.profilemanager
 36K	com.apple.CalendarNotification.CalNCService
 36K	com.apple.Notes.QuickLookExtension
 36K	com.apple.Notes.SpotlightIndexExtension
 36K	com.apple.SSMenuAgent
 36K	com.apple.TelephonyUtilities.IntentHandler
 36K	com.apple.VoiceMemos
 36K	com.apple.contacts.donation-agent
 36K	com.apple.lateragent
 36K	com.apple.messages.ReplyExtension
 36K	com.apple.ncplugin.FindMyFriends
 36K	com.apple.quicklook.QuickLookUIService
 36K	com.apple.quicklook.ui.helper
 36K	com.apple.share.Video.upload-Facebook
 36K	com.apple.share.Video.upload-image-Flickr
 36K	com.apple.share.Video.upload-video-Flickr
 40K	com.apple.reminders.RemindersNC
 44K	com.apple.ScreenSharing
 44K	tv.airbeam.mirrorforlgtv
 48K	com.blackmagic-design.DiskSpeedTest
 48K	com.wangxutech.MacLetsView
 52K	com.Aperio-Lux.IconFly
 52K	com.apple.messages.ShareExtension
 56K	com.apple.FaceTime.FaceTimeNotificationCenterService
 72K	com.apple.calculator
 76K	com.apple.soagent
 88K	com.apple.Preview
 96K	com.apple.AddressBook
112K	com.apple.CaptiveNetworkAssistant
112K	com.apple.Safari.CacheDeleteExtension
112K	com.apple.SocialPushAgent
120K	com.apple.iCal
120K	com.apple.ncplugin.weather
120K	com.iwaxx.LanScan-Pro
124K	com.apple.LookupViewService
124K	com.apple.QuickTimePlayerX
124K	com.apple.Safari.SafariQuickLookPreview
124K	com.apple.reminders
124K	com.primatelabs.mas.Geekbench4
128K	com.realtechvr.glview4
128K	org.sparkle-project.Downloader
132K	com.apple.dt.GitHubHostBuiltInExtension
136K	com.apple.FaceTime
136K	com.apple.configurator.ui
136K	com.apple.configurator.xpc.InternetService
148K	PDFReaderX
148K	com.apple.Dictionary
152K	com.apple.UsageTrackingAgent
152K	com.corecode.SSDReporter
160K	FN2V63AD2J.com.tencent.ScreenCapture2
160K	com.syniumsoftware.screenium3
176K	com.apple.CloudDocs.MobileDocumentsFileProvider
188K	com.Swiftify.Xcode.Extension
188K	com.oray.pgy.PgyVisitorMac.Provider
216K	com.movist.Movist
224K	com.apple.iChat
224K	com.quotleapp.colorpikka
228K	com.oray.pgy.PgyVisitorMac
244K	com.Swiftify.Xcode
248K	com.eyalw.1Keyboard
252K	com.microsoft.OneDrive-mac.FinderSync
264K	com.microsoft.Office365ServiceV2
264K	ru.keepcoder.Telegram
268K	com.microsoft.errorreporting
272K	com.eltima.folxgoplus
276K	com.educationterra.EnglishClass
328K	com.bananaglue.mac.inet
340K	com.bjango.istatmac
352K	com.apple.AppleMediaServicesUI.SpyglassPurchases
352K	com.apple.inputmethod.SCIM
392K	com.apple.Notes.SharingExtension
456K	com.apple.accessibility.heard
468K	com.apple.preferences.sharing.SharingPrefsExtension
512K	com.flinto.Flinto
512K	com.microsoft.OneDrive.FinderSync
552K	com.apple.photolibraryd
620K	com.apple.ncplugin.stocks
700K	com.apple.photomoments
800K	com.apple.Maps
948K	com.apple.siri.media-indexer
1004K	com.apple.SiriNCService
1.1M	net.maxon.cinebench
1.2M	com.apple.Chess
1.2M	com.apple.PhotoBooth
1.2M	com.apple.news
1.3M	com.apple.mail
1.9M	com.apple.WeatherKitService
1.9M	com.pixelmatorteam.pixelmator.x
2.3M	andriiliakh.Instant-Translate
2.3M	com.apple.CalendarAgent
2.5M	com.mac-attender.Network-Radar
2.5M	com.seriflabs.affinitydesigner
2.6M	com.apple.stocks
3.4M	com.apple.corerecents.recentsd
3.5M	com.apple.ImageKit.RecentPictureService
3.6M	com.microsoft.OneDrive-mac
4.7M	com.tencent.meeting
4.8M	com.omnigroup.OmniGraffle7
5.2M	io.sftpclient.sftp-client
5.3M	com.apple.routined
7.1M	org.splayer.splayerx
7.6M	com.syniumsoftware.logoist3
7.7M	com.apple.podcasts
8.6M	com.apple.cloudphotosd
8.7M	com.microsoft.onenote.mac
8.8M	com.shapeservices.implusosx
8.9M	com.microsoft.Excel
9.0M	com.apple.AMPArtworkAgent
9.3M	com.apple.ScreenTimeAgent
9.6M	com.apple.photoanalysisd
 11M	com.microsoft.Outlook
 12M	com.apple.geod
 12M	com.xiami.macclient
 14M	Tomorrow-Corporation.Human-Resource-Machine
 16M	com.apple.Safari
 18M	com.tencent.WeWorkMac
 19M	com.microsoft.Word
 24M	com.adobe.accmac.ACCFinderSync
 24M	com.luckymarmot.Paw
 36M	com.microsoft.SkypeForBusiness
 41M	com.apple.iBooksX
 44M	com.apple.Notes
 49M	com.apple.appstore
 54M	com.microsoft.Powerpoint
 55M	com.taobao.Aliworkbench
 90M	com.apple.Home
137M	com.apple.Photos
171M	com.apple.BKAgentService
185M	com.taobao.Aliwangwang
233M	com.kingsoft.wpsoffice.mac
271M	com.tencent.QQMusicMac
884M	com.tencent.qq
6.3G	com.docker.docker
 20G	com.tencent.xinWeChat
cd /usr
sudo du -hs * | sort -h
  0B	X11
  0B	X11R6
 20M	sbin
 44M	bin
 50M	lib
 57M	libexec
100M	standalone
192M	share
 17G	local
cd /usr/local
sudo du -hs * | sort -h
  0B	Frameworks
  0B	opt
  0B	sbin
 56K	libexec
320K	include
7.5M	etc
9.0M	var
 34M	bin
 56M	ibmcloud
 71M	share
535M	Homebrew
1.5G	Caskroom
1.5G	lib
5.4G	texlive
7.8G	Cellar