1, the creation of a 10G file system, the type of EXT4, requires the boot can be automatically mounted to a separate data/data directory;
(1) Create a 10G partition
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/79/35/wKiom1aLeNqwb_MQAAAjvdUMx-I851.png "title=" 1.png " alt= "Wkiom1alenqwb_mqaaajvdumx-i851.png"/>
(2)
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/79/33/wKioL1aLed_jMN4EAAArv_Yb9aw050.png "title=" 2.png " alt= "Wkiol1aled_jmn4eaaarv_yb9aw050.png"/>
2, display the ' Netstat-tan ' command results with ' LISTEN ' followed by 0, one or more blank characters end of the line;
netstat-tan | Grep-e "\<listen\>[[:space:]]*$"
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/79/35/wKiom1aLfJfgr3uTAAAjK2NcWsM189.png "title=" 3.png " alt= "Wkiom1alfjfgr3utaaajk2ncwsm189.png"/>
3 , add user Nginx, Zabbix, Tomcat, and Hadoop users (the Nologin user's shell is/sbin/nologin), and then find the row in the/etc/passwd file that has the same user name as its shell name ;
(1) add user Nginx, Zabbix, Tomcat, and Hadoop user (Nologin user's shell is/sbin/nologin)
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/79/34/wKioL1aLfXayFRX2AAAbmCQluUQ966.png " Title= "5.png" alt= "Wkiol1alfxayfrx2aaabmcqluuq966.png"/>
(2) Locate the line in the/etc/passwd file that has the same user name as its shell name
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/79/34/wKioL1aLgCPgex9hAAAfAACycJo895.png "title=" 4.png " alt= "Wkiol1algcpgex9haaafaacycjo895.png"/>
4, find a word in the/etc/rc.d/init.d/functions file (there can be an underscore in the middle of the word) followed by a set of parentheses;
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/79/35/wKiom1aLgMDT8AyGAAA5AjM1Qs8723.png "title=" 6.png "alt=" Wkiom1algmdt8aygaaa5ajm1qs8723.png "/>
5, use echo to output a path, and then egrep to find its path base name, and further use Egrep to remove its directory name (note that the directory name, not the directory path);
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/79/36/wKiom1aLiZ2zXAaAAAANlSdS7_o489.png " Title= "Qq20160105171341.png" alt= "Wkiom1aliz2zxaaaaaanlsds7_o489.png"/>
6 Find all files that are not root, bin, or Hadoop under the/usr directory;
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/79/34/wKioL1aLgezCdoiXAAAFwFYBvWM900.png " Title= "7.png" alt= "Wkiol1algezcdoixaaafwfybvwm900.png"/>
7, one day the system was invaded, hackers in your system to leave the Trojan file:
You now need to find all the files on the current system that are not owned by the master or group and have been visited in the last week;
In addition, it is necessary to find all files of more than 20k and type ordinary files in/etc directory;
Find/ -nouser-o-nogroup -atime-7
find/etc -size +20k -type F
8, create the directory/test/data, let a group of ordinary users have write permissions to it, and all the files created by the group is the directory belongs to the group; In addition, each user can only delete their own files.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/79/35/wKiom1aLghfwKSRYAAAnE5Gj16Y167.png "title=" 8.png " alt= "Wkiom1alghfwksryaaane5gj16y167.png"/>
Linux OPS Practice case-December 20, 2015-December 31 (first time)