1遵湖、顯示/etc/下以非字母開頭 后面跟任意字符的文件或目錄
ls /etc/[^[:alpha:]]*
2、復(fù)制/etc/下以p開頭以非數(shù)字結(jié)尾的文件或目錄到/tmp/mytest1下
cp -r /etc/p*[^[:digit:]] /tmp/mytest1/
3晚吞、cat /etc/issue | tr a-z A-Z > /tmp/issue.out
4延旧、
groupadd -g 2019 distro
root@test2:/etc:42
$tail -1 /etc/group
distro:x:2019:
useradd -u 1005 mandriva -g distro
useradd -u 1100 -d /home/linux mageia
echo magedu | passwd mageia --stdin
passwd -n 7 mageia
或者chage -m 7 mageia
userdel mandriva
useradd slackware -u 2002 -g distro -G peguin
usermod -s /bin/sh slackware? 沒有/bin/tcsh 用/bin/sh代替
usermod -aG admins slackware