LoginSignup
1
1

More than 3 years have passed since last update.

補足:Linuxの概念とコマンド最低限

Last updated at Posted at 2020-04-02

トレーニングを進める上での最低限のコマンドを紹介します。
なお、自習する場合はこちらを見ることをおすすめします。

コマンド

cd

  • ディレクトリを移動します。
  • 単に cd と打つとhomeディレクトリに移動します。
  • windowsと同じ。

ls

  • ディレクトリの一覧表示
  • ls -aとすることで隠しファイルも表示します。

Windowsだと dir 。

cat

  • ファイルの中身を表示します。

Windowsだと type test.txt などとする。

pwd

  • 現在いるパスを表示します。

Windowsだと dir で互換とする。

touch

  • ファイルを生成します。

Windowsだと copy nul test.txt もしくは type nul > test.txt などとする。

rm

  • ファイルやディレクトリを削除します。
  • ディレクトリを削除する場合は rm -rf dirname などとする。

Windowsだと del 。

ファイルシステム

  • 最上位は / で表します(ルートディレクトリ)。windowsでいうC:¥
  • ファイルの区切り文字は / です。(インターネットのURLの区切り文字を思い出しましょう)。Windowsは¥()。
  • ./ はカレンドディレクトリ。
  • ../ は1つ上位ディレクトリを表す。

参考

Windowsコマンド対応

1
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
1
1