Grep is a greate tool for searching a string in files.
Syntax
$ grep -nr '[string]' [folder]
If you want to show surrounding lines the result, add flag -C [number]
to the command
$ grep -nr -C 3 'hello' src
Grep is a greate tool for searching a string in files.
Syntax
$ grep -nr '[string]' [folder]
If you want to show surrounding lines the result, add flag -C [number]
to the command
$ grep -nr -C 3 'hello' src
#TIL : The safest way to reset root password of MySQL Server
#TIL : The safest way to reset root password of MySQL Server
I learned on 2018-08-25 about database, mysql, security, sysadmin
#TIL : Curl override Name Resolution with specific IP address
#TIL : Curl override Name Resolution with specific IP address
I learned on 2018-08-18 about curl, dns, sysadmin
#TIL : View DNS history of a domain
#TIL : View DNS history of a domain
I learned on 2018-05-08 about dns, sysadmin
#TIL : Create tiny chat channel via netcat
#TIL : Create tiny chat channel via netcat
I learned on 2018-04-10 about messaging, sysadmin, trick
#TIL : Send a file through networking via netcat
#TIL : Send a file through networking via netcat
I learned on 2018-04-10 about networking, sysadmin, trick
Weighted Round Robin : Scheduling Algorithm
#TIL : Becareful on using port mapping of Docker in Development
#TIL : Becareful on using port mapping of Docker in Development
I learned on 2022-03-17 about docker, security
#TIL : Using extra hosts to add custom ip of hostnames to Docker container
#TIL : Using extra hosts to add custom ip of hostnames to Docker container
I learned on 2022-03-16 about docker, networking
#TIL : Laravel run scheduled command within parent environment
#TIL : Laravel run scheduled command within parent environment
I learned on 2022-03-15 about cronjob, laravel, php