Last active
March 22, 2018 09:02
-
-
Save shhider/875e4c9e6b97cc8a49e3759e1d7e3341 to your computer and use it in GitHub Desktop.
一些可能会用到,但老记不住的 Linux 命令
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 查看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