我需要更改系统的日期。我正在运行 Linux CentOS 5.6。
# date +%Z
UTC
# date
Thu Oct 6 11:42:45 UTC 2011
Run Code Online (Sandbox Code Playgroud)
如何将小时更改为 UTC/GMT +1?
我对在 Linux 中使用命令id有一些疑问......
我已将一个用户(andre)添加到“github-total”组中,如果我执行id andre我得到:
$ id andre
uid=500(andre) gid=500(andre) groups=500(andre),502(github-total) context=user_u:system_r:unconfined_t
Run Code Online (Sandbox Code Playgroud)
但如果我只做id:
$ id
uid=500(andre) gid=500(andre) groups=500(andre) context=user_u:system_r:unconfined_t
Run Code Online (Sandbox Code Playgroud)
问题是,当我只运行id而没有参数时,用户“andre”并没有假设他在“github-total”组中。而实际上用户不在组中。
所以我的问题是......如何将用户“andre”添加到“github-total”组中?
此致,
对不起我的英语。