Ubuntu 기타 명령어 모음

Amoeba·2021년 7월 14일
0

Environments

목록 보기
5/5

사용했던 Ubuntu 명령어 모음 (계속 추가 예정)

  • 전체 디스크 용량 확인
$ df -h
  • User별 디스크 사용량 확인
$ du -sh ~[username]
  • 현재 디렉토리 파일 사이즈 체크
$ ls -lh
  • 현재 디렉토리 파일 중 사이즈가 0인 파일 제거
$ find ./ -size  0 -print -delete
  • 터미널 명령어 history 출력
$ history
  • scp 디렉토리 복사(remote to local)
$ scp -r -P [remote_port_number] [username]@[remote_ip]:/home/user/asfasdfa /home/user
  • scp 디렉토리 복사(local to remote)
$ scp -r -P [remote_port_number] /home/user [username]@[remote_ip]:/home/user/asfasdfa
profile
AI공부중..

0개의 댓글