일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- TORCH
- Linux
- Container
- file
- Package
- LLM
- CUDA
- Database
- KAKAO
- Flask
- Paper
- numpy
- docker
- PostgreSQL
- enV
- GitLab
- pandas
- Mac
- AI
- Laravel
- list
- evaluation
- pytorch
- git
- DB
- format
- Windows
- judge
- Python
- Converting
Archives
- Today
- Total
Daily Develope
[Linux] USB 연결 & 파일 복사 본문
1 외부장치 연결 및 확인
외부저장매체가 연결된 드라이브 포트 확인
fdisk -l
# 출력 예시 : /dev/sdbN/
2 마운트
(앞선 과정에서 확인한) 드라이브 포트와 특정 폴더를 연결
# 폴더 생성 및 쓰기권한 부여
mkdir /tmp/mounted
chmod 755 /tmp/mounted
# 드라이브 포트와 생성한 폴더 연결
mount /dev/sdbN /tmp/mounted
3 복사
# 외부저장매체의 "target_file" 파일을 호스트의 /home dir 경로에 "copied_file" 이란 이름으로 복사
cp /tmp/mounted/target_file /home/copied_file
4 마운트 해제
사용이 끝난 외부저장장치를 연결된 드라이브 포트에서 제거
umount /dev/sdbN
'OS > Linux' 카테고리의 다른 글
[Linux] 패키지 저장소 정리 (0) | 2023.09.05 |
---|---|
[Linux] tar 압축 / 압축 해제 (0) | 2023.03.15 |
[Vim] 명령어 정리 (0) | 2022.05.12 |
[Linux] Python 소스코드를 통한 업데이트 (0) | 2022.04.13 |
[Linux] Environment 환경변수 설정 (0) | 2022.03.30 |
Comments