Shell scripting exercises for the Linux shell scripts

Source: Internet
Author: User
Tags ip number

1. Find the currently interactive user

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/00/CF/wKiom1mdh9rxWKWHAABNp7Z1LwU734.png "title=" Screenshot from 2017-08-23 21-48-49.png "alt=" Wkiom1mdh9rxwkwhaabnp7z1lwu734.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9F/7E/wKioL1mdhcSzQBRsAAB5YZ6aqeQ585.png "style=" float : none; "title=" screenshot from 2017-08-21 13-05-09.png "alt=" Wkiol1mdhcszqbrsaab5yz6aqeq585.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/00/CF/wKiom1mdhc_i_Fo6AAAaQ65aqZA506.png "style=" float : none; "title=" screenshot from 2017-08-21 13-05-16.png "alt=" Wkiom1mdhc_i_fo6aaaaq65aqza506.png "/>



2. Red Red background display from 1 to 10 chronograph

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/00/CF/wKiom1mdhc_Q9APsAAA8seoz62U160.png "style=" float : none; "title=" screenshot from 2017-08-21 14-15-51.png "alt=" Wkiom1mdhc_q9apsaaa8seoz62u160.png "/>


3. Query IP Connectivity

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9F/7F/wKioL1mdiLXA3Bw2AAB6ovLIsxY733.png "style=" float : none; "title=" screenshot from 2017-08-21 16-04-48.png "alt=" Wkiol1mdilxa3bw2aab6ovlisxy733.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/00/CF/wKiom1mdiMDiaeWGAAA-uOfI7_o621.png "style=" float : none; "title=" screenshot from 2017-08-21 16-05-18.png "alt=" Wkiom1mdimdiaewgaaa-uofi7_o621.png "/>


4. Interactive, prompt query IP connectivity

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9F/7F/wKioL1mdiLaCYKEuAAB4qlP8NL8231.png "style=" float : none; "title=" screenshot from 2017-08-21 17-20-34.png "alt=" Wkiol1mdilacykeuaab4qlp8nl8231.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9F/7F/wKioL1mdiLazXB3NAAAt9sXAkpc242.png "style=" float : none; "title=" screenshot from 2017-08-21 17-20-46.png "alt=" Wkiol1mdilazxb3naaat9sxakpc242.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/00/CF/wKiom1mdiMHQS_t0AADd2M0eeR0017.png "style=" float : none; "title=" screenshot from 2017-08-21 17-21-02.png "alt=" Wkiom1mdimhqs_t0aadd2m0eer0017.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/00/CF/wKiom1mdiMLQOjo_AADOQu6odWA367.png "style=" float : none; "title=" screenshot from 2017-08-21 17-21-13.png "alt=" Wkiom1mdimlqojo_aadoqu6odwa367.png "/>



5. Display host has several network cards, the IP number of each NIC


650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9F/7F/wKioL1mdiWzQo7pzAAAgX0BoOfI781.png "style=" float : none; "title=" screenshot from 2017-08-23 09-42-58.png "alt=" Wkiol1mdiwzqo7pzaaagx0boofi781.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/00/CF/wKiom1mdiXfQ06ekAADxoqD1qK8553.png "style=" float : none; "title=" screenshot from 2017-08-23 09-43-55.png "alt=" Wkiom1mdixfq06ekaadxoqd1qk8553.png "/>



6.1 Seconds Countdown with red Red background

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9F/7F/wKioL1mdiW3DHBYzAACTLjCqI2Q629.png "style=" float : none; "title=" screenshot from 2017-08-23 10-04-05.png "alt=" Wkiol1mdiw3dhbyzaactljcqi2q629.png "/>



7. Automatically set up users in the UserFile

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9F/7F/wKioL1mdiW7QXRyjAAAhD9959K8522.png "style=" float : none; "title=" screenshot from 2017-08-23 10-13-14.png "alt=" Wkiol1mdiw7qxryjaaahd9959k8522.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/00/CF/wKiom1mdiXjTJGXtAAB3MCW_OKc478.png "style=" float : none; "title=" screenshot from 2017-08-23 10-12-23.png "alt=" Wkiom1mdixjtjgxtaab3mcw_okc478.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9F/7F/wKioL1mdiW6RKfVFAADGsNYmYp4810.png "style=" float : none; "title=" screenshot from 2017-08-23 10-12-39.png "alt=" Wkiol1mdiw6rkfvfaadgsnymyp4810.png "/>


8. Automatic deletion of users in UserFile


650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/00/CF/wKiom1mdisKQkt20AAAvofz_eLE053.png "style=" float : none; "title=" screenshot from 2017-08-23 10-15-24.png "alt=" Wkiom1mdiskqkt20aaavofz_ele053.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9F/7F/wKioL1mdirigETP_AACNadRwC18216.png "style=" float : none; "title=" screenshot from 2017-08-23 10-15-58.png "alt=" Wkiol1mdirigetp_aacnadrwc18216.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9F/7F/wKioL1mdirmxRRh3AAC_-NpJEKs176.png "style=" float : none; "title=" screenshot from 2017-08-23 10-16-16.png "alt=" Wkiol1mdirmxrrh3aac_-npjeks176.png "/>


9.10 Seconds Countdown

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/00/CF/wKiom1mdisTCpYmvAACaRfyTVW8990.png "style=" float : none; "title=" screenshot from 2017-08-23 11-28-09.png "alt=" Wkiom1mdistcpymvaacarfytvw8990.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9F/7F/wKioL1mdirrQhyunAAAdNSxc6i0562.png "style=" float : none; "title=" screenshot from 2017-08-23 11-28-40.png "alt=" Wkiol1mdirrqhyunaaadnsxc6i0562.png "/>



