Linuxコマンド(基本)
覚えてたら意外と便利と言われたのでまとめます。
cd (change directory)
ディレクトリの移動に使う
cd projects → 現在いるディレクトリからprojectsディレクトリに移動
cd.. → 今いるところから一つ上のディレクトリに移動
cd ~/projects → ホームディレクトリからprojectsに移動
cd / → ルートディレクトリに移動
ls (list)
pwd (print working directory)
今いるディレクトリをパスで表示
mkdir (make directory)
ディレクトリ作成
touch
ファイル作成
cat
cat index.html.erb → index.html.erbの内容を表示
cat -n index.html.erb → index.html.erbの内容を行数をつけて表示
とりあえずこの分は覚えたい。