Shell self-deletion script

Source: Internet
Author: User
Shell self-deletion script-Linux general technology-Linux technology and application information. The following is a detailed description. I have not been familiar with shell for a long time. I am reading the book "shell programming from getting started to proficient" (People's post and telecommunications Publishing House). I didn't understand what he meant?
The original article is as follows:
A different command interpreter is specified for each script header to help you break #! We can write a script like this:
#! /Bin/rm
# Self-deletion script
# When you run this script, basically nothing will happen... Of course this file disappears
Whatever = 65
Echo "This line will never print! "
Exit $ whatever # It doesn't matter. The script won't exit here.

I did not understand the above Code and comments at all. I executed the above Code on my machine and the file did not disappear. Which of the following heroes can help me explain the reason? Thank you ~~~

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.