LoginSignup
1
0

More than 5 years have passed since last update.

linux コマンド 学習メモ

Last updated at Posted at 2015-11-01

Qiitaをはじめとして様々な参考ページを見てもコマンドの意味で引っかかるので、備忘録として。

% a | b  aの出力結果をbの入力として渡す

例:curlで取得したsetuptoolsのファイルをpython2.7に渡す

example.sh
% curl http://peak.telecommunity.com/dist/ez_setup.py | python2.7

Ctrl + z ジョブの一時停止

なお一時停止したコマンドは、「fg」コマンドによって、再実行させる事が出来る。

  • fg %[ジョブ番号] ・・・コマンドの再実行
  • bg %[ジョブ番号] ・・・コマンドをバックグラウンドジョブとして実行

また、バックグラウンドジョブとして実行されているコマンドを、強制終了するには「kill」コマンドを実行。

kill %[ジョブ番号]

Ctrl + c ジョブの強制終了

上記のジョブ一時停止からkillまでを一気に行うにはこれ。

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