The Document of Aska
必須コマンド
シェル
- pwd
- ls
- cd
- echo
- export
- screen
- watch
ネットワーク
- curl
- wget
- ping
- ifconfig
- netstat -tanp
- dig
- scp
- ssh
OS
- ps -ef
- free
- df -h
- du -h
- vmstat 1
- iostat
- date
- kill
- man
- reboot
- shutdown
ファイル操作
- cat
- tac
- head
- tail
- touch
- rm
- mv
- mkdir
- rm -r
- find
- find . -type f -exec chmod 0600 {} \; # ファイルのパーミッションを全部0600に
- find . -type d -exec chmod 0700 {} \; # ディレクトリのパーミッションを全部0700に
- find . -type f -mtime +3 -exec rm {} \; # 最終更新後4日以上経過したファイル削除
- chmod
- chmod 0644 file
- chmod 0755 file
- chwon
- chown user:group dir
- chown -R user:group dir
- tar
- tar czvf
- tar xzvf
- tar tvf
ファイル検索
- witch word # コマンドパス
- locate word # ファイル名
- grep word -r . # ファイル内容
変換
- grep
- cat error_log | grep ERROR
- cat error_log | grep -v info
- sort
- uniq
- sed
エディタ