%% file: linux-brief-manual.txt = unix basics for micro$oft windies
%% last: Apr  6 2021  Rob Rutten  Deil
   
   
           BRIEF LINUX MANUAL FOR WINDIE STUDENTS

                     Robert J. Rutten

                 Lingezicht Astrophysics
          Institutt for Teoretisk Astrofysikk Oslo 


This very brief unix/lunix tutorial was initially written for
operating-system-challenged DOT students ("windie dotties"):
  https://robrutten.nl/Students_to_the_DOT_program.html  
I also have Ubuntu installation recipes at
  https://robrutten.nl/Recipes_Ubuntu.html  
and some unix/linux recipes at
  https://robrutten.nl/Recipes_linux_unix.html  
See also:
  http://www.cita.utoronto.ca/~matzner/svc/resources.html  
  http://www.unixguide.net/linux/linuxshortcuts.shtml  
directories
  mkdir somename    # make new subdir 
  cd somename
  pwd               # print working directory
  cd ..             # go one back up; one . means "this directory"
  cd                # go to top = your "root" = ~/.
  cd ~rutten        # go to my root ("home") directory
  chmod 644 file    # open file for reading by others 
  chmod 755 dir     # make directory accessible for others
  ls                # list directory content
  ls -l             # more info
  ls -aF            # list also system files starting with a .
  cp file dir/.     # copy file into other directory
  cp -upr dir path  # copy dir with all in and under to other location
  mv filea fileb    # mv = move, to another dir or rename
  rm file           # rm = remove = delete 
  rm -rf dir        # delete dir with everything in and under it

scripts
  #!/bin/csh        first line of a script (shell eg csh, bash, etc)
  cd ~/bin          # directory to put executable scripts in 
  chmod 755 script  # make script executable, also by others
  rehash            # activate new scripts

file copy to or from remote computer
  scp user@venus.phys.uu.nl:/home/students/user/file .
        # copy file from there to here
        ## first time: say yes at authentication question
 
  scp file user@venus.phys.uu.nl:/home/students/user/. 
        # copy file from here to there

  scp -r user@venus.phys.uu.nl:/home/students/user/dir .
        # copy dir with all in it / under it from there to here

remote session
  ssh -X user@venus.phys.uu.nl    # open remote session with X windows 

get a paper
  ADS: http://adsabs.harvard.edu/default_service.html
  get ADS paper via institute licenses: adapt my ADS script getads