Hyunsuk's Blog

Hyunsuk's Blog

i started to invest stocks 2days ago.
i saw a lots of profit when i checked my stock accont to find some stock i wanna invest.
the profit is what i get when i work for two days, so i felt good! please keep going up!~
anyway the reason i did it is that i wanted to recover my money that lost from investing bitcoin.
so i have to get money back~from anything…. although it is dangerous.
the plan for the investing is that i will forget that i invsted after investing all of money i deposit to invest.
i wish they are become big moeny when i check

i couldn’t concentrate on my work because of the hangover
i think dringking will make me to in panic. so i should stop dringking
i will try.
i was thinking that i spend time learning english more than learing programming during going back home after work
it is needed to be balanced between them.
to do these is that i should spend time efficiantly
there’s a lot to do if i want to do lots of things

i have to write diary in english here because i had party with company co worker.
i went out alone from comanpy party bucause i am having sick on my liver.
it is first time to get pain to this
i think its time that i have to consiser my healty.
i thought i had considered my healty before, but i didnt do it.
if i have free time for tommow i think i have to check my body.
they give me some signal to ask me check my body.
i wanna live here in healthy

i will wirte english diary here from tommorow on
i hope i can archive that i made a plan for this year

1. ssh를 이용하여 파일 복사 및 전송하기

ssh에서 제공하는 scp 명령어를 통해 로컬서버↔원격서버 파일을 양방향 전송할 수 있다.

1.1 사용방법

  • 원격 서버 → 로컬 서버로 파일 전송
    1
    # scp [옵션] [계정명]@[원격지IP주소]:[원본 경로 및 파일] [전송받을 위치]
     예제1) IP 111.222.333.444 서버의 abc라는 계정으로 /home/abc/index.html 파일을
      로컬서버 /home/me/ 디렉토리에 전송 받기
    
    1
    # scp abc@111.222.333.444:/home/abc/index.html /home/me/
     예제2) (ssh의 기본 22번 포트가 아닐경우)IP 111.222.333.444 서버의 
     abc라는 계정으로 /home/abc/index.html 파일을 로컬서버 /home/me/ 디렉토리에 전송 받기
       
    1
    # scp -P 321 abc@111.222.333.444:/home/abc/index.html /home/me/ (ssh 포트가 321일경우)

  • 로컬 서버 → 원격 서버로 파일 전송
    1
    # scp [옵션] [원본 경로 및 파일] [계정명]@[원격지IP주소]:[전송할 경로]
     예제1) 로컬서버 /home/me/wow.html 파일을 IP 111.222.333.444 서버의 /home/abc/
      디렉토리에 전송 하기
    
    1
    # scp /home/me/wow.html abc@111.222.333.444:/home/abc/
     예제2) (ssh의 기본 22번 포트가 아닐경우)로컬서버 /home/me/wow.html 파일을
      IP 111.222.333.444 서버의 /home/abc/ 디렉토리에 전송 하기
    
    1
    # scp -P 321 /home/me/wow.html abc@111.222.333.444:/home/abc/ (ssh 포트가 321일경우)
  • [주의사항]
    옵션중에 –P와 –p가 있으니 대/소문자 확인을 하여야 한다.
    -P : 포트번호를 지정함
    -p : 원본파일 수정/사용시간 및 권한을 유지함
    -r : 하위 디렉토리 및 파일 모두 복사함



상황을 가장 잘 활용하는 사람이 가장 좋은 상황을 맞는다

John Robert Wooden
0%