1. Displays the current time, the display format is HH:MM:SS, and is saved to the file Time.txt file.
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9C/5F/wKiom1lvZbPC311MAABCfFDDzjY186.png-wh_500x0-wm_ 3-wmp_4-s_647382095.png "title=" screenshot from 2017-07-19 16-18-41.png "alt=" Wkiom1lvzbpc311maabcffddzjy186.png-wh _50 "/>
2. Display the 第15-18 line contents of the/etc/passwd file
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9C/5F/wKioL1lvZfnjF_s7AACnZMz_Z4s146.png-wh_500x0-wm_ 3-wmp_4-s_641761358.png "title=" screenshot from 2017-07-19 16-24-22.png "alt=" Wkiol1lvzfnjf_s7aacnzmz_z4s146.png-wh _50 "/>
3. display files in/bin file containing uppercase letters, save to desktop 1.txt file, and count the number of display to screen
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9C/5F/wKiom1lvZmXQ_GnkAAAeUo4r_ig585.png-wh_500x0-wm_ 3-wmp_4-s_3534505410.png "title=" screenshot from 2017-07-19 16-53-17.png "alt=" wkiom1lvzmxq_gnkaaaeuo4r_ Ig585.png-wh_50 "/>
4. Under student user Find/etc under passwd file, mask error output
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/9C/5F/wKioL1lvZs-hCYXSAAAnIC9q7Co955.png-wh_500x0-wm_ 3-wmp_4-s_2211396868.png "title=" screenshot from 2017-07-19 17-01-15.png "alt=" Wkiol1lvzs-hcyxsaaanic9q7co955.png-wh_50 "/>
5. Under student user Find/etc under passwd file, correct output saved to/tmp/westos.out, error output saved to/tmp/westos.err
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/9C/5F/wKiom1lvZ13wEa_JAAAo91gjCP0652.png-wh_500x0-wm_ 3-wmp_4-s_1191400906.png "title=" screenshot from 2017-07-19 17-04-53.png "alt=" Wkiom1lvz13wea_ Jaaao91gjcp0652.png-wh_50 "/>
6. Under student user Find/etc under passwd file, display command output and save output to/tmp/westos.all
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9C/5F/wKioL1lvZ6LyL29RAAGK-VdmcY4051.png-wh_500x0-wm_ 3-wmp_4-s_3675580199.png "title=" screenshot from 2017-07-19 17-10-54.png "alt=" Wkiol1lvz6lyl29raagk-vdmcy4051.png-wh_50 "/>
7. Processing documents in document/usr/share/mime/packages/freedesktop.org.xml requirements are as follows:
Locate the lines in this file that contain Ich, and save these lines to/root/lines
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9C/5F/wKiom1lvaFugGnK3AACwhRpSipc464.png-wh_500x0-wm_ 3-wmp_4-s_804312025.png "title=" screenshot from 2017-07-19 11-47-41.png "alt=" Wkiom1lvafuggnk3aacwhrpsipc464.png-wh _50 "/>
Use VIM to replace the space in the/root/lines, but keep the contents of the file
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/9C/5F/wKioL1lvaGzT4clFAACJWqnI6h8384.png-wh_500x0-wm_ 3-wmp_4-s_3044140297.png "title=" screenshot from 2017-07-19 12-38-33.png "alt=" Wkiol1lvagzt4clfaacjwqni6h8384.png-wh_50 "/>
8. New user group, Shengchan,caiwu,jishu
New user requirements are as follows:
* Tom is an additional user of the Shengchan group
* Harry is an additional user of the Caiwu group
* Leo is an additional user of the Jishu group
* New Admin user, this user does not belong to the above mentioned three departments
The new directory requirements are as follows:
*/pub directory for common storage directory for all users can read, write, execute, but users can only delete files belonging to their own
*/SC directory for production department storage Directory can only be written to production department personnel,
the files created by the production staff are automatically attributed to the Shengchan group
*/CW Directory for the Finance Department storage directory can only be written to the Finance department personnel,
and financial department personnel created by the documents are automatically attributed to the Caiwu group
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9C/5F/wKioL1lvaOrTJgDfAAEn1cBnaYY114.png-wh_500x0-wm_ 3-wmp_4-s_356044656.png "style=" Float:none; "title=" screenshot from 2017-07-19 13-05-06.png "alt=" Wkiol1lvaortjgdfaaen1cbnayy114.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/9C/5F/wKiom1lvaOvTnk5iAAA1tpUpwDQ130.png-wh_500x0-wm_ 3-wmp_4-s_4030802625.png "style=" Float:none; "title=" screenshot from 2017-07-19 13-05-21.png "alt=" Wkiom1lvaovtnk5iaaa1tpupwdq130.png-wh_50 "/>
9. Set normal user new file permission to "r--r-----"
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9C/5F/wKioL1lvadbCuHtEAAAq5oJZcF8410.png-wh_500x0-wm_ 3-wmp_4-s_1048594258.png "title=" screenshot from 2017-07-19 11-44-36.png "alt=" Wkiol1lvadbcuhteaaaq5ojzcf8410.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9C/5F/wKiom1lvaeGT_mKUAABu-pZUi5A228.png-wh_500x0-wm_ 3-wmp_4-s_2429303350.png "title=" screenshot from 2017-07-19 11-43-33.png "alt=" Wkiom1lvaegt_ Mkuaabu-pzui5a228.png-wh_50 "/>
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9C/5F/wKioL1lvafvCXqDIAABiz-FIsNs164.png-wh_500x0-wm_ 3-wmp_4-s_477940557.png "title=" screenshot from 2017-07-19 12-44-55.png "alt=" Wkiol1lvafvcxqdiaabiz-fisns164.png-wh _50 "/>
Settings Admin user can freely create new user via sudo
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9C/5F/wKiom1lvak2yyC1kAAA5fAaODH8414.png-wh_500x0-wm_ 3-wmp_4-s_2499369686.png "title=" screenshot from 2017-07-19 11-45-17.png "alt=" Wkiom1lvak2yyc1kaaa5faaodh8414.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9C/5F/wKiom1lvalfgOv7RAAArUW8UG6c164.png-wh_500x0-wm_ 3-wmp_4-s_3435512506.png "title=" screenshot from 2017-07-19 12-42-09.png "alt=" Wkiom1lvalfgov7raaaruw8ug6c164.png-wh_50 "/>
Today's practice is here, tomorrow to continue to learn new things!
Practice time View Pipeline Vim permissions