Linux Basic Learning Second unit exercise

Source: Internet
Author: User

Unit two exercises

1. Create a file with commands and regular expressions as required

*) Create 12 files with one command Westos_classx_linuxy (the value range of x is 1-2,y 1-6)

*) These files are included in the study directory of the root user's desktop

*) Create 8 files with one command Redhat_versionx (the range of x is 1-8)

*) Redhat_virsionx These files are included in version in the/MNT directory


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/88/6C/wKioL1f3aQCzKm6RAABp70kZaTI378.png-wh_500x0-wm_3 -wmp_4-s_3352569701.png "style=" Float:none; "title=" screenshot from 2016-10-07 15_05_29.png "alt=" Wkiol1f3aqczkm6raabp70kzati378.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/88/6C/wKioL1f3aQGSxkNeAACEDYddP-o051.png-wh_500x0-wm_3 -wmp_4-s_1240746871.png "style=" Float:none; "title=" screenshot from 2016-10-07 16_27_26.png "alt=" Wkiol1f3aqgsxkneaacedyddp-o051.png-wh_50 "/>

2. Management of the documents just established by the letter is as follows

*) Copy the odd files in the Redhat_versionx to the single in the desktop with one command

*) copy files with even numbers in Redhat_versionx to/double with a single command

*) use a command to move the Class1 file in Westos_classx_linuxy to the CLASS1 of the current user's desktop

*) use a command to move the Class2 file in Westos_classx_linuxy to the CLASS2 of the current user's desktop


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/6F/wKiom1f3aQKSIddDAAFBSj37-qE637.png-wh_500x0-wm_3 -wmp_4-s_70070918.png "style=" Float:none; "title=" screenshot from 2016-10-07 16_56_35.png "alt=" Wkiom1f3aqksidddaafbsj37-qe637.png-wh_50 "/>

3. Back up all the files in the/etc directory with the names with numbers and end with. conf to the Confdir on the desktop



650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/88/6C/wKioL1f3aQPQgpIaAABxJIpJxEU637.png-wh_500x0-wm_3 -wmp_4-s_4234736270.png "style=" Float:none; "title=" screenshot from 2016-10-07 16_59_53.png "alt=" Wkiol1f3aqpqgpiaaabxjipjxeu637.png-wh_50 "/>

4. Delete all files you have just created or backed up


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/88/6F/wKiom1f3aQOxNnfAAAA42xavWJY737.png-wh_500x0-wm_3 -wmp_4-s_1637729872.png "style=" Float:none; "title=" screenshot from 2016-10-07 17_03_39.png "alt=" Wkiom1f3aqoxnnfaaaa42xavwjy737.png-wh_50 "/>




This article is from the "12112684" blog, please be sure to keep this source http://12122684.blog.51cto.com/12112684/1859122

Linux Basic Learning Second unit exercise

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.