Grep is a text search utility. If one has a person's name for example in a
text file it can spot it, the result appears just above the command line.
So for example:
grep williams file
This would return any line with "williams in the file.
It is very powerful and can do much more then simple text searches.
For any command consult the man page.
man grep
will bring up a short manual for any command. Hitting the q key will exit
Most commands also have an "-h" optionfor a short help.
On Thu, 29 Jun 2017, 'Janina Sajka' via MacVisionaries wrote:
My favorite obscure command is grep. I believe it means "get
repetition." Checking with Wikipedia I find it's a bit more elaborate:
"globally search a regular expression and print."
https://en.wikipedia.org/wiki/Grep
Anyway you slice it, it's a funny way to say "Find!"
I wonder whether Google Maps, or Amazon Echo would respond to "grep
store?" I'll have to test out of morbid curiosity.
Janina
Scott Granados writes:
No I get super user, I?ve heard root referred to as the super user for years I
just didn?t think su was super user because it
associates to all users not just root.
For example, typing su - Janina would switch to and use the environmental
variables of the Janina account. Simply doing su - with no user selects root
probably telling you what you already know. (The trailing - using the
environmental variables of the target user instead of the originating user)
Here?s an article from wikipedia that seems to indicate we?re all right. SU
can mean switch user, substitute user or super user. Interesting. Read more
here.
https://en.wikipedia.org/wiki/Su_(Unix)
Makes me wonder what other command acronyms I have taken for granted. Ping is
my favorite so far, packet internet groper if memory serves.:)
On Jun 29, 2017, at 11:29 AM, 'Janina Sajka' via MacVisionaries
<macvisionaries@googlegroups.com> wrote:
Hey, Scott:
The feeling is mutual.
There's a bit more vocabulary associated with su. It's super user
because this is the user with extraordinary powers that will trump all
other permissions on the system.
Simple example: If you have multiple users and one forgets their
password, the super user can reset that user's password.
Janina
Scott Granados writes:
And here I always thought it was switch user as that?s what it really does not
necessarily switching to root although that?s the most common use. Learn
something new everytime you post, how about that!
On Jun 29, 2017, at 11:17 AM, 'Janina Sajka' via MacVisionaries
<macvisionaries@googlegroups.com> wrote:
I believe su was (and is) "super user," not "substitute user."
Jonathan Cohn writes:
Ah, be very careful of any command in terminal that requires your password. These are
commands that are using the "sudo" command.
Sudo essentially says run this as root which is the most privileged user on a
UNIX system. While you can not break system files in Sierra due to extra
security added, any file in user space can be viewed or modified when you use
the sudo command.
Why sudo you might ask? Well originally there was su for substitute user. This
allows one to access the computer with another permissions for a while.
sudo is a bit more secure in that:
1. There is a configuration file in /etc/sudoers that says what commands can be
executed by whom whith what rights.
2. It prompts you four your password rather than the person you are trying to
execute as so there is no need to share a password to do this work.
Take care,
Jonathan Cohn
On Jun 27, 2017, at 4:51 PM, E.T. <ancient.ali...@icloud.com> wrote:
Last I ran Terminal, I simply pasted code in and pressed enter. In some cases
you may be asked for your log in password.
From E.T.'s Keyboard. . .
"God for you is where you sweep away all the
mysteries of the world, all the challenges to
our intelligence. You simply turn your mind off
and say God did it." --Carl Sagan
E-mail: ancient.ali...@icloud.com
On 6/27/2017 1:48 PM, Sharon Hooley wrote:
Hi,
I want to try copying and pasting the coding that was sent earlier. I found
Terminal in the ?others? folder. when I entered I found my last log-in date,
among other things, including shell . I don?t know where to type or paste. .
Then I inadvertently closed the window so that it said, ?Terminal has no
windows?. So how, exactly, do I use it to put in code?
Thanks,
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
--- You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.
--
Janina Sajka, +1.443.300.2200
sip:jan...@asterisk.rednote.net
Email: jan...@rednote.net
Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org
The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.
--
Janina Sajka, Phone: +1.443.300.2200
sip:jan...@asterisk.rednote.net
Email: jan...@rednote.net
Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org
The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.
--
Janina Sajka, Phone: +1.443.300.2200
sip:jan...@asterisk.rednote.net
Email: jan...@rednote.net
Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org
The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.
XB
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you
can reach Cara at caraqu...@caraquinn.com
The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
---
You received this message because you are subscribed to the Google Groups "MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.