0
1

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 5 years have passed since last update.

僕のLinuxコマンド

0
Last updated at Posted at 2020-04-24

自分用の備忘録。

Linuxコマンドを勉強しているのでついでにメモっとく。
なお、メモっとくコマンドは基礎の基礎のみ

練習に使用したツール

Cygwinを使用。
インストール方法とかはこちらを参考に。

通常ならフォルダをエクスプローラーでGUIするところ、Linuxの画面(あのコマンドプロンプトみたいな画面)でいじれるツールらしい


コマンド一覧

このページを参考にしました。

フォルダ操作系

カレントディレクトリの移動

cd
例:$ cd C:

カレントディレクトリの中身をリスト表示

ls
例:$ ls

ファイル・フォルダの移動

mv
例:$ mv targetFolder C:/destinatedpath

ファイル・フォルダをコピー

cp
例:$ cp targetFolder C:/destinatedPath

  • オプション
  • -rp:コピーの対象フォルダの配下のフォルダ・ファイルも全てコピー
画面を綺麗

clear
例:$ clear

フォルダを作成

mkdir
例:$ mkdir FolderName

ファイルを作成

touch
例:$ touch file.txt

空のフォルダを削除

remdir
例:$ rmdir targetFolder

ファイル・フォルダ削除

rr
例:$ rm target.txt

現在いる位置を表示する

pwd
例:$ pwd

ファイルを検索

find
例:$ find -name target.txt

ファイルの内容を表示

cat
例:$ cat target.txt

操作系

コマンド履歴を表示する。

history
例: $ history

システム管理系

空きメモリ・使用メモリを表示

例:free

0
1
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?