Fix Yosemite Wi-Fi Issues with a Terminal Command
In this article
Yes, you can fix many Wi-Fi issues on macOS Yosemite with a terminal command, specifically by deleting the system’s Wi-Fi configuration files and restarting the Wi-Fi adapter. This command forces the system to rebuild its wireless settings from scratch, which often resolves dropped connections, slow speeds, and failure to join networks.
Why Yosemite Had Wi-Fi Problems
OS X Yosemite (10.10) was released in 2014 and introduced a redesigned system, but many users reported persistent Wi-Fi problems—random disconnects, inability to join networks, and slow throughput. Apple acknowledged some issues and released updates, but the root cause often lay in corrupted or outdated Wi-Fi configuration files stored in the system’s preferences. These files, named com.apple.wifi.message-tracer.plist and com.apple.wifi.plist, can become corrupted after a crash, a failed update, or even normal use. When that happens, the system may fail to properly negotiate with your router or access point.
The Terminal Command That Works
Open Terminal (found in Applications > Utilities) and run the following command:
sudo rm -rf /Library/Preferences/SystemConfiguration/com.apple.wifi.message-tracer.plist /Library/Preferences/SystemConfiguration/com.apple.wifi.plistAfter running it, restart your Mac or simply turn Wi-Fi off and on from the menu bar. The system will recreate these files with default settings, which usually resolves the issue. This command requires administrator privileges, so you’ll be prompted for your password. It’s safe—these are just preference files, and macOS will regenerate them automatically.
How to Use the Command Safely
Before running any terminal command, ensure you have a backup of important data (though this particular command doesn’t touch personal files). Here’s a step-by-step guide:
- Close all applications that use the network heavily (browsers, downloads, streaming).
- Open Terminal.
- Type or paste the command above, then press Enter.
- Enter your admin password when prompted (you won’t see characters as you type).
- Wait for the command to finish (usually a few seconds).
- Restart your Mac, or toggle Wi-Fi off and on.
If the problem persists, you can also try resetting the SMC (System Management Controller) and NVRAM (non-volatile random-access memory), but the terminal command is the first step because it’s quick and non-invasive.
What the Command Actually Does
The two files you delete are not essential system files—they store Wi-Fi network preferences, such as remembered networks, security settings, and diagnostic logs. When you delete them, macOS forgets your saved Wi-Fi networks, so you’ll need to re-enter passwords for networks you use. The system then rebuilds these files from scratch, eliminating any corruption. This is similar to “forgetting” a network on your phone, but at a system level.
Common Problems and Alternatives
If the terminal command doesn’t fix your issue, try these alternatives:
- Restart your router—power cycle it for 30 seconds.
- Change Wi-Fi channels—interference from neighbors can cause drops.
- Update to the latest OS—Yosemite is no longer supported, but newer versions have improved Wi-Fi stacks.
- Create a new network location in System Preferences > Network > Locations.
A common misconception is that the command deletes all network settings, including Ethernet. It only affects Wi-Fi preferences, so your wired connections remain intact.
Safety and Precautions
Running sudo rm can be dangerous if you mistype a path, so always copy the command exactly. Double-check that you’re in the correct directory and the filenames are spelled correctly. If you’re uncomfortable with terminal commands, you can achieve the same result by going to System Preferences > Network > Wi-Fi > Advanced and removing all preferred networks, then restarting. However, that doesn’t delete the diagnostic logs, which may be the source of corruption.
Frequently Asked Questions
Will this command erase my saved Wi-Fi passwords?
Yes, it will remove all saved Wi-Fi networks from your Mac, so you’ll have to re-enter passwords for networks you join. This is a minor inconvenience compared to persistent connection issues.
Is it safe to run this command on other macOS versions?
Yes, the same files exist in later versions of macOS (up to Catalina and beyond), and the command works similarly. However, newer versions may have additional Wi-Fi configuration files, so you might need to also delete com.apple.wifi.known-networks.plist in some cases.
What if the command doesn’t fix my Wi-Fi?
If the issue persists, the problem may be hardware-related (e.g., a failing Wi-Fi card) or due to router settings. Try resetting your router, updating its firmware, or contacting your ISP. You can also run Apple Diagnostics by restarting and holding the D key.
Do I need to restart my Mac after running the command?
It’s recommended, but not strictly required. Toggling Wi-Fi off and on may be enough. A restart ensures all system services reload cleanly.
Can I avoid using Terminal altogether?
Yes, you can manually delete the files via Finder by navigating to /Library/Preferences/SystemConfiguration/ and moving the two files to the Trash. You’ll need admin rights. The terminal command is just faster.