...
Code Block |
---|
cd
ln -s -f $SCRATCH scratch
ln -s -f $WORK work
ln -s -f /corral-repl/utexas/BioITeam
mkdir -p $HOME/local/bin
cd $HOME/local/bin
ln -s -f /corral-repl/utexas/BioITeam/bin/launcher_creator.py |
...
Now execute the lines below to set up a login script:
<pre>
cd
...
script, called .profile_user. This script will be executed whenever you login to stampede.
Code Block |
---|
cd cp /work/01063/abattenh/seq/code/script/tacc/ |
...
stampede_dircolors .dircolors |
...
cp /work/01063/abattenh/seq/code/script/tacc/ |
...
stampede_corengs_profile .profile_user |
...
chmod 600 .profile_user |
</pre>
Finally, log off and log back in to <span class='i-system'>lonestar</span> stampede.tacc.utexas.edu. You should see a new command prompt: lstar
Code Block |
---|
stamp:~$ |
And nice directory colors when you do this:
ls -la
...
you list your home directory:
Code Block |
---|
ls |
So why don't you see the .profile_user file you copied to your home directory? Because all files starting with a period ("dot files") are hidden by default. To see them add the -a (all) option to ls:
Code Block |
---|
ls -la |
.profile_user
...
Let's take a quick look at what is being done by our <span class='i-path'>$HOME/the .profile_user</span> login script. Its contents are shown on the [[Playtime:TACC_common#.profile_user_template|Common Iyer Lab resources at TACC]] page
'''''Note:''''' To see hidden "dot" files in directory listings, you need to use the -a option:
ls -a
user login script, using cat (concatenate):
Code Block |
---|
cat .profile_user
#!/bin/bash
# Change the command line prompt to contain the current directory name
PS1='stamp:\w$ '
# Ensure all created files can be read/written by group members
umask 002
# Use yellow for directories, not that horrible blue
dircolors .dircolors > /dev/null
# Make common useful software available
module load python
module load launcher
# Environment variables for useful locations
export BI=/corral-repl/utexas/BioITeam/
export CLASSDIR="$BI/core_ngs_tools"
# Add current directory and $HOME/local/bin to PATH
export PATH=.:$HOME/local/bin:$PATH |
ls -la