cp -r /etc/skel/ /home/tuser1chmod -R 700 /home/tuser1ll -d /home/tuser1
echo "hadoop:x:3006:" >> /etc/grouptail -1 /etc/group
echo "hadoop:x:3006:3006::/home/hadoop:/bin/bash" >>/etc/passwdtail -1 /etc/passwd
cp -r /etc/skel/ /home/hadoopchmod 700 /home/hadoop/
chown -R hadoop.hadoop /home/hadoop/ll -a /home/hadoop/
grep "^[Ss]" /proc/meminfoSwapCached: 0 kBSwapTotal: 2097144 kBSwapFree: 2097144 kBShmem: 248 kBSlab: 64992 kBSReclaimable: 12376 kBSUnreclaim: 52616 kB或者grep -i "^s" /proc/meminfoSwapCached: 0 kBSwapTotal: 2097144 kBSwapFree: 2097144 kBShmem: 248 kBSlab: 64992 kBSReclaimable: 12372 kBSUnreclaim: 52620 kB
grep -v "/sbin/nologin" /etc/passwd | cut -d: -f1
grep "/bin/bash" /etc/passwd | cut -d: -f
grep "\<[[:digit:]]\{1,2\}\>" /etc/passwd
grep "^[[:space:]]\+" /boot/grub/grub.conf
grep "^#[[:space:]]\+[^[:space:]]\+" /etc/rc.d/rc.sysinit
netstat -tan | grep -E "\<LISTEN[[:space:]]+"
useradd bashuseradd -s /sbin/nologin testbashuseradd basheruseradd nologincat /etc/passwd | cut -d : -f 1,7 | grep "/sbin/nologin"
原创文章,作者:Leexide,如若转载,请注明出处:http://www.178linux.com/49844

