반응형
- Alias
# 기본
Get-Alias
# Alias 약칭 찾기
Get-Alias copy
# Alias 약칭 찾기 (와일드카드)
Get-Alias wh*
Get-Alias *p
Get-Alias a*p
# Alias 본명칭 찾기
Get-Alias -Definition copy-item
Get-Alias -Definition *item
- Alias 만들기
# ls 명령어를
Set-Alias lsa ls
- Alias 삭제
Remove-Alias lsa
- 주의점
- 세션이 끝난 경우 만들었던 Alias는 자동적으로 삭제된다.
반응형
'Windows 10 > PowerShell' 카테고리의 다른 글
PowerShell : Get-Content, Set-Content, Out-File (파일 입출력) (0) | 2019.07.09 |
---|---|
PowerShell : 기본 명령어 (0) | 2019.06.16 |
PowerShell : 특수문자 (0) | 2019.06.15 |
PowerShell : Date (0) | 2019.06.15 |
PowerShell : IEX (문자열을 명령어로 실행하기) (0) | 2019.06.15 |