:::: MENU ::::

UNIX / Linux command - string search

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

cdDirectory move.
ls -laInformation 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.
pwdDisplay of the current directory location.
catView the file.
vi、viewView of the file in the vi editor, input, editing, etc. to. view is browse only.


So, what do you think ?