Understanding the Basics of Computational Informatics 2014. Summer School, Hungary, Szeged Methos L. Müller.

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
Introduction to Unix – CS 21 Lecture 13. Lecture Overview Finding files and programs which whereis find xargs Putting it all together for some complex.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Learning basic Unix command IT 325 operating system.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Linux Essentials Programming and Data Structures Lab M Tech CS – I 2014 Arijit Bishnu Ansuman Banerjee Debapriyo Majumdar.
Unix/Linux for beginners:
1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
40 Years and Still Rocking the Terminal!
Intro to UNIX Presented by: Student Ambassadors: Lauren Lewis Martin Sung.
CS252: Systems Programming Ninghui Li Slides by Prof. Gustavo Rodriguez-Rivera Topic 7: Unix Tools and Shell Scripts.
Linux Lecture #02. File Related Commands cat --Concatenate and print (display) the content of files. --Also used to create a new file. Syntax cat [Options]
Linux Commands C151 Multi-User Operating Systems.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Apr. 25, Grid Computing Hands On Training for Users Faculty of Sciences, University.
Portable Batch System – Definition and 3 Primary Roles Definition: PBS is a distributed workload management system. It handles the management and monitoring.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
Learning basic Unix command It 325 operating system.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
+ Introduction to Unix Joey Azofeifa Dowell Lab Short Read Class Day 2 (Slides inspired by David Knox)
Learning Unix/Linux Based on slides from: Eric Bishop.
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Usage of Workstation Lecturer: Yu-Hao( 陳郁豪 ) Date:
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Bash Scripting CIRC Summer School 2016 Baowei Liu CIRC Summer School 2016 Baowei Liu.
Overview of Linux Fall 2016 Dr. Donghyun Kim
GRID COMPUTING.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
CIRC Winter Boot Camp 2017 Baowei Liu
Chapter 11 Command-Line Master Class
Prepared by: Eng. Maryam Adel Abdel-Hady
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Shell Script Assignment 1.
Practice #0: Introduction
Linux Basic Commands Visit to more Learning Resources.
INTRODUCTION TO UNIX: The Shell Command Interface
Tutorial of Unix Command & shell scriptS 5027
Introduction to UNIX.
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Tutorial Unix Command & Makefile CIS 5027
CSE 303 Concepts and Tools for Software Development
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

Understanding the Basics of Computational Informatics Summer School, Hungary, Szeged Methos L. Müller

2 Department of Chemical Informatics Summer School Szeged, May 13. Table of contents Introduction to the Linux environment Login to the cluster Basic commands Upload the input files Submit a GAUSSIAN job to the cluster Getting back the result Downloading the outputs Scripts for collecting data

3 Department of Chemical Informatics Introduction to the Linux environment Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs. Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. Linus Torvalds developed the first Linux operating system at October 5, Linus Torvalds Summer School Szeged, May 13.

4 Department of Chemical Informatics Introduction to the Linux environment Famous linux distros: Summer School Szeged, May 13.

5 Department of Chemical Informatics Introduction to the Linux environment We are using Ubuntu on the cluster. Summer School Szeged, May 13.

6 Department of Chemical Informatics Login to the cluster The IP address of the cluster: Login to the cluster: ssh For example: ssh Summer School Szeged, May 13.

7 Department of Chemical Informatics Basic commands man ­ shows all information about the command ­­help ­ shows the available options for that command mkdir – make directories Usage: mkdir [OPTION] DIRECTORY... ls – list directory contents Usage: ls [OPTION]... [FILE]... ls *.txt – prints all text files cd – changes directories Usage: cd [DIRECTORY] pwd – print name of current working directory Summer School Szeged, May 13.

8 Department of Chemical Informatics Basic commands cp – copy files and directories Usage: cp [OPTION]... SOURCE DEST mv – move (rename) files Usage: mv [OPTION]... SOURCE DEST mc – Midnight Commander (File manager mcedit – The Midnight Commander’s file editor top – display top CPU processes Summer School Szeged, May 13.

9 Department of Chemical Informatics Basic commands rm ­ remove files Usage: rm [OPTION]... FILE... find – search for files in a directory hierarchy Usage: find [OPTION] [path] [pattern] history – prints recently used commands Usage: history cat – concatenate files and print on the standard output Usage: cat [OPTION] [FILE]... awk ­ pattern scanning and processing language Summer School Szeged, May 13.

10 Department of Chemical Informatics Basic commands qhost Summer School Szeged, May 13.

11 Department of Chemical Informatics Basic commands qstat qdel job_id – Delete a job qdel –u username – Delete all job Summer School Szeged, May 13.

12 Department of Chemical Informatics Upload the input file Summer School Szeged, May 13.

13 Department of Chemical Informatics Upload the input file Summer School Szeged, May 13.

14 Department of Chemical Informatics Submit a GAUSSIAN job to the cluster Usage: subg09.sh clusterName procNum queue inpFileName clusterName - the name of the cluster you want your job to run on. It MUST be one of: jgypk, niifszeged or niifpecs! procNum - number of processors you want GAUSSIAN09 to run on. This parameter is depending on the cluster. queue - it must be "short" (8 hours), "normal" (24 hours), long (72 hours) or "neverend" (no limits). Don't use the quotes(")! Just one of the words: short, normal, long, or neverend! subg09.sh subg09.sh jgypk 8 neverend g09 input_file.com Summer School Szeged, May 13.

15 Department of Chemical Informatics Submit a GAUSSIAN job to the cluster application - the GAUSSIAN09 related application's name. It can be one of: g09 inpFileName - input filename for GAUSSIAN09, it MUST end with either.com or.inp extension The input file must NOT contain any NProc, NProcShared or Rwf statement! Checkpoint files are handled automatically. subg09.sh jgypk 8 neverend g09 input_file.com Summer School Szeged, May 13.

16 Department of Chemical Informatics Getting back the result Input file The result Report file about the calculation Report file about the scratch Summer School Szeged, May 13.

17 Department of Chemical Informatics Downloading the outputs Summer School Szeged, May 13.

18 Department of Chemical Informatics Scripts for collecting data Find and print all of the values in a file. Content of the collect.sh file: #!/bin/bash # collecting the data awk '/Maximum Force/ {print}' filename.log Run the script: bash collect.sh Summer School Szeged, May 13.

19 Department of Chemical Informatics Scripts for collecting data Use variables in the command Content of the variable.sh file: #!/bin/bash variable=10 echo $variable Run the script: bash variable.sh Summer School Szeged, May 13.

20 Department of Chemical Informatics Scripts for collecting data for loop syntax: for { variable name } in { list } do execute one for each item in the list until the list is not finished (And repeat all statement between do and done) done for i in do echo "Welcome $i times" done for i in {1..5} do echo "Welcome $i times" done Summer School Szeged, May 13.

21 Department of Chemical Informatics Scripts for collecting data List all of the.out files in the folder #!/bin/bash # the file extension what we want to use InPutExt=out for InPutName in `ls -1 *.$InPutExt` do # print the name of the files with the extension echo $InPutName done exit Summer School Szeged, May 13.

22 Department of Chemical Informatics Scripts for collecting data Run a commands from a variable #!/bin/bash # the file extension what we want to use InPutExt=out for InPutName in `ls -1 *.$InPutExt` do result=`awk '/NSTEP/ {print $3}' $InPutName` echo $result done exit Summer School Szeged, May 13.

23 Department of Chemical Informatics Thank you for your kind attention! Summer School Szeged, May 13.