
Important Linux features 219
DONE
INDEX
INDEX
• PAT H = $ PA T H : / h o m e / g u e s t
• NMR=/opt/topspin/data/guest/nmr
• export PATH NMR
• 1r() { find $@ -name 1r -ls }
• alias ts=topspin
Now open a new shell:
• umask will be set to 002
• guests home directory is part of the Linux search path
• you can type cd $NMR instead of
cd /opt/topspin/data/guest/nmr
• you can type 1r <dirA> <dirB> for searching all files called 1r in the
in the directory trees dirA and dirB
• you can type ts instead of topspin
Note the difference between NMR, an environment variable and xw, a Linux func-
tion.
For csh and tcsh the file .cshrc is used. Note that the setting of environment var-
iables is handled differently.
13.2.5 umask
umask: set the initial permissions for file creation
The initial permissions of a file are set according to:
permission = creation permission - umask
• the creation permissions are:
666 for files created by an editor (e.g. vi, emacs)
777 for an executable program, created by a compiler
Commenti su questo manuale