1.mkdir /home/tuser1
find /etc/skel/ -not -type d | xargs cp -t /home/tuser1
chmod -R g=,o= /home/tuser1/
2.vi編輯/etc/group文件,輸入G跳轉至最后一行,輸入o進入編輯模式,完成hadoop組的添加。
3.?vi編輯/etc/group文件,輸入G跳轉至最后一行,輸入o進入編輯模式,完成hadoop用戶的添加
4.mkdir /home/hadoop
find /etc/skel/ -not -type d | xargs cp -t /home/hadoop
chmod -R g=,o= /home/hadoop/
5.chown -R hadoop:hadoop /home/hadoop
6.cat /proc/meminfo | grep -E “^[Ss].*”
cat /proc/meminfo | grep -E “^(S|s).*
7.grep -v -E “.*(/sbin/nologin)$” /etc/passwd | cut -d: -f1
8.grep -E “.*(/bin/bash)$” /etc/passwd | cut -d: -f1
9.grep? -E “\<[0-9]{1,2}\>” /etc/passwd
10.grep -E “^[[:space:]]+.*” /boot/grub/grub.conf
11.grep -E “^[#][[:space:]]+[^[:space:]]+.*” /etc/rc.d/rc.sysinit
12.netstat -tan | grep -E “.*\<LISTEN\>[[:space:]]+$”
13.grep -E “^([[:alnum:]]+\>).*\1$” /etc/passwd
本文來自投稿,不代表Linux運維部落立場,如若轉載,請注明出處:http://www.www58058.com/103813