Skip to content

Instantly share code, notes, and snippets.

@dedalqq
Created December 18, 2015 23:07
Embed
What would you like to do?
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
vagrant:x:1000:1000::/home/vagrant:/bin/sh
aerospike:x:999:1001::/opt/aerospike:/bin/sh
nginx:x:101:103:nginx user,,,:/nonexistent:/bin/false
root@b89373304c85:~# grep -qw ^vagrant /etc/passwd
root@b89373304c85:~# grep -q ^vagrant /etc/passwd
root@b89373304c85:~# grep -w ^vagrant /etc/passwd
vagrant:x:1000:1000::/home/vagrant:/bin/sh
root@b89373304c85:~# grep ^vagrant /etc/passwd
vagrant:x:1000:1000::/home/vagrant:/bin/sh
root@b89373304c85:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment