dvousden password: dvousden123
ssh username@location
ssh -X username@location
ssh username@172.16.128.140
echo $SHELL
## /bin/bash
history
pwd # tells you where you are, same structure as folders that you’re used to clicking
ls # shows you what’s there
## /hpf/largeprojects/MICe/chammill/presentations/summer_school2017/intro_to_bash
## bash_tutorial.pdf
## intro_to_bash_slides20170821.html
## intro_to_bash_slides20170821.md
## intro_to_bash_slides20170821.Rmd
## intro_to_bash_slides20170821.Rmd~
man
ls [-ABCFG…] [file ..]
- tells you that ls ‘list directory contents’
- possible arguments are all the letters
- you can also give ls the name of a particular file and it will give you information about that file
ls -l # gives you long output (who created file, date of creation, size of file)
#ls -l DIRECTORY # shows you what’s in that directory
## total 488
## -rw-r--r-- 1 chammill mice 99491 Aug 21 15:59 bash_tutorial.pdf
## -rw-r--r-- 1 chammill mice 25705 Aug 21 16:10 intro_to_bash_slides20170821.html
## -rw-r--r-- 1 chammill mice 5796 Aug 21 16:10 intro_to_bash_slides20170821.md
## -rw-r--r-- 1 chammill mice 3853 Aug 21 16:09 intro_to_bash_slides20170821.Rmd
## -rw-r--r-- 1 chammill mice 3757 Aug 21 15:47 intro_to_bash_slides20170821.Rmd~
ls /home/Dulcie/Documents
#ls Documents
ls ~ # shortcut for home directory
ls . # shortcut for current directory
ls ../ # shortcut for parent directory
pwd
cd ..
pwd
## /hpf/largeprojects/MICe/chammill/presentations/summer_school2017/intro_to_bash
## /hpf/largeprojects/MICe/chammill/presentations/summer_school2017
# cd Doc # show tab completion
mkdir banana
cd banana
pwd
ls
cd ..
rmdir banana
echo $PATH
## /home/chammill/bin:/home/chammill/.local/bin:/hpf/largeprojects/MICe/chammill/local/bin:/home/chammill/local/bin:/axiom2/projects/software/arch/linux-xenial-xerus/Fiji/1.51n/bin:/axiom2/projects/software/arch/linux-xenial-xerus/R/3.2.3/bin:/axiom2/projects/software/arch/linux-xenial-xerus/MICe-lab/0.14/bin:/axiom2/projects/software/arch/linux-xenial-xerus/pydpiper/2.0.8/bin:/axiom2/projects/software/arch/linux-xenial-xerus/minc-stuffs/0.1.20/bin:/axiom2/projects/software/arch/linux-xenial-xerus/pyminc/0.51/bin:/axiom2/projects/software/arch/linux-xenial-xerus/python/3.6.2/bin:/axiom2/projects/software/arch/linux-xenial-xerus/minc-toolkit/1.9.15/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/OGS/bin/linux-x64:/axiom2/projects/software/arch/linux-xenial-xerus/OCCIviewer/bin:/axiom2/projects/software/arch/linux-xenial-xerus/bin:/axiom2/projects/software/arch/linux-xenial-xerus/src/mrtrix3/release/bin:/usr/games:/usr/local/games:/snap/bin
if you are having problems running a certain program, sometimes it’s because you haven’t told the computer where to look
less ~/.bashrc
mkdir /tmp/treasure
cd /tmp/treasure
perl /axiom2/projects/software/arch/linux-3_2_0-36-generic-x86_64-eglibc-2_15/bin/treasureHunt.pl
Let’s have a look at the first clue
ls
when done you can delete directory
rm -rf /tmp/treasure
Offending RSA key in /Users/Dulcie/.ssh/known_hosts:12
sed -i '6d' ~/.ssh/known_hosts
perl -pi -e 's/\Q$_// if ($. == 6);' ~/.ssh/known_hosts