Hi, Andrew:

Glad to hear you're giving the CLI the old college try. Hope it becomes
a very comfortable environment for you!

I want to suggest it's important you focus on zsh as Apple now defaults
to zsh.

https://support.apple.com/en-us/HT208050.

Since you're a beginning command line user, you don't want to waste time
learning something you would need to unlearn soon. While bash isn't all
that different, it's different enough yours truly has yet to take the
plunge herself. But, that's my problem. I'm just saying don't make it
your problem.

To check which shell you're using type:

env |grep -i shell

Unpacking the above command for you:

env is shorthand for "environment. Type just 'env' plus return to learn
about your environment.

The vertical bar, which is entered by shift-backslash, the key
immediately above return,  is known in the cli world as the pipe symbol.
In our example above it indicates that the output of the 'env' command
is to be run through a second command, grep.

grep is an ancient Unixism better known to the unwashed as find.
Literally, it derives from "get repetition." If you hear someone saying,
"grep" in ordinary conversation, they might be showing off or something.

The dash i means ignore case as you look through the output of the env
command.

Lastly, the word we're looking for, 'shell' is entered in our command.

Thus, the voluminous output of env is reduced to the one item you're
interested in.

If the answer is something other than:

SHELL=/bin/zsh

Stop everything you're doing and switch to zsh by simply typing zsh and
pressing return.

You'll notice your ordinary user gives you the percentage symbol as your
shell prompt. That's yet another way to know you're in zsh.

To make the change permanent do:

chsh /bin/zsh

You guessed it, 'chsh' means "change shell."

PS: One kind of snobish impercation involving the pipe symbel and 
understandable by programmers and
other cli mayvens is to say: "Pipe it to dev null."

If you should enter:

ls -l /dev/null

You'll discover a writable/readable device (that's the crw' part)
called, "null." As you might guess, 'null' is nothing, nowhere. It's
were garbage goes when programming.

So, the impercation is a more polite way of saying: "go to h**l."

PPS: Your zsh skills are transferrable. You can use them on any Unix
like system, including Linux.

Best,

Janina


'Andrew Lamanche' via MacVisionaries writes:
> Jonathan,
> 
> You are so kind.  Thank you for your response.  I’m new to the command line, 
> but I’m very serious in learning.  So your kind attitude and response in 
> non-technical terms is very welcome.  As to the 2nd point, I was surprised 
> because I’m following Joe Kissel’s from TitBits Take Control of the Command 
> Line in Mac OS book and that’s what he recommends: use of the tab key.
> 
> If you were happy/had the time to point me towards any materials on command 
> line/linux, i’d be very grateful.  Or if you know of anyone who’d be happy to 
> give some tutorials on Linux, paid of course, I’d appreciate that too.
> 
> With best wishes
> 
> Andrew 
> > On 29 Mar 2020, at 20:14, Jonathan Cohn <jon.c.c...@gmail.com> wrote:
> > 
> > Well, for the first question just interact a few times with the window and 
> > you should be able to use the voiceover cursor to review and select things. 
> > VO-return should start selecting and vo-return a second time should finish 
> > the selection operation. Also, double  tapping with mouse will select a 
> > word. I thought that triple tapping would select a line but had no luck 
> > with that. Of course make sure your mouse is where your VO cursor is before 
> > using the VO shift space to do the tapping.
> > 
> > Your second question was related to file completion.
> > This might depend on the shell you are using accounts created in Mojave or 
> > earlier use bash  and Catalina created account default to zsh.  Also, it 
> > will depend on what the behavior is for partial completions. If you have 
> > the files 
> > dar1 dar2 dar3 and dar4 
> > Pressing d followed by escape will fill in "dar" and then I believe beep. 
> > If you press tap a second time then you should get a list of possible 
> > matches. Note this behavior is strictly related to the shell you are 
> > running and its options set in the  shell default / profile / login files.
> > Jonathan
> > 
> > 
> > 
> >> On Mar 29, 2020, at 10:21 AM, 'Andrew Lamanche' via MacVisionaries 
> >> <macvisionaries@googlegroups.com <mailto:macvisionaries@googlegroups.com>> 
> >> wrote:
> >> 
> >> Hi,
> >> 
> >> When working in Terminal and command line, is it possible to examine the 
> >> window content with Voiceover?  Say , ls -l command produces a list of 
> >> files in the directory I am in.  How can I examine each file and maybe 
> >> even copy their names to clipboard or details about them if I were to use 
> >> the -l flag, which would produce long information about each item.
> >> 
> >> Secondly, reading a book on Command Line, one of the shortcut techniques 
> >> the author teaches is to start typing the name of a directory to which one 
> >> wishes to change and then pressing tab, which would result in Terminal 
> >> completing the name or else giving a list of available names if there 
> >> should be more than one.  This doesn’t seem to work.  When I press the 
> >> tab, I hear the ominous bong bong.  So this technique doesn’t work.  Any 
> >> thoughts on this?
> >> 
> >> andrew
> >> 
> >> -- 
> >> 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:  mk...@ucla.edu <mailto:mk...@ucla.edu> and your owner is Cara Quinn - 
> >> you can reach Cara at caraqu...@caraquinn.com 
> >> <mailto:caraqu...@caraquinn.com>
> >> 
> >> The archives for this list can be searched at:
> >> http://www.mail-archive.com/macvisionaries@googlegroups.com/ 
> >> <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 view this discussion on the web visit 
> >> https://groups.google.com/d/msgid/macvisionaries/BB072597-FDA8-4971-B666-361890504466%40me.com.
> > 
> > 
> > -- 
> > 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: 
> > mk...@ucla.edu 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/ 
> > <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 
> > <mailto:macvisionaries+unsubscr...@googlegroups.com>.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/macvisionaries/A4BCF15C-9CD0-44CD-84BA-402532821C3A%40gmail.com
> >  
> > <https://groups.google.com/d/msgid/macvisionaries/A4BCF15C-9CD0-44CD-84BA-402532821C3A%40gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> 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:  
> mk...@ucla.edu 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/macvisionaries/A94B9944-F4F9-46CF-BC2B-EC4B322E002D%40me.com.

-- 

Janina Sajka

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:  
mk...@ucla.edu 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/macvisionaries/20200330044835.GC2198%40rednote.net.

Reply via email to