'PowerShell'에 해당되는 글 2건

  1. 2023.01.02 PowerShell 파일 사용 명령
  2. 2023.01.02 PowerShell 디렉토리 사용명령

Get-Content

파일 내용 출력

$ Get-Content [파일경로] 

 

Get-Content -wait

파일 내용을 출력하고 대기 리눅스의 tail 처럼 사용이 가능하다.

$ Get-Content [파일경로] -wait

 

copy

파일을 복사

$ copy 파일경로1 파일경로2

 

rd

파일 삭제 (디렉토리 삭제도 가능)

$ rd 파일경로1 파일경로2

 

mv

파일 이동

$ mv 파일경로1 파일경로2

 

mklink

심볼릭 링크, 하드링크 생성

$ mklink [옵션] 원본파일명 생성될링크명

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'PowerShell' 카테고리의 다른 글

PowerShell 디렉토리 사용명령  (0) 2023.01.02
Posted by 창업닉군
,

Get-Location

현재 위치 확인, 현재 디렉토리 절대 경로명 출력.

$ Get-Location

 

cd

디렉토리 이동

$ cd [원하는 디렉토리명]

 

dir

현재 디렉토리 리스트 출력.

$ dir

 

mkdir

디렉토리 생성

$mkdir [디렉토리명]

 

rd

디렉토리 삭제

$rd [디렉토리명]

 

 

 

 

'PowerShell' 카테고리의 다른 글

PowerShell 파일 사용 명령  (0) 2023.01.02
Posted by 창업닉군
,