!wget (url) 하면 해당 url의 파일을 다운로드 받는다

.tar.gz 형태로 압축이 되어있는데, gz 형태의 압축은 !gunzip으로 압축해제가능
!gunzip (파일명) 하면 해당 파일의 gz압축을 푼다
원래 notMNIST_large.tar.gz가 notMNIST_larget.tar로 바뀜

https://unix.stackexchange.com/questions/48690/whats-the-difference-between-gunzip-and-unzip
What's the difference between gunzip and unzip?
What is the difference between gunzip and unzip? Tried to search but couldn't find anything relevant with this.
unix.stackexchange.com
참고로 !unzip은 *zip 파일을 압축해제할 때 쓴다
그리고 마지막으로 notMNIST_large.tar로 tar도 압축파일이다.
!tar -xf (파일명) 하면 tar 압축을 푼다

728x90
'프로그래밍 > Python' 카테고리의 다른 글
matplotlib.pyplot의 gray image 출력이 이상하다면 (0) | 2024.04.22 |
---|---|
딥러닝 중 UnidentifiedImageError: cannot identify image file 의 에러가 나올때 (0) | 2024.04.22 |
ABC349 D번 복기 - log를 구하는 가장 정확한 방법 - math.log를 기피해야하는 이유 (0) | 2024.04.14 |
functools.partial을 이용하여 기존 함수를 재활용한 새로운 함수 만들기 (0) | 2024.04.13 |
머신러닝에서 hyperparameter search를 도와주는 optuna 라이브러리 소개 (0) | 2024.04.02 |