Re: usage of terminals
Re: usage of terminals
- Subject: Re: usage of terminals
- From: Matt Johnston <email@hidden>
- Date: Sat, 22 Feb 2003 08:53:47 +0000
On Friday, February 21, 2003, at 04:03 PM, HweeKuan Lee wrote:
hi,
i hope i have posted to the right mailing list, if
not, can you please point me to the right one?
i have several questions about using the terminal on
macosx 10.2.3.
(1) i use the terminal often and when a terminal is
lunched, it defaults to the home directory. i may be
working in different directories at different times,
say at ~/dirA/dirB/dirC. would like to open one
terminal and "cd ~/dirA/dirB/dirC" and then open
another terminal that automatically bring me to
~/dirA/dirB/dirC so that i don't have to do cd so many
times. do you know how to do this?
You can only ever have one home directory but you can do this.
This is one of the unixy ways:
If using Terminal, just set up some quick aliases to where you need to
go and place them in your .tcshrc file (using vi or pico). The format
of an alias is:
alias command 'command to execute'
eg
alias dirc 'cd ~/dirA/dirB/dirC'
alias dird 'cd ~/dirA/dirB/dirC/dirD'
This will work with the xterm in Apple's X11.
Another method is to create term files
From the file menu in Terminal, save the main winow as a .term file.
Open it in your favourite text editor and find the following XML key:
<key>ExecutionString</key>
In the line below it, change the content to:
<string>cd ~/dirA/dirB/dirC </string>
Save the .term file and execute by doubleclicking it. You may also want
to change the title of the window. Keep these in a folder somewhere and
put the folder in the Dock maybe so they can be chosen easily.
(2) i am using two languages (english and chinese) to
name my files/directories. however, the chinese file
names comes out as ?????? when i do a "ls" in my
terminal. also i wish to be able to cd to those
directories with chinese names. how can i do that?
Not sure about this as the default Terminal output is Unicode.
Try here:
http://www.yale.edu/chinesemac/pages/unix.html
(3) this is related to (2). an alternative to viewing
chinese is to define a map between the chinese file
names and english names so that the terminal will
automatically display the english names while the
finder will display chinese names. do you know how to
do that?
I believe that Apple already does this with some folders. On
non-English systems, Apple's default folders in the home directory
appear in English in the Terminal but in <another language> in the
Finder. However...I've no idea how this is done.
M
_______________________________________________
augd mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/augd
Do not post admin requests to the list. They will be ignored.