Linux common commands and problems

Collect the commands I have used
1. File string replacement, after the command is executed, the -- in the file is replaced by ===
sed -i "s/--/====/" ttt.log


2. The sh startup jar package does not take effect. Error: Enter the A directory, start the X.jar file, delete it, upload it again, and start it directly without re-entering the A directory, but the new package does not take effect.
Re-enter the A directory and start X.jar

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326755394&siteId=291194637