반응형
Axel란?
Axel은 다중 연결을 통해 FTP 또는 HTTP 서버에서 파일을 다운로드하는 방법으로 wget보다 빠르게 다운로드할 수 있다. 대부분의 다른 프로그램들과 달리 Axle은 모든 데이터를 대상 파일로 직접 다운로드한다. 프로그램이 다운로드 한 부분을 모두 연결할 필요가 없기 때문에 마지막에 시간을 절약할 수 있다. HTTP, HTTPS, FTP 및 FTPS 프로토콜을 지원한다.
Axel 설치
sudo apt-get install axel
Axel 사용법
axel [옵션] url1 [url2] ..
다운로드하려는 파일의 URL인 인수 하나가 필요하다.
Axel 옵션
# Axel 옵션
--max-speed=x -s x Specify maximum speed (bytes per second)
--num-connections=x -n x Specify maximum number of connections
--max-redirect=x Specify maximum number of redirections
--output=f -o f Specify local output file
--search[=n] -S[n] Search for mirrors and download from n servers
--ipv4 -4 Use the IPv4 protocol
--ipv6 -6 Use the IPv6 protocol
--header=x -H x Add HTTP header string
--user-agent=x -U x Set user agent
--no-proxy -N Just don't use any proxy server
--insecure -k Don't verify the SSL certificate
--no-clobber -c Skip download if file already exists
--quiet -q Leave stdout alone
--verbose -v More status information
--alternate -a Alternate progress indicator
--percentage -p Print simple percentages instead of progress bar (0-100)
--help -h This information
--timeout=x -T x Set I/O and connection timeout
--version -V Version information
용량이 큰 파일을 백그라운드 다운로드 하고 싶을 경우
용량이 큰 경우 nohup 명령어를 통해 백그라운드 실행이 가능하다.
nohup axel [옵션] url1 ..
실시간 다운로드하고 있는 로그가 확인 가능하다
tail -f nohup.out
wget vs axel
wget과 axel로 테스트한 결과 axel의 속도가 약 5배가량 빠른 것을 확인할 수 있었다. 용량이 적은 파일을 다운로드할 때는 wget을 사용해도 상관없지만 파일이 대용량이라면 axel 사용하는 것이 보다 효율적으로 다운로드할 수 있을 것이라고 생각한다.
반응형
'Develop > Linux' 카테고리의 다른 글
[Linux] ping 명령어로 네트워크 상태 확인하기 (0) | 2023.03.02 |
---|---|
[Linux] kill 명령어로 실행중인 프로세스 종료하기 (2) | 2023.02.06 |
[Linux] 리눅스에서 우분투(Ubuntu) 버전 확인하는 방법 (0) | 2023.01.31 |
[Linux] df 와 du 명령어의 차이점 (0) | 2023.01.30 |
[Linux] Ubuntu20.04에 Java 설치 - Open JDK 8 (JDK 1.8.0) (0) | 2023.01.25 |