[Trick] Windows command line wrapping

Usually, when using the Windows command line, when you enter a command, press Enter to execute the command.

However, sometimes the command is too long or for other reasons, we want to wrap a line in the command, what should we do?

At this time, you can add a "^" sign at the end of a line and then press Enter, which means that the command should continue.

For example, I want to execute "cd ../.." to go to the upper two directories of the current directory, but I want to wrap a line in the command, then the command can be entered as follows:

You can see, even in the ". ." line breaks.

The "^" here acts as a "line continuation character", so that super-long commands can be displayed on one screen.

Guess you like

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