パワーシェル系コマンド
用途 | コマンド |
---|---|
1階層上に移動 | cd .. |
2階層上に移動 | cd ../.. |
コマンドの履歴 | history |
コンソールクリア | clear |
grep '<time' -rl /var/www/*
grep "example" --include="*func.php" ~/
fgrep "<script>" --include="*func.php" -rl /var/www/*
grep '\<time\>.*\</time\>' -rl /var/www/*
grep '<time.*</time>' -rl /var/www/*
grep 'wp_enqueue_script(' -rl ./*
正規表現検索
grep '\->data\[' -rl /var/www/aaaaaa/*
grep -Er '<div id="gNavi_button">' /var/www/aaaaaa/application
ファイル名検索
find -name "functions_inc.php"
find /var/www/* -name "functions_inc.php"
ファイル名部分一致検索
find /var/www/* -iname "*ini"