As a memorandum of understanding those frequently used when using a command in the configuration of the server
Global search a string from multiple files
find ./ -type f -print | xargs grep -n ‘aaa’
findで配下のファイル名を出力して、xargsでgrepに引数として渡し、 grepで文字列’aaa’に一致する行を出力する。
Basic
cd | Directory move. |
---|---|
ls -la | Information display of the file directory. By attaching the -a and -l option. (Dot) can all of the file display and detailed display that contains the file. |
pwd | Display of the current directory location. |
cat | View the file. |
vi、view | View of the file in the vi editor, input, editing, etc. to. view is browse only. |
So, what do you think ?