beeimp
BeeImp
beeimp
전체 방문자
오늘
어제
  • 분류 전체보기 (110)
    • Program_Language (17)
      • Python (13)
      • Go (0)
      • JavaScript (4)
      • TypeScript (0)
      • Rust (0)
      • Solidity (0)
    • OS (8)
      • UNIX&LINUX (7)
      • Windows (0)
      • MacOS (1)
    • Front-End (19)
      • Svelte (19)
      • React (0)
    • Blockchain (6)
      • Bitcoin (0)
      • Ethereum (1)
      • Klaytn (0)
      • Project (5)
    • Data Structure&Algorithm (11)
      • Greedy (7)
      • Dynamic Programming (1)
      • Sort (0)
      • DFS & BFS (2)
      • Recursive (1)
    • Security (0)
      • SDP (0)
      • Authentication (0)
    • Network (3)
      • OpenWrt (0)
      • SDN&NFV (1)
    • Git (5)
    • IT_News (0)
    • 베타 학습단 (12)
      • SQL (12)
    • Project (1)
    • Issues (1)
    • Reviews (3)
    • I Learned (23)
      • TIL (23)
      • WIL (0)
    • Other (1)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • ubuntu
  • typescript
  • 기초
  • mysql
  • react
  • Ethereum
  • Git
  • 블록체인
  • blockchain
  • solidity
  • PYTHON
  • javascript
  • jenkins
  • sql
  • svelte
  • greedy
  • github
  • 탐욕법
  • Docker
  • Nest.js

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
beeimp

BeeImp

Ubuntu 20.04 파일 옮기기(Google Drive, wget)
OS/UNIX&LINUX

Ubuntu 20.04 파일 옮기기(Google Drive, wget)

2022. 3. 1. 16:31
wget --no-check-certificate https://docs.google.com/uc?export=download&id=11yqjpZQnaSs2BL_Z-c4GVlUOMkQ9qw24​
wget

Ubuntu 20.04 파일 옮기기 - Google Drive, wget

사전 단계

  1. 구글 계정 생성 및 로그인
  2. 구글 드라이브에 파일 업로드
  3. 업로드한 파일의 공유 링크 생성 및 모든 사용자에게 공개

    1. 구글 드라이브의 파일 링크 식별자 복사
      • ex) https://drive.google.com/file/d/11yqjpZQnaSs2BL_Z-c4GVlUOMkQ9qw24/view?usp=sharing
    2. 구글 드라이브 다운로드 링크의 ID 위치에 변경
      • https://docs.google.com/uc?export=download&id=
      • ex) https://docs.google.com/uc?export=download&id=11yqjpZQnaSs2BL_Z-c4GVlUOMkQ9qw24
    3. Ubuntu에서 wget과 구글 드라이브의 파일 링크로 다운로드
# wget --no-check-certificate https://docs.google.com/uc?export=download&id=<File ID> -O <File Name>

$ wget --no-check-certificate https://docs.google.com/uc?export=download&id=11yqjpZQnaSs2BL_Z-c4GVlUOMkQ9qw24 -O File_Name
  • 파일의 용량이 크다면
$ curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=<File ID>" > /dev/null
$ curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=<FILEID>" -o <File Name>

'OS > UNIX&LINUX' 카테고리의 다른 글

[Linux] CLI 기본 명령어 또는 키워드  (0) 2022.03.21
Crontab 정리  (0) 2022.02.05
[Ubuntu] SSH 포트 변경 및 root 권한 접속 허용  (0) 2021.09.17
[Kubernetes] 쿠버네티스 완전 삭제 명령어  (0) 2021.08.18
tar 명령어  (0) 2021.08.13
    'OS/UNIX&LINUX' 카테고리의 다른 글
    • [Linux] CLI 기본 명령어 또는 키워드
    • Crontab 정리
    • [Ubuntu] SSH 포트 변경 및 root 권한 접속 허용
    • [Kubernetes] 쿠버네티스 완전 삭제 명령어

    티스토리툴바