Sloth 是一款 macOS 原生应用,把命令行工具 lsof 的输出解析后呈现在可排序、可搜索的图形界面中。它能列出所有运行进程打开的文件、目录、IP 套接字、Unix 域套接字、管道和设备,并支持按名称、访问模式、卷、类型、路径或正则表达式过滤。用户可以查看套接字状态、协议与端口,也能看清进程之间建立的连接。应用提供详细检查窗口展示文件、套接字和进程信息,右键菜单可直接进行文件操作,还支持授权后以 root 权限扫描。项目自 2004 年起持续维护,使用 Objective-C/Cocoa 编写,体积小、响应快。
brew install --cask 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.
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.
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.
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.
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/.
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.
内容由编辑整理,部分信息来自 GitHub 与项目官网,版权归原作者所有。发现错误?报告问题