Linux에서 컬의 명령 옵션 혼동

Linux에서 컬의 명령 옵션 혼동

기호 의 기능이 무엇인지 궁금하십니까 @? 다음은 예제 명령입니다.

curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"

여기에 더 많은 관련 배경이 있습니다.

https://stackoverflow.com/questions/18215389/how-do-i-measure-request-and-response-times-at-once-using-curl

답변1

이는 단지 명명된 파일에서 형식을 읽는다는 의미입니다.

매뉴얼에서 :

  -w, --write-out <format>
    Defines  what  to  display on stdout after a completed
and successful operation. The format is a string that may contain
plain text mixed with any number of variables. The string can be 
specified as "string", to get read from a particular file you
specify it "@filename" and to tell curl to read the format from
          stdin you write "@-".

@를 이와 같이 사용하는 것은 매우 일반적이며, 컬은 여러 곳에서 이를 사용하며 다른 명령도 사용합니다.

관련 정보