-----------------------------------------------------------------------------------
------------------------------------------------------------------
QUICK AND USEFUL
COMMANDS TO USE IN THE TERMINAL
cd : Go to
beggining of directory or go to a specific place
pwd : Tells your
location on the directory (present working directory)
ls : Shows a list of
the things where youre at
ls - a : Shows a list of
the things where youre at and the hidden files too
explorer.exe . : Shows a windows
of the folders you have on linux
dpkg --get-selections : Shows a list of
the packages you have installed on linux
python "Script name".py : Runs a
python script from terminal
unlink "filename" : To delete a
single file
rm "folder name" : To delete
a single folder (directory)
rm -r "folder name" : To remove
a directory and all its contents, including any
subdirectories and
files
more .bash_history : Shows a broad
list of yor history (functions)
cp .bash_history my_history : Saves the
history one made during that day
cd / : To
navigate into the root directory
cd or cd ~ : To navigate to
your home directory
cd .. : To navigate up
one directory level
cd - : To navigate to
the previous directory (or back)
mkdir "name of folder to create" : To create a new
directory (folder)
touch "file name"."type of format" : To create
a new file
touch "file 1"."type of format" "file 2"."type of format" : To cerate
multiple new files
more "file name.txt" : To open
and view a text file through the terminal
cp "path to file" /"place to save in"/"your username here" : Copy a
file and paste it to another place
cp "username_of_interest" /"path file is located"/"$PWD" : Copy a
file and paste it into your present working directory
cp "insert path of interest". : Copy a file to
your current directory (use the dot)
python "file_name".py "/place where the file is located/" : Run a
python file directly
/> "file_name".txt : Creates a
file in in the current palce
python "file_name".py "/place where the file is located/" >"file_name".txt :
Runs the pythonfile and saves its info in the mentioned txt file
crlt^c :
Stops a file running in the terminal
nano "file_name" :
Enables text editor and can modify the file
nano ~/.bashrc : Enables internal
coding in the termianl
cp /path_of_files/*word_of_interest $PWD :Copies from the
path to your present working directory only specific files names
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
ICECUBE LOGIN
ssh ajimenez@pub.icecube.wisc.edu : Into
Madison computer
ssh cobalt : Log into a work
machine named cobalt - The alias will be cobalt
ssh submitter : Log into a
computer called submitter that gives you access to tons of
processor (CPU,GPU) to make calculations
w : Shows list of
people connected at the moment
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
THIS IS THE SUBMIT NODE
FOR THE NPX CLUSTER
ssh -Jpub submiter : Place to go if
one wants to submit a job
NOTE : A null hypothesis is a type of hypothesis that says that there are not any
differences between specific characteristics of
our population... So, the hypothesis; "If I look into the sky, I will see that
there is an equal probability of an event happening
at any given point that I look at" is a null hypothesis because I am stating that
regardless of where I look in the sky, I am just
as likely to see an event happening in one direction versus a different direction.
cp /home/icecube-bootcamp/bootcamp2021/interactive_materials/diffuse_example/
BootCamp_Diffuse_Fit_Introduction.ipynb /scratch/<your_username_here>
-----------------------------------------------------------------------------------
---------------------------------------------------------------------
WORK STATION (AFTER LOGED IN
THROUGH MADISON & COBALT)
eval `/cvmfs/icecube.opensciencegrid.org/py2-v3.1.1/setup.sh`
: Enable enviroment
source /cvmfs/icecube.opensciencegrid.org/py2-v3.1.1/RHEL_7_x86_64/metaprojects/
combo/stable/env-shell.sh : Enable the soruce
python zaps_loop_files.py /data/exp/IceCube/2021/filtered/level2/0324/Run00135119/
python zaps_loop_files.py /data/exp/IceCube/2021/filtered/level2/0324/Run00135119/
>my_output_file.txt
/> my_output_file.txt
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
ICETRAY ENVIROMENT JUST ON YOUR VM
source ~/IceCube/meta-projects/combo/stable/build/env-shell.sh Go to
display events.i3 ( in the location where you have the Display_events.i3 file)
steamshovel Display_events.i3
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
Program
dataio-pyshovel "Enter i3 file name"
dataio-pyshovel
/data/exp/IceCube/2021/filtered/level2/0101/Run00134850_80/Level2_IC86.2020_data_Ru
n00134850_Subrun00000000_00000001.i3.zst
-----------------------------------------------------------------------------------
--------------------------------------------------------------------
linestyle or ls ‘solid’ | ‘dashed’, ‘dashdot’, ‘dotted’ | (offset, on-off-dash-
seq) | '-' | '--' | '-.' | ':' | 'None' | ' ' | ''