0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Linux】基本コマンド一覧

Posted at

初めに

コンソールでよく使うコマンドについて自分用の忘備録として記事にしておきます。

コマンド

cat

ファイルの内容を単純に出力する。

cat file1 file2 ...

ls

ディレクトリの内容を一覧表示する。

ls -l

cp

file1 を file2 へコピーする。

dir という名前のディレクトリへファイルをコピーする。

cp file2 file2(dir)

mv

ファイルを別のディレクトリに移動させる。

ファイルの名前の変更する。

mv file1 file2(dir)

touch

ファイルを作成する。

既に存在する場合は、そのファイルの更新タイムスタンプを更新する。

touch file

rm

ファイルを削除する。

rm file

echo

引数をそのまま標準出力に表示する。

$ echo Hello again.
Hello again.

cd

シェルのカレント・ワーキング・ディレクトリを変更する。
dir を省略するとホームディレクトリに戻ります。

cd dir

mkdir

新たなディレクトリ dir を作成する。

mkdir dir

rmdir

ディレクトリ dir を削除する。

rmdir dir
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?