windows:powershell:commands:get-alias

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
windows:powershell:commands:get-alias [2020/05/26 17:41] – 作成 ともやんwindows:powershell:commands:get-alias [2020/09/11 19:16] (現在) ともやん
行 1: 行 1:
-<html> 
-  <style> 
-    #result pre { 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-    #result_long pre { 
-      height: 300px; 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-  </style> 
-</html> 
 ====== Get-Alias (alias: gal) ====== ====== Get-Alias (alias: gal) ======
 現在のセッションのエイリアスを取得する。\\ 現在のセッションのエイリアスを取得する。\\
 +<WRAP prewrap 100%>
 <code powershell> <code powershell>
-PS > Get-Alias+Get-Alias
 </code> </code>
 +</WRAP>
 <WRAP prewrap 100% #result_long> <WRAP prewrap 100% #result_long>
 <code powershell> <code powershell>
行 166: 行 153:
 </code> </code>
 </WRAP> </WRAP>
 +
 +コマンドの別名を調べる場合は **-Definition** オプションを指定する。\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Get-Alias -Definition Get-ChildItem
 +</code>
 +or
 +<code>
 +$ gal -d Get-ChildItem
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +
 +CommandType     Name                                               Version    Source
 +-----------     ----                                               -------    ------
 +Alias           dir -> Get-ChildItem
 +Alias           gci -> Get-ChildItem
 +Alias           ls -> Get-ChildItem
 +</code>
 +</WRAP>
 +
 +===== 参考文献 =====
 +[[https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-alias|Get-Alias - Microsoft | Docs]]\\
 +[[https://qiita.com/mu_sette/items/3954759daee8ae9ad26f|今すぐalias登録すべきPowerShellワンライナー - Qiita]]\\
  
  • windows/powershell/commands/get-alias.1590482515.txt.gz
  • 最終更新: 2020/05/26 17:41
  • by ともやん