* ls [#j9220aee]

** 不可視ファイルを表示 [#s75d5777]
 ls -a      # Bash
 dir -force # PowerShell

** 表示項目の指定 [#q0eabab4]
 ls -1              # Bash
 dir -name          # PowerShell
 dir | select name  # PowerShell 別の方法

** 絞込み検索 [#na106731]
*** ファイル名をワイルドカードで指定 [#abd22aa3]
 ls *.txt                      # Bash
 dir *.txt                     # PowerShell
 dir * -include *.txt          # PowerShell 別の方法
 dir * -include *.jpg, *.gif   # PowerShell includeオプションはリストを指定出来る

*** 除外ファイル名を指定 [#w1744f97]
 ls *.txt | grep -v tmp                      # Bash
 dir * -Include *.txt -Exclude *tmp*         # PowerShell
 dir * -Include *.txt -Exclude *tmp*, *old*  # PowerShell excludeオプションはリストを指定できる

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS