如果put成功后返回0下面判断这个返回值就可以了put hello.txtif [ $? == 0 ]; thenecho "put successfully"elseecho "put failure"一定要在put hello.txt的下面加这个判断