sveinbjornt/Sloth
以原生图形界面替代lsof命令行,直观展示系统文件、套接字与管道占用。
Fork: 177 Star: 8966 (更新于 2026-09-30 08:25:51)
license: BSD-3-Clause
Language: Objective-C .
最后发布版本: 3.6 ( 2026-04-22 23:33:08)
Sloth将传统lsof命令行工具转化为现代macOS原生应用,解决了开发者排查文件占用与网络连接时门槛高、效率低的核心痛点。它通过可排序、可过滤的纲要视图,将底层文件描述符、套接字及管道可视化,显著降低系统级排错难度。作为一款自2004年持续演进至2026年、完全免费开源的工具,它已成为macOS生态中不可或缺的轻量级系统观测入口,对性能调试、安全审计与日常运维具有直接实用价值。
- 可视化所有进程打开文件
- 展示IP与Unix套接字状态
- 透视进程间通信管道连接
- 支持名称、类型等复杂过滤
- 一键复制文件路径与表示
- 兼容macOS 11+原生架构
- 开源免费且持续维护20年
Mac app that shows all open files, directories, sockets, pipes and devices in use by all running processes. Nice GUI for lsof.
Sloth
![]()
Sloth is a native Mac app that shows all open files, directories, sockets, pipes, and devices in use by all running processes on your system. This makes it easy to inspect which apps are using which files, etc.
- View all open files, directories, IP sockets, devices, Unix domain sockets, and pipes
- Filter by name, access mode, volume, type, location, or using regular expressions
- Sort by process name, file count, type, process ID, user ID, Carbon PSN, bundle UTI, etc.
- View IP socket status, protocol, port and version
- View sockets and pipes established between processes
- Inspection window with detailed macOS and Unix file/socket/process info
- Powerful contextual menu for file operations
- In-app authentication to scan with root privileges
- Very fast, responsive native app written in Objective-C/Cocoa
Sloth is essentially a friendly, exploratory graphical user interface built
on top of the lsof command line tool.
The output of lsof is parsed and shown in a sortable, searchable outline
view with all sorts of convenient additional functionality.
Check out the screenshots below.
Download
Sloth is free, open source software and has been continuously developed and maintained for a very long time (since 2004). If you find this program useful, please make a donation.
- ⬇ Download Sloth 3.6 (~1.3 MB, Universal ARM/Intel 64-bit, macOS 11 or later, Developer ID signed and notarized)
Sloth can also be installed via Homebrew (may not be the latest version):
brew install --cask sloth
If you need to run it on macOS 10.13-10.15, version 3.4 works just fine. For 10.9-10.12, version 3.2 does the trick. All older versions can be downloaded here.
Screenshots
View open files
View IP sockets
View sockets and pipes between processes
Build
Sloth can be built by running the following command in the repository root (requires Xcode build tools):
make build_unsigned
Built products are created in products/.
BSD License
Copyright (c) 2004-2026 Sveinbjorn Thordarson
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
最近版本更新:(数据更新于 2026-09-03 21:03:19)
2026-04-22 23:33:08 3.6
2025-11-15 15:44:45 3.5
2025-05-20 06:30:57 3.4
2024-04-25 23:35:21 3.3
2022-01-31 02:24:38 3.2
2021-03-21 00:12:39 3.1
2020-11-26 23:10:31 3.0.1
2020-11-25 07:33:21 3.0
2020-02-27 23:34:12 2.9
2019-03-30 21:38:47 2.8.1
主题(topics):
macos gui macos-app osx objective-c macosx unix filter socket macos-application pipes directories domain-sockets ip-sockets lsof native-mac native-mac-app open-files sloth unix-domain-sockets
sveinbjornt/Sloth同语言 Objective-C最近更新仓库
2026-09-25 04:19:30 monal-im/Monal
2026-09-21 21:08:17 Sequel-Ace/Sequel-Ace
2026-09-16 02:12:08 noah-nuebling/mac-mouse-fix
2026-09-14 07:54:06 sparkle-project/Sparkle
2026-09-04 08:11:03 google/GoogleSignIn-iOS
2026-08-25 20:19:54 tidev/titanium-sdk
