---
title: "Mac:常用命令行备忘"
author: "Hobo86"
date: "2012-07-11T15:27:11Z"
tags: []
categories: ["操作系统"]
slug: "mac"
draft: false
lastmod: "2013-06-17T16:43:24Z"
id: 1585080
url: "https://hobo86.iteye.com/blog/1585080"
---

User Libiary 的显隐：

chflags nohidden ~/Library/

chflags hidden ~/Library

 

Finder里面显示隐藏文件

defaults write com.apple.finder AppleShowAllFiles -bool true

 

统计代码行数，Classses为代码文件夹

grep -d recurse "\\n" Classes| wc -l