문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
windows:powershell [2018/06/05 21:37] kwon37xi |
windows:powershell [2019/03/21 13:26] kwon37xi |
||
---|---|---|---|
줄 6: | 줄 6: | ||
===== 기본 개인 profile 파일 ===== | ===== 기본 개인 profile 파일 ===== | ||
+ | * [[https:// | ||
* '' | * '' | ||
New-Item $profile -force -itemtype file | New-Item $profile -force -itemtype file | ||
줄 24: | 줄 25: | ||
Import-Module Get-ChildItemColor | Import-Module Get-ChildItemColor | ||
- | Set-Alias | + | Set-Alias |
- | Set-Alias | + | Set-Alias |
</ | </ | ||
줄 57: | 줄 58: | ||
$Env:path = $env:path + "; | $Env:path = $env:path + "; | ||
Set-Item -Path Env:Path -Value ($Env:Path + "; | Set-Item -Path Env:Path -Value ($Env:Path + "; | ||
+ | |||
+ | # 환경변수 목록 | ||
+ | Get-ChildItem Env: | ||
</ | </ | ||
줄 68: | 줄 72: | ||
New-Item -ItemType SymbolicLink -Path C: | New-Item -ItemType SymbolicLink -Path C: | ||
</ | </ | ||
+ | * grep 대체 [[https:// | ||
+ | # 문자열 filter | ||
+ | " | ||
+ | # *.xml 파일들에서 문자열 탐색 | ||
+ | Select-String -Path " | ||
+ | # 매칭이 안되는 부분 찾기 | ||
+ | Select-String -Path " | ||
+ | </ | ||
+ | * rename - [[https:// | ||
+ | Rename-Item -Path old_name -NewName new_name [-Force] | ||
+ | </ | ||
===== curl ===== | ===== curl ===== | ||
* [[linux: | * [[linux: | ||
* '' | * '' | ||
remove-item alias:curl | remove-item alias:curl | ||
+ | </ | ||
+ | |||
+ | ===== wget ===== | ||
+ | * '' | ||
+ | |||
+ | <code sh> | ||
+ | wget http:// | ||
+ | </ | ||
+ | |||
+ | ===== tail ===== | ||
+ | <code sh> | ||
+ | Get-Content 파일경로 -Wait -Tail | ||
+ | |||
+ | Get-Content 파일경로 -Wait -Tail 1000 # 마지막 1000 만 보여주기 | ||
</ | </ | ||