By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Security Bite: Down the rabbit hole of neat, lesser-known Terminal commands (Pt. 3) – 9to5Mac
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Security Bite: Down the rabbit hole of neat, lesser-known Terminal commands (Pt. 3) – 9to5Mac
News

Security Bite: Down the rabbit hole of neat, lesser-known Terminal commands (Pt. 3) – 9to5Mac

News Room
Last updated: 2025/12/02 at 9:09 PM
News Room Published 2 December 2025
Share
Security Bite: Down the rabbit hole of neat, lesser-known Terminal commands (Pt. 3) – 9to5Mac
SHARE

9to5Mac Security Bite is exclusively brought to you by Mosyle, the only Apple Unified Platform. Making Apple devices work-ready and enterprise-safe is all we do. Our unique integrated approach to management and security combines state-of-the-art Apple-specific security solutions for fully automated Hardening & Compliance, Next Generation EDR, AI-powered Zero Trust, and exclusive Privilege Management with the most powerful and modern Apple MDM on the market. The result is a totally automated Apple Unified Platform currently trusted by over 45,000 organizations to make millions of Apple devices work-ready with no effort and at an affordable cost. Request your EXTENDED TRIAL today and understand why Mosyle is everything you need to work with Apple.


You can stop holding your breath. Down the rabbit hole of neat, lesser-known Terminal commands is back! ICYMI, I’ve recently found myself fascinated by all the helpful tricks Terminal can do to improve my productivity and overall make me more proficient behind a Mac as a security practitioner. In previous editions, I covered everything from enabling Touch ID for sudo authentication to cleaning up public Wi-Fi connections. This week, I share even more commands I’ve since discovered.

Set an alarm inside Terminal

If you have trouble taking breaks between punching in Terminal commands like a sleep-deprived toddler and creating shareholder value better than Steve Jobs convincing the world that $1,000 monitor stands were a necessary part of the human experience, I have news…

You can quickly set alarms from the command line in Terminal in just seconds.

Enter leave [time]. For example this:

leave 1846

This also works using your local time–just omit the semicolon in the middle. For example, 641 would be 6:41 am or pm, depending on which is first.

Detailed battery info in one command

I’m obsessed with maximizing the battery health of my Apple devices, especially my 2024 M3 MacBook Air, which I’m proud to say is holding up well. In addition to proving the maximum capacity, the command below will give you other useful stats like condition, the serial number of the battery, cycle count, and firmware/hardware versions.

system_profiler SPPowerDataType

Find any password you’ve ever saved

While it’s common knowledge that Apple’s Passwords app also contains every saved Wi-Fi network password, there’s a quicker way to search and find them in Terminal. Use this command:

Security find-generic-password -wa [Wi-Fi Network]

This command will search through your iCloud Keychain much like the Password app does behind the scenes. If you entered it correctly, with a familiar Wi-Fi network name, Terminal will prompt you to enter your local password, and boom!

Flush all your hidden downloads

Your Mac keeps a database of everything you’ve ever downloaded, even if you proactively clear your browser history. If you want a truly clean slate and don’t want someone to see what you’ve been up to, run the first command to view the contents and the second to purge the log.

  1. sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'
  2. sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'

Change the default screenshot file name

If you’re like me, Screenshot is one of the most frequently used utilities on my Mac. But by default, each screenshot begins with “Screenshot” in the file name, which can get a little confusing when you’re working between applications and taking captures of each. Instead of having dozens of “Screenshot” file names on your desktop, you can use this command to name them based on the tasks you’re working on.

defaults write com.apple.screencapture name <Name>

Replace <Name> with whatever you’d like to help you identify the screenshot files more easily. For example, I used “Security Bite” below. Now, all screenshots I take will start with this until I change it back to the default or something else entirely.

Change the default screenshot file format

We can also tweak the screenshot file types. By default, new grabs will resort to PNG, which is great for image quality but can take up more space than one would like.

Supported formats include PNG, JPG, PDF, GIF, and TIFF.

For example, if you’d like to save a screenshot of a PDF, do this:

defaults write com.apple.screencapture name SecurityBite type pdf

Bonus: ASCII Aquarium

This one will provide zero productivity or security benefit, serving only the sacred purpose of pure unadulterated Terminal-tainment (Copyright pending). If you already have Brew installed, you can skip the first command; otherwise, enter both and watch your window turn into a live aquarium.

  1. install brew (If this gives you a command not found: brew error message, try this: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)")
  2. brew install asciiquarium
  3. Then, asciiquarium to launch it


Security Bite is 9to5Mac’s weekly deep dive into the world of Apple security. Each week, Arin Waichulis unpacks new threats, privacy concerns, vulnerabilities, and more, shaping an ecosystem of over 2 billion devices.

Have another Security Bite

Follow Arin: Twitter/X, LinkedIn, Threads

Add 9to5Mac as a preferred source on Google
Add 9to5Mac as a preferred source on Google

FTC: We use income earning auto affiliate links. More.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article This AI model prioritizes privacy, and now it’s yours for life for This AI model prioritizes privacy, and now it’s yours for life for $80
Next Article YouTube Adds One More Year-End Recap, This Time for Your Viewing History YouTube Adds One More Year-End Recap, This Time for Your Viewing History
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Tue, 12/02/2025 – 18:00 – Editors Summary
News
Google TV Streamer still at a record-low price, saving you 25%
Google TV Streamer still at a record-low price, saving you 25%
News
McDonald&apos;s Grinch Meal or Burger King&apos;s SpongeBob Menu? We Pick a Winner
McDonald's Grinch Meal or Burger King's SpongeBob Menu? We Pick a Winner
News
Android 16’s latest update ushers in a more frequent release schedule
Android 16’s latest update ushers in a more frequent release schedule
News

You Might also Like

Tue, 12/02/2025 – 18:00 – Editors Summary

1 Min Read
Google TV Streamer still at a record-low price, saving you 25%
News

Google TV Streamer still at a record-low price, saving you 25%

3 Min Read
McDonald&apos;s Grinch Meal or Burger King&apos;s SpongeBob Menu? We Pick a Winner
News

McDonald's Grinch Meal or Burger King's SpongeBob Menu? We Pick a Winner

10 Min Read
Android 16’s latest update ushers in a more frequent release schedule
News

Android 16’s latest update ushers in a more frequent release schedule

2 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?