10.1 minutes and 10 seconds Countdown

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/00/CF/wKiom1mdisWxYpuMAACwLtwcXRE245.png "style=" float : none; "title=" screenshot from 2017-08-23 13-36-43.png "alt=" Wkiom1mdiswxypumaacwltwcxre245.png "/>


650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9F/7F/wKioL1mdi4vCdTveAADZJWJYr_g241.png "style=" float : none; "title=" screenshot from 2017-08-23 13-36-55.png "alt=" Wkiol1mdi4vcdtveaadzjwjyr_g241.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/00/CF/wKiom1mdi5ayeALdAAAdHq4k_y8370.png "style=" float : none; "title=" screenshot from 2017-08-23 13-37-10.png "alt=" Wkiom1mdi5ayealdaaadhq4k_y8370.png "/>



11. Character Inversion

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9F/7F/wKioL1mdi4yx1cjJAAAtz0_CeXM431.png "style=" float : none; "title=" screenshot from 2017-08-23 13-41-51.png "alt=" Wkiol1mdi4yx1cjjaaatz0_cexm431.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/00/CF/wKiom1mdi5exuNECAACZrcOQ6Zc737.png "style=" float : none; "title=" screenshot from 2017-08-23 13-42-18.png "alt=" Wkiom1mdi5exunecaaczrcoq6zc737.png "/>


12. Interactive Query file type

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9F/7F/wKioL1mdjAjQY2P3AAB6OBnerEw280.png "style=" float : none; "title=" screenshot from 2017-08-23 13-56-15.png "alt=" Wkiol1mdjajqy2p3aab6obnerew280.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/00/CF/wKiom1mdjBSxAk0xAACMoe0ZZ9g952.png "style=" float : none; "title=" screenshot from 2017-08-23 15-09-22.png "alt=" Wkiom1mdjbsxak0xaacmoe0zz9g952.png "/>



13. Automatically create a new UserFile user, the password is the value in Passfile

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9F/7F/wKioL1mdiW7QXRyjAAAhD9959K8522.png "style=" float : none; "title=" screenshot from 2017-08-23 10-13-14.png "alt=" Wkiol1mdiw7qxryjaaahd9959k8522.png "/>

Password:

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/00/D0/wKiom1mdknaiso9WAAAQT07MI64757.png "style=" float : none; "title=" screenshot from 2017-08-23 22-31-24.png "alt=" Wkiom1mdknaiso9waaaqt07mi64757.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/00/CF/wKiom1mdjBOxqogAAAAWuqxi58g038.png "style=" float : none; "title=" screenshot from 2017-08-23 15-05-47.png "alt=" Wkiom1mdjboxqogaaaawuqxi58g038.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9F/7F/wKioL1mdjAricp7tAAEnMNVb31w883.png "style=" float : none; "title=" screenshot from 2017-08-23 15-06-34.png "alt=" Wkiol1mdjaricp7taaenmnvb31w883.png "/>


14. Automatically create a new UserFile user, the password is the value in Passfile

automatic deletion of users in UserFile

User:

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9F/7F/wKioL1mdiW7QXRyjAAAhD9959K8522.png "style=" float : none; "title=" screenshot from 2017-08-23 10-13-14.png "alt=" Wkiol1mdiw7qxryjaaahd9959k8522.png "/>

Password:

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/00/D0/wKiom1mdknaiso9WAAAQT07MI64757.png "style=" float : none; "title=" screenshot from 2017-08-23 22-31-24.png "alt=" Wkiom1mdknaiso9waaaqt07mi64757.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9F/7F/wKioL1mdkmyhtSFaAAFD0kmHgqQ712.png "style=" float : none; "title=" screenshot from 2017-08-23 22-32-09.png "alt=" Wkiol1mdkmyhtsfaaafd0kmhgqq712.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/00/D0/wKiom1mdknfAZpV1AAEfa4SNHFw245.png "style=" float : none; "title=" screenshot from 2017-08-23 22-32-37.png "alt=" Wkiom1mdknfazpv1aaefa4snhfw245.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9F/7F/wKioL1mdkm2jZ6UoAABbjL5wdhM575.png "style=" float : none; "title=" screenshot from 2017-08-23 22-32-50.png "alt=" Wkiol1mdkm2jz6uoaabbjl5wdhm575.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/00/D0/wKiom1mdk6ihkQAmAAAUhdjoX-o745.png "style=" float : none; "title=" screenshot from 2017-08-23 22-38-48.png "alt=" Wkiom1mdk6ihkqamaaauhdjox-o745.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9F/80/wKioL1mdk56TXfZHAAATseIwAOw478.png "style=" float : none; "title=" screenshot from 2017-08-23 22-39-10.png "alt=" Wkiol1mdk56txfzhaaatseiwaow478.png "/>



15. Querying host names with IP 1 to 30 within the LAN

Make an auto answer file

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/00/CF/wKiom1mdjeTABfcKAACp0a7bYP8335.png "title=" Screenshot from 2017-08-23 22-14-07.png "alt=" Wkiom1mdjetabfckaacp0a7byp8335.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9F/7F/wKioL1mdjAuSm2WeAADxRpgHcwc487.png "style=" float : none; "title=" screenshot from 2017-08-23 17-37-49.png "alt=" Wkiol1mdjausm2weaadxrpghcwc487.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9F/7F/wKioL1mdjAvwjIckAAAwXcCF7Ig066.png "style=" float : none; "title=" screenshot from 2017-08-23 17-39-04.png "alt=" Wkiol1mdjavwjickaaawxccf7ig066.png "/>






Shell scripting exercises for the Linux shell scripts

Related Article

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.