A
1, display the current time, the display format is HH:MM:SS, and saved to the file Time.txt file
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/08/00/wKiom1nY8yKxw-g0AAGwaEl9IG4446.png-wh_500x0-wm_ 3-wmp_4-s_1725245104.png "title=" screenshot from 2017-10-02 22-05-04.png "alt=" Wkiom1ny8ykxw-g0aagwael9ig4446.png-wh_50 "/>
2. Display 第15-18 line contents of/etc/passwd file
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/08/1F/wKiom1nblIWCFj2YAABuXmpXj4E289.png-wh_500x0-wm_ 3-wmp_4-s_1784404181.png "title=" screenshot from 2017-10-09 21-12-11.png "alt=" Wkiom1nbliwcfj2yaabuxmpxj4e289.png-wh_50 "/>
3. Display files containing uppercase letters in/bin file, save to Bin_westos_file.txt file, and count the number of display to screen
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/08/00/wKiom1nY-YihnfUIAABwxxj3ook479.png-wh_500x0-wm_ 3-wmp_4-s_499176342.png "title=" screenshot from 2017-10-01 22-39-38.png "alt=" Wkiom1ny-yihnfuiaabwxxj3ook479.png-wh _50 "/>
4, under the student user to find/etc under the passwd file, screening error output 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/A6/B2/wKioL1nY-EviDYdNAAEPwi43-EA831.png-wh_500x0-wm_ 3-wmp_4-s_2491359287.png "title=" screenshot from 2017-10-01 22-26-40.png "alt=" Wkiol1ny-evidydnaaepwi43-ea831.png-wh_50 "/>
5, under the student user to find/etc under the passwd file, display the command output and save the output to/tmp/westos.all
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/A6/B2/wKioL1nY-YKQtg26AAELlAtLVm4795.png-wh_500x0-wm_ 3-wmp_4-s_604275920.png "title=" screenshot from 2017-10-01 22-43-34.png "alt=" Wkiol1ny-ykqtg26aaellatlvm4795.png-wh _50 "/>
Two
New user group: Shengchan,caiwu,jishu. 650) this.width=650; "Src=" Https://s2.51cto.com/wyfs02/M 02/08/1f/wkiom1nblo6ikphkaabz7gdkjcq873.png-wh_500x0-wm_3-wmp_4-s_3107489417.png "title=" Screenshot from 2017-10-09 20-20-44.png "alt=" Wkiom1nblo6ikphkaabz7gdkjcq873.png-wh_50 "/>
New user requirements are as follows:
1) The initial group of ADMINSC is Shengchan
2) The initial group of ADMINCW is Caiwu
3) Adminjs Initial Group is Jishu 4) Tom is an additional user of the Shengchan group
5) Harry is an additional user of the CAIW group
6) Leo is an additional user of the Jishu group
7) Create a new administrative user, the user does not belong to the above mentioned three departments
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/08/1F/wKiom1nblRiRWtq5AADorr1M3Fg844.png-wh_500x0-wm_ 3-wmp_4-s_2873800465.png "title=" screenshot from 2017-10-09 20-33-06.png "alt=" Wkiom1nblrirwtq5aadorr1m3fg844.png-wh_50 "/>
Create a new directory as follows:
1)/CW directory owner is ADMINCW, this directory is the Finance Department storage directory, only for the Finance department personnel can write
2)/sc directory owner is ADMINSC, this directory for production department storage directory, only for production department personnel can write
3)/js directory owner is ADMINJS, this directory for technical department storage directory, only for technical department personnel can write
4) Admin User is the company boss, you can freely in the above three directory summary to create a file delete files
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/08/1F/wKiom1nblVKijHDhAAEYLyii_-g498.png-wh_500x0-wm_ 3-wmp_4-s_3261242480.png "title=" screenshot from 2017-10-09 20-52-38.png "alt=" wkiom1nblvkijhdhaaeylyii_- G498.png-wh_50 "/>
# #end # #
This article is from the "13342594" blog, please be sure to keep this source http://13352594.blog.51cto.com/13342594/1971051
Beginner Linux four or five unit of the better practice