a Few terminal questions...

Mac Osxtopus

Registered
1: How do i change the title where it says "Welcome to darwin!"


2: Whats a good website(besides Oreilly's stuff...) where i can learn a bit about terminal.

3: How do i make commands.

4: What does the % next to my admin name mean?



The ever-so-curious comp hog,
Macosxtopus
 
Originally posted by Mac Osxtopus
1: How do i change the title where it says "Welcome to darwin!"


2: Whats a good website(besides Oreilly's stuff...) where i can learn a bit about terminal.

3: How do i make commands.

4: What does the % next to my admin name mean?



The ever-so-curious comp hog,
Macosxtopus

1. It is in the file /etc/motd. Or if you just don't want to see it, type:

echo ~/.hushlogin

2. Really any Unix-related web site. With few exceptions, most should pertain to it. Or do you mean the Terminal.app itself?

3. Can you explain exactly what you want? I guess you should look into creating tcsh aliases or shell scripts, unless I misunderstood you.

4. The % is just the prompt. Different shells use different symbols as the prompts. If you su'd to root, it would be a '#'. Others use >, $, etc. Doesn't really matter. You can totally change the prompt to whatever you want.

Hope this helps...
 
If you want to edit the motd, you'll need to sudo, since it's owned by root.

sudo pico /etc/motd
then enter your password. Use control-x to exit pico.
 
1: thanks

2: I mean terminal.app itself...unless mach has the same sort of interface/language as the original language of UNIX.

3: yes, shell scripts, if thats what telling the system what to do on a more advanced level.

4: k, care to tell me how besides just saying sudo? Since it's recommended for me to not use sudo unless I know what I'm doing
 
Originally posted by Mac Osxtopus
4: k, care to tell me how besides just saying sudo? Since it's recommended for me to not use sudo unless I know what I'm doing
Tell you how to do what? Your original question was "whats the % for?" and hazmat said "it shows your login status, and is based on the shell".

So if you log in as root, it would be something different. The only other way that I know of to change the % part is to change your prompt. You could do this by editing your .cshrc file.
pico .cshrc
then add
setenv PROMPT Whatever_Prompt_You_Want:

Before you do this, however, I'd take a look around and find some threads dealing with this. Testuser has some good commands for the prompt. You can also temporarily change the prompt by saying
set prompt=Whatever_Prompt_You_Want:
which will let you play around, and if you mess things up just log out and log back in. The .cshrc change will affect all subsequent logins.

Sorry this is kind of vague -- I'm already late :eek:
 
testuser said:
/etc/nologin - displayed, and then login is refused for all users. Caution: if you create this file you can lock yourself out of the Terminal! (you may need to ssh to your Mac from another computer as root in order to remove this file)
Couldn't you also use the command-` to go to the etc directory in the Finder, and remove the nologin file that way?
 
Originally posted by hazmat


1. It is in the file /etc/motd. Or if you just don't want to see it, type:

echo ~/.hushlogin


Woops. That should be 'touch', not 'echo'.
 
Back
Top