|
Help Topics
User Accounts Network Access Additional Help
|
FAQ /
UnixShellsOn this page... (hide) 1. Changing your shellTo change your shell, from a prompt type Note that 2. Changing your Finger InformationTo change the information that shows up when you run the finger command, type Any of these changes will take a couple of hours to take effect. 3. tcsh, .cshrc/.login and environment variablesThe supported login shell is tcsh, although users may also select others if they so desire. Tcsh is much more powerful than csh and should be used. ~/.cshrc is the startup file that csh/tcsh read. tcsh will read ~/.tcshrc instead if it exists. ~/.login is read on login. These are the files that set up a user's environment. Prototypes of these files, the ones new users receive, are in There are two sets of variables that csh and tcsh use. Environment variables are passed down to child processes and are set with After changing something in your .cshrc you need to either source it by typing "
These two variable do the same thing, sets the search path to find executable programs. You don't have to worry about maintaining both, of them, just one will do, as csh/tcsh will automatically set the other when you change one of them. For example:
> echo $path
/usr/local/bin /bin
> printenv PATH
/usr/local/bin:/bin
> set path = ( /usr/local/bin /bin /usr/sbin )
> echo $path \\ /usr/local/bin /bin /usr/sbin
> printenv PATH
/usr/local/bin:/bin:/usr/sbin
> setenv PATH ${PATH}:/usr/local/etc
> echo $path
/usr/local/bin /bin /usr/sbin /usr/local/etc
> printenv PATH
/usr/local/bin:/bin:/usr/sbin:/usr/local/etc
> set path = ( ${path} . )
> echo $path
/usr/local/bin /bin /usr/sbin /usr/local/etc .
> printenv PATH
/usr/local/bin:/bin:/usr/sbin:/usr/local/etc:.
As the preceding shows $var or ${var} will give the value of var. The last example show include '.' in the path. That is the current directory. If you include '.' in your path it should be last, after all system directories, and not first as bad things can happen with it first. 4. Man pagesMan is short for manual and is how things are documented in Unix. Run MANPATH is an environment variable used by man to find man pages. It is a colon separated list of directories for man to look in for man pages. Alternatively you man specify the directory to look in with the -M option to man. The directory the man page is in must either be in MANPATH or in one specified by the -M option for man to find it. The directories actually have subdirectories for the different sections of the manual, which contain the files. For example, The manual has several sections. Sometimes you need to know what section the man page is in. For example, if you want the man page for the Man pages are often in nroff format. What man basically does is find the man page, then do an Note: If you have missing man pages on some systems such as mlb, you may need to add /usr/share/man to your manpath. 5. Using ps and killing processesThe command to get a listing of processes is Now that you know which flavor ps you are using you now can give it the right options to get what you want. With the SYSV version you probably will want to use To kill a process first try Also, there are 6. Supported text editors
syntax on
set hlsearch
:if &term =~ "xterm"
:if has("terminfo")
: set t_Co=16
: set t_AB=ESC[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
: set t_AF=ESC[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
:else
: set t_Co=16
: set t_Sf=ESC[3%dm
: set t_Sb=ESC[4%dm
:endif
:endif
(Note that the ESC is the esacpe key sequence inserted with Ctrl+v and in vi)
For more info on editors: vi: emacs and xemacs: 7. Password-less SSH AuthenticationIf you'd like to > ssh-keygen -t dsa Enter file in which to save the key (/usa/<username>/.ssh/id_dsa): <enter> Enter passphrase (empty for no passphrase): <enter> Enter same passphrase again: <enter> > cat ~/.ssh/id_dsa.pub >>! ~/.ssh/authorized_keys You can now append your For added security, use a passphrase when creating your key. This way, you're not only authenticated by your key, you're also authenticated by a password -- twice as secure. Comments To add a comment, click the link below. You are free to contribute anonymously, but it is preferred that you sign your comments with your name. Simply add |