-
ls /etc/[^[:alpha:]][[:alpha:]]*
-
cp -a /etc/p*[^0-9] /tmp/mytest1
-
cat /etc/issue | tr "a-z" "A-Z" | tee /tmp/issue.out
-
用户管理命令
useradd -u uid -r -g groupname或gid -s shell路径 -d homedir
userdel -f/-h/-r username
usermod -a/-c/-d username
组管理命令
groupadd -f/-g groupname
groupdel groupmod 同上(1) groupadd -g 2019 distro (2) useradd -u 1005 mandriva -g distro (3) useradd -u 1100 mageia -d /home/linux (4) echo mageedu | passwd --stdin mageia passwd -x 7 mageia (5) userdel mandriva (6) groupadd peguin useradd slackware -u 2002 -g distro -G peguin (7) usermod slackware -s /bin/tcsh (8) groupadd admins useradd slackware3 -G admins
网友评论