linux 疑问 如何查看用户所在组,及权限

如题所述

linux查看用户所在组及权限的方法有:

ls -l /etc/group 查看所有的用户组及权限 

ls -l /etc/passwd 查看所有用户及权限 

groups 查看当前用户所在的组 

扩展资料

linux通用命令

1、date :print or set the system date and time

2、stty -a: 可以查看或者打印控制字符(Ctrl-C, Ctrl-D, Ctrl-Z等)

3、passwd: print or set the system date and time (用passwd -h查看)

4、 logout, login: 登录shell的登录和注销命令

5、pwd: print working directory

6、more, less, head tail: 显示或部分显示文件内容

7、lp/lpstat/cancel, lpr/lpq/lprm: 打印文件

8、更改文件权限: chmod u+x...

9、删除非空目录:rm -fr dir

10、拷贝目录: cp -R dir

11、fg jobid :可以将一个后台进程放到前台

Ctrl-z 可以将前台进程挂起(suspend), 然后可以用bg jobid 让其到后台运行

job & 可以直接让job直接在后台运行

12、kill 的作用: send a signal to a process. eg: kill -9 发送的是SIG_KILL信号。。。 具体发送什么信号 可以通过 man kill 查看

13、 ps 的用法, ps -e 或 ps -o pid,ppid,session,tpgid, comm (其中session显示的sessionid, tpgid显示前台进程组id, comm显示命令名称。)

温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网