use linux shell command to refactor the move to test code

use linux shell command to refactor the move to test code