The solution to the error of root:is a directory in linux
Error message:. / 123.sh: line 20:/root:is a directory
Error: / root:is a directory, then look for root from the script file, and find that there is no root in the script
Due to an extra ~, an error is reported.
The red "~" was brought when it was pasted.
Delete ~, solve