本页目录
三开
Linux
删除登录密码
sudo passwd -d <username>
显示所有运行进程
ps aux
a
:显示所有用户的进程
u
:显示详细信息
x
:显示没有控制终端的进程
查找文件、设置查找深度
查找根目录下所有rc
结尾的文件,只递归两层:
find / -maxdepth 2 -type f -name "*rc"
Mac OS
在当前路径打开访达
open .
允许从任意来源安装
sudo spctl --master-disable
查看安装的pkg包
pkgutil --pkgs
查看包的详细信息:
pkgutil --info <com.xxx.pkg-name>
查看软件安装列表
系统信息
-软件
-安装
列表可能存在重复项(例如多次安装),编辑/查看方法为(这里以查看为例):
cat /Library/Receipts/InstallHistory.plist
重建Spotlight索引
sudo mdutil -E /
修改截图的输出格式
Mac自带截图功能(command
+shift
+3
/4
/5
)默认输出格式为png
,可以修改为jpg
:
defaults write com.apple.screencapture type jpg