How to enter a directory with Chinese garbled characters in linux

bash命令:cd `ls awk 'NR==xxx'`

awk command: Get the directory name of line xxx, add NR= to indicate the line number read from the first line

NR The number of records that have been read is the line number, starting from 1

Use | to pass the result of ls to the subsequent awk command, and connect to the previous cd to enter

The leading number indicates that the result of the command execution inside the symbol is brought back to continue processing

Guess you like

Origin blog.csdn.net/qq_33859479/article/details/110482782