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?

Linuxコマンドの一覧

0
Posted at

Linuxコマンドでよく使うものを忘備録としてまとめました。
こちらは随時、更新していきます。

Port競合

競合ポートを絞り込み

sudo lsof -i -P | grep ":80"

プロセスIDを削除

sudo kill <プロセスID>

検索

単語を含む行を検索

grep "word" filename

大文字小文字を区別せずに検索

grep -i "pattern" filename

正規表現を使用した検索

grep "pattern.*" filename

特定のディレクトリ内のファイルを再帰的に検索

grep -r "pattern" directory_name

大文字小文字を区別せずに特定のディレクトリ内のファイルを再帰的に検索

grep -i -r "pattern" directory_name

コマンド検索

コマンド履歴の絞り込み

history | grep ”コマンド名”

ファイルコピペ

コピー&ペースト

cp src/.env.sample src/.env
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?