Before enabling authentication in MongoDB, we'll have to create a user and assign it a built-in role. We'll use the built-in "root" role that provides admin access to all databases.
I've done this in Ubuntu using MongoDB 3.2.
Tuesday, August 23, 2016
Sunday, August 7, 2016
Limiting grep output
Here's a quick way to limit output of the grep command.
Most of the time, we issue the following to find needle in the haystack:
This prints out the matching pattern. If the output is way too long and we only need a section of it, we can use the extended grep (a.k.a. egrep) option.
Most of the time, we issue the following to find needle in the haystack:
grep needle file.txt
This prints out the matching pattern. If the output is way too long and we only need a section of it, we can use the extended grep (a.k.a. egrep) option.
Subscribe to:
Posts (Atom)