리눅스 curl 파일명 지정하여 다운로드

1 개요[ | ]

리눅스 curl 파일명 지정하여 다운로드
curl -L -o
  • -o(소문자) 옵션으로 원하는 파일명 지정 가능
curl -L 유알엘 -o 파일명
curl -o 파일명 -L 유알엘
→ -L 옵션은 반드시 필요한 것은 아니지만, wget처럼 redirection을 계속 따라가도록 한 것이다.

2 실행예시[ | ]

user01@localhost:~$ curl -L http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm -o my.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14540  100 14540    0     0  62515      0 --:--:-- --:--:-- --:--:-- 62672
user01@localhost:~$ ll my.rpm
-rw-r--r-- 1 user01 user01 14540 Apr 10 07:24 my.rpm

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}