惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
有赞技术团队
有赞技术团队
H
Help Net Security
V
Visual Studio Blog
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
N
Netflix TechBlog - Medium
罗磊的独立博客
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements

ashishb.net

A day in Luxembourg - the richest country in the world I was asked to install malware during a fake interview Book summary: Breakneck - China's quest to engineer the future by Dan Wang Book summary: How to Teach Your Baby to Read Book Summary: The Discontented Little Baby Book by Pamela Douglas Introducing Amazing Sandbox - run third-party tools and AI agents securely on your machine Why software outsourcing gets a bad reputation? Book summary: The Natural Baby Sleep Solution by Polly Moore A day in Antwerp, Belgium Journey of online influencers Two days in Brussels, Belgium Shortcuts - when we love them and when we don't A visit to Rakhigarhi Three days in overhyped Paris Empty Japan, crowded Tokyo The real lock-in in GitHub is not the code, but the stars 11-day Norwegian Breakaway East Caribbean cruise Sanskrit and Sri Lankan Air Force Use REST with Open API The Achilles heel of American capitalism Costa Rica in 4 days At a juice stall in Sri Lanka A short stay at Warsaw, Poland Best practices for using Python & uv inside Docker Two days in Vilnius, Lithuania How IntelliJ IDEs waste disk space Pregnancy Why there aren't many digital nomads from India Two days in Riga, Latvia To keep your machine secure, run third-party tools inside Docker
Mac OS X Primer (Part 2): GNU/Linux -> Mac for software e...
Ashish Bhatia · 2014-02-28 · via ashishb.net

Booting process

  1. The bootloader loads the kernel stored in /mach_kernel. Tip: Use rEFIt as a bootloader for dual booting into GNU/Linux.
  2. Kernel launches the launchd process which is equivalent of init in GNU/Linux.
  3. launchd loads startup processes from several directories (/System/Library/LaunchAgents, /System/Library/LaunchDeamons, /Library/LaunchAgents, /Library/LaunchAgents and corresponding files in ~/Library directory)

Directory structure

  1. /Applications - Holds actual applications. Applications are directories with “.app” extension and contain Mach-O executable and other helper files.
  2. /Library - Similar to /etc on GNU/Linux. It contains system wide config primarily for applications under /Applications. User-specific settings end up in /Users/$USER/Applications dir.
  3. /Network - contains network mounts.
  4. /System - seems to contain system specific data which is not modified regularly
  5. /Users - Equivalent of /home on GNU/Linux
  6. /bin - Same as GNU/Linux
  7. /sbin - Same as GNU/Linux
  8. /private - /private/tmp is same as /tmp on GNU/Linux. /private/var is same as /var on GNU/Linux. /private/etc seems to contain settings just like /etc on GNU/Linux.

Miscellaneous

  1. The correct pronunciation is “Oh-es-ten” and not “Oh-es-X”.

  2. Press “D” while booting up to enable diagnostic checks on the system.

  3. Enable Mouseless copy in iTerm2

  4. Cheatsheet - A helper app that enables you to do a Long press of command button in any app to reveal all app shortcuts. It only works with Cocoa-based apps, and most apps are Cocoa-based.

  5. Fluid - An app that converts a web page into a Mac app.

  6. Mounting a disk image Note: The process is a bit more involved with encrypted images.

    1
    2
    
    $ hdiutil mount image.iso
    ...
  7. To read binary plist files use plutil

    1
    2
    
    $ sudo plutil -p /private/var/db/dslocal/nodes/Default/users/root.plist
    ...
  8. To set/get the hostname from command-line

    1
    2
    3
    
    $ scutil --get HostName
    $ scutil --set HostName NewHostName
    ...

Further readings

  1. https://www.matisse.net/OSX/darwin_commands.html
  2. https://www.mitchchn.me/2014/os-x-terminal/
  3. furbo.org/2014/09/03/the-terminal/
  4. https://www.wezm.net/technical/2019/10/useful-command-line-tools/
  5. https://www.dyx.name/posts/macunix.html