
創(chuàng)建用戶(hù): useradd -u :用戶(hù)的UID -g :指定私有組 -c :對(duì)這個(gè)用戶(hù)的描述 -d :指定家目錄 -s :指定shell -G :指定附加組 -r: 創(chuàng)建系...
cat /etc/issue /etc/fstab > /tmp/etc.test
cat /etc/group | sort -t : -k 3 -n | head -10 | cut -d : -f1
ls /etc/*.conf | cut -d / -f3 | tr ‘a(chǎn)-z' 'A-Z' > /tmp/etc.conf
ifconfig eth0 | grep 'inet' | awk '{print $2}' | head -1 awk '{print $2}':只顯示區(qū)域2. head ...