Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Basic Linux commandsHere I will write some of the basic commands we use in the terminal and what they do. 1) The mkdir command: This will create a folder ( i.e. make a directory). syntax: mkdir 'mydocuments' 2) mkdir --verbose: This will create a directory and you will be told by the computer that it has been created for example: ![]() ![]() ![]() CMS Data Analysis Pre-Exercises (First Set)Here I will talk about my experience learned from these exercises, which have the purpose to prepare students who,like me, will be exposed to CMS Data Analysis. At the bottom of this topic I will post the link to the original page for those who want to participate. I will not go into the details (that's why I posted the original link), but the first thing we have to do is to get a CERN account. After that you will need to get the necessary certificates and finally a github account. NOTE ( In this and every other execercise I used the UPRM syntax). After you've done these things we are ready to begin ! In the first exercise we need to do a simple Cut and Paste. For this I used the cp command to do this we sign in to the corresponding cluster (in my case UPRM) and copied the file named runThisCommand.py Here's what you write: | ||||||||
Changed: | ||||||||
< < | ssh -Y USERNAME@alpha00.hep.uprm.edu | |||||||
> > | ssh -Y USERNAME@alpha00.hep.uprm.edu | |||||||
Changed: | ||||||||
< < | cp ~malik/CMSTutorial/runThisCommand.py . | |||||||
> > | cp ~malik/CMSTutorial/runThisCommand.py . | |||||||
and then cut and paste the following and then hit return | ||||||||
Deleted: | ||||||||
< < | ||||||||
./runThisCommand.py "asdf;klasdjf;kakjsdf;akjf;aksdljf;a" "sldjfqewradsfafaw4efaefawefzdxffasdfw4ffawefawe4fawasdffadsfef"The response should be your username followed by alphanumeric string of characters unique to your username, for example for a user named malik: (If done succesfully the output should be ) | ||||||||
Deleted: | ||||||||
< < | ||||||||
success: malik znyvx | ||||||||
Added: | ||||||||
> > | Exercise 2 | |||||||
After this we move on to the second exercise which is a simple edit exercise. First we have to copy the file | ||||||||
Deleted: | ||||||||
< < | ||||||||
cp ~malik/CMSTutorial/editThisCommand.py .Here we will open this file using the "nano" command and edit the text inside it. In this case we are asket to change the 11th line and add "#" at the start of the line. After this save the file and copy paste the following: | ||||||||
Deleted: | ||||||||
< < | ||||||||
./editThisCommand.py | ||||||||
Added: | ||||||||
> > | Again like the last exercise there is a specific output if done correctly (check with the original page).
Exercise 3In this exercise we will setup the github account and create a Working Directroymkdir YOURWORKINGAREAYou will be prompted to fill some information for your github account, after this Run the following command: echo $CMSSW_BASEWe have finished the exercise. I will skip Exercise 4 since I did not have the certificates necessary for this part. | |||||||
The original page is here
-- ![]() Comments
|