命令:groupadd 添**組
用法:groupadd [options] group groupadd 群組
[
root
@fp-21~
]#groupadd
--help-f,
--force
#如果組已經存在,則成功退出,如果gid已被使用,則取消-g-g,
--gid
gid#
指定群組gid-h,
--help
#幫助文件-k,
--key
key=
value#覆蓋
/etc
/login
.defs預設值-o,
--non-unique
#允許建立具有重複(非唯一)gid的組-p,
--password
password
#為新組使用此加密密碼-r,
--system
#建立系統帳戶
# 如果組已經存在,則成功退出,如果gid已被使用,則取消-g
[root@fp-21~
]# grep "tom"
/etc/passwd
tom:x:
1000
:1000::
/home/tom:
/bin/bash
[root@fp-21~
]# groupadd -f tom
# 指定群組gid
[root@fp-21~
]# groupadd -g 1222 test11
[root@fp-21~
]# tail -
1/etc/
group
test11:x:
1222
:
link 檢視 linux 基礎命令 Linux基礎命令
eg man ls 就可以檢視ls相關的用法 注 按q鍵或者ctrl c退出,在linux下可以使用ctrl c終止當前程式執行。2.ls檢視目錄或者檔案的屬 列舉出任一目錄下面的檔案 eg ls usr man ls l a.d表示目錄 directory 如果是乙個 表示是檔案,如果是l則表示是...
linux基礎 命令
命令自動補全 help幫助 幫助文件 鳥哥linux私房菜 linux命令大全 工具書 man ls useradd utest useradd g group2 utest 建立utesty使用者屬於group2組 usermod g group3 utest 將utest所在的組改為group3...
linux 命令基礎
本週學習知識點 一 linux作業系統的目錄結構 在linux作業系統中,沒有 c d e等這些碟符的概念 只有乙個 代表根目錄。home 使用者的家 media 裝置 掛載 的映象檔案 root 最高許可權使用者 一般情況下不需要使用root 使用者 bin 所有的操作都是通過 命令實現的,這些命...