Skip to content

Instantly share code, notes, and snippets.

@shhider
Last active March 22, 2018 09:02
Show Gist options
  • Save shhider/875e4c9e6b97cc8a49e3759e1d7e3341 to your computer and use it in GitHub Desktop.
Save shhider/875e4c9e6b97cc8a49e3759e1d7e3341 to your computer and use it in GitHub Desktop.
一些可能会用到,但老记不住的 Linux 命令
# 查看Linux的发行版本
lsb_release -a
uname -a
cat /etc/issue
cat /proc/version
# 列出本地已经安装了的 package
dpkg --get-selections | grep -v deinstall
groups # 查看本机所有的组
groups username # 查看当前用户所在的组
whoami # 查看当前用户
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment