技术栈

mac相关命令

npupengsir2025-02-19 12:28
  1. 显示和隐藏usr等隐藏文件文件
    terminal输入:
bash 复制代码
defaults write com.apple.Finder AppleShowAllFiles YES

defaults write com.apple.Finder AppleShowAllFiles NO
  1. 让.bashrc每次启动shell自动生效
    编辑vim ~/.bash_profile 文件, 加上
bash 复制代码
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

注意空格不能少, 然后 source ~/.bash_profile

上一篇:微信小程序之mobx-miniprogram状态管理
下一篇:计时器任务实现(保存视频和图像)
相关推荐
golang学习记
2 天前
macOS 技巧:使用修饰键控制热角(Hot Corners)
macos
独隅
2 天前
MacOS 系统下 ADB (Android Debug Bridge) 全面安装与配置指南
android·macos·adb
getapi
2 天前
Mac mini M4 安装 Node.js 22 教程
macos·node.js
STRUGGLE_xlf
2 天前
MAC电脑Docker Desktop部署n8n
macos·docker·eureka
伐尘
2 天前
【Mac】ranger使用小记
macos·终端
golang学习记
2 天前
macOS 技巧:自定义 Dock 栏最近应用显示数量
macos
golang学习记
2 天前
[特殊字符] Mac 截图完全指南
macos
想你依然心痛
2 天前
从零开始:Mac/Windows/Linux 三系统开发环境配置完全指南
linux·windows·macos
望眼欲穿的程序猿
2 天前
MacOS自定义安装Rust
开发语言·macos·rust
ywlovecjy
3 天前
macOs安装docker且在docker上部署nginx+php
nginx·macos·docker
热门推荐
01GitHub 镜像站点022026年3月AI领域大事件:DeepSeek引领开源风暴03Qwen3.5-Omni与Qwen3.6模型全面解析(含测评/案例/使用教程)04Claude Code + GLM4.7 避坑指南:解决 Unable to connect to Anthropic services05UV安装并设置国内源06让 Trae IDE 智能体 “读懂”文档 Excel+PDF+DOCX :mcp-documents-reader 工具使用指南07AI 编程效率翻倍:Superpowers Skills 上手清单 + 完整指南08如何解决 OpenClaw “Pairing required” 报错:两种官方解决方案详解09深扒 Claude Code Buddy 模式:一只仙人掌背后的确定性随机算法10“wsl --install -d Ubuntu-22.04”下载慢,中国地区离线安装 Ubuntu 22.04 WSL方法(亲测2025年5月6日)