사용자 도구

사이트 도구


windows:powershell

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
windows:powershell [2018/06/14 14:08]
kwon37xi [기본명령]
windows:powershell [2019/03/21 13:26]
kwon37xi
줄 58: 줄 58:
 $Env:path = $env:path + ";c:\temp" $Env:path = $env:path + ";c:\temp"
 Set-Item -Path Env:Path -Value ($Env:Path + ";C:\Temp") Set-Item -Path Env:Path -Value ($Env:Path + ";C:\Temp")
 +
 +# 환경변수 목록
 +Get-ChildItem Env:
 </code> </code>
  
줄 85: 줄 88:
   * ''$profile'' 파일에 PowerShell에 자체 ''curl'' alias를 지워야 실제 ''curl'' 명령이 실행된다.<code>   * ''$profile'' 파일에 PowerShell에 자체 ''curl'' alias를 지워야 실제 ''curl'' 명령이 실행된다.<code>
 remove-item alias:curl remove-item alias:curl
 +</code>
 +
 +===== wget =====
 +  * ''wget'' 명령은 ''Invoke-WebRequest''의 alias 이다. [[https://superuser.com/questions/362152/native-alternative-to-wget-in-windows-powershell|Native alternative to wget in Windows PowerShell?]]
 +
 +<code sh>
 +wget http://blog.stackexchange.com/ -OutFile out.html
 +</code>
 +
 +===== tail =====
 +<code sh>
 +Get-Content 파일경로 -Wait -Tail
 +
 +Get-Content 파일경로 -Wait -Tail 1000 # 마지막 1000 만 보여주기
 </code> </code>
  
windows/powershell.txt · 마지막으로 수정됨: 2024/03/05 13:00 저자 kwon37xi