macOS/Linux 命令备忘

Table of Contents


macOS

brew

# 列出不被别的 formula 依赖的 formula
brew leaves
# 更新 formulas
brew leaves |xargs brew upgrade

Others

  • Reset Launchpad Apps Order

    defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
    
  • 读取 ext4 分区
    https://github.com/gerard/ext4fuse

    # 准备环境
    brew cask install osxfuse
    brew install ext4fuse
    
    # 列出分区
    diskutil list
    
    # 将 /dev/disk1s4 分区, 挂在到 linux 目录
    sudo ext4fuse /dev/disk1s4 linux -o allow_other
    

Author: Saul Lawliet

Created: 2020-11-29 Sun 11:09

Validate XHTML 1.0