LoginSignup
0
1

More than 3 years have passed since last update.

Command Line入門

Posted at

プロゲートのCommand Lineで学んだコマンドを備忘録代わりに書きます。

ファイル作成

-touch ファイル名

ファイルの中身の確認

-cat ファイル名

ディレクトリ作成

-mkdir ディレクトリ名
make directory

ディレクトリの移動

-cd 移動先
-cd ..
一つ上のディレクトリに移動
-cd
ルートディレクトリに移動

現在のディレクトリの表示

-pwd
print working directory

ディレクトリの中身表示

-ls
listの略

コピー

-cp コピー元ファイル 新しいファイル
-cp -r コピー元ディレクトリ 新しいディレクリ

移動(ファイル名変更)

-mv 移動させるファイル名 移動先のディレクトリ
-mv 移動させるディレクトリ名 移動先のディレクトリ
-mv 元ファイル名 変更後のファイル名
-mv 元ディレクトリー名 変更後のディレクトリ名

除去

-rm ファイル名
-rm -r ディレクトリ名

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1