문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
windows:powershell [2018/06/12 12:46] kwon37xi [기본명령] |
windows:powershell [2019/11/27 09:51] 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: | ||
</ | </ | ||
줄 76: | 줄 80: | ||
# 매칭이 안되는 부분 찾기 | # 매칭이 안되는 부분 찾기 | ||
Select-String -Path " | Select-String -Path " | ||
+ | </ | ||
+ | * rename - [[https:// | ||
+ | Rename-Item -Path old_name -NewName new_name [-Force] | ||
</ | </ | ||
===== curl ===== | ===== curl ===== | ||
줄 81: | 줄 88: | ||
* '' | * '' | ||
remove-item alias:curl | remove-item alias:curl | ||
+ | </ | ||
+ | |||
+ | ===== wget ===== | ||
+ | * '' | ||
+ | |||
+ | <code sh> | ||
+ | wget http:// | ||
+ | </ | ||
+ | |||
+ | ===== tail ===== | ||
+ | 마지막 1000 줄 보여주면서 계속 출력하기 | ||
+ | |||
+ | <code sh> | ||
+ | Get-Content 파일경로 -Wait -Tail 1000 | ||
</ | </ | ||
줄 88: | 줄 109: | ||
set-alias -name vi -value vim.exe | set-alias -name vi -value vim.exe | ||
</ | </ | ||
+ | |||
+ | ===== Timezone ===== | ||
+ | * [[https:// | ||
+ | |||
+ | < | ||
+ | Set-TimeZone -Id "Korea Standard Time" | ||
+ | </ | ||
+ | |||
===== 참조 ===== | ===== 참조 ===== | ||
* [[https:// | * [[https:// | ||