Cowardly referring to create an empty archive in Linux tar command

Time:2020-5-19

Cowardly referring to create an empty archive in Linux tar command

1 problem description

A shell script was written and executed with the following error:

The literal meaning of the error message is that the system nervously refuses to perform the task of creating an empty compressed package. P. The prompt of S. Linux system is really interesting o (∩ ∩) o~

2 reasons

Is the shell script wrong? Open it quickly and have a look -——

As expected, I was careless. The syntax of the tar command in the source folder was wrong. As a result, the tar command could not find the source folder, so it naturally reported an error.

3 solution

In fact, VIM has already given a syntax prompt, and blue is the defined variable.

So far, the problem has been solved. O(∩_∩)O~

Thank you for reading, hope to help you, thank you for your support!

Recommended Today

IOS dyld loading process (preliminary discussion)

Compilation process of IOS app code source file: load h、. m、. CPP and other documents Pretreatment: replace macros, delete comments, expand header files, and generate I file compile: will I file is converted into assembly language to generate S file assembly: convert assembly file into machine code file to generate O documentation link: Yes O […]