PowerShell 便利コマンド1

PowerShellの便利なコマンドを紹介します。

ディレクトリ移動

cd 移動先ディレクトリ

相対パス、フルパスで指定します。

3

 

 

 

一つ上のディレクトリへ移動
cd ../

4

 

 

 

2つ上のディレクトリへ移動

cd ../../

ディレクトリ作成

mkdir ディレクトリ名

ディレクトリ削除

rmdir ディレクトリ名

ディレクトリ作成して、移動

pushd (mkdir ディレクトリ名)

指定ディレクトリ配下のファイル、フォルダを一覧表示

カレントディレクトリの場合はコマンドのみで実行できます。
dir
ls

ディレクトリを指定することも可能です。
dir <パス>

1

2


Bookmark this on Yahoo Bookmark
Bookmark this on Google Bookmarks
Share on LinkedIn
LINEで送る
Pocket