常用 Shell 工具

这里记录一些开发时常用的 Shell 工具和命令,长期更新。


查看后台进程

Ctrl+z 会将正在运行的进程调到后台执行

$ jobs
[1]+  Stopped                 ping www.baidu.com

调出后台进程

$ fg %1
ping www.baidu.com
64 bytes from 112.80.248.76 (112.80.248.76): icmp_seq=4 ttl=251 time=9.27 ms

递归删除所有 pyc 文件

find . -name "*.pyc" -type f -print -exec rm -rf {} \;

Linux普通用户修改密码

直接输入 passwd
root 用户可以 passwd tom
原文地址:https://www.cnblogs.com/junsircoding/p/15664938.html