intro to linux/unix (user commands) box. what is linux? open source operating system developed by...

10
Intro to Linux/Unix (user commands) Box

Upload: bennett-douglas

Post on 12-Jan-2016

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Intro to Linux/Unix (user commands)

Box

Page 2: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

What is Linux?

• Open Source Operating system

• Developed by Linus Trovaldsa the U. of Helsinki in Finland since 1991.

• Under GNU GPL, its source code is free for everyone to download and use.

• One of the most popular, esp for a server markets

Page 3: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

• Source code can be modified to fit your need.

• Quite portable – good for new hardware products

• Supports various hardware platforms. Majority on x86

• True multi-tasking operating system.

• Being immunized against all kinds of viruses.

Page 4: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Login

• Login at terminal/console, X-window

• Remote terminal – ssh• Putty – windows, openssh.org

Page 5: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Putty login screen

Page 6: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Login to systems

• IBM P5/575 supercomputer - bluedawg.loni.org• Obtain login via https://

www.loni.org/systems/accounts/account_request.php

• Class Cluster System – 138.47.51.229• Your login is your tech e-mail (w/o number)

and password = engr530. • ars cmo crc dgh jcg jcm jsb kag sva vmh

Page 7: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Parallel computing Machines

Page 8: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Navigate around and file/dir commands

• List a directory – ls

• Get more help – man %command

• Change directory – cd

• Forward slash in Linux/Unix

• Create directory – mkdir

• Remove file or dir – rm

• List a file content – cat , more

Page 9: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Create/edit a file

• Vi

• Emacs

• Any of you favorite editor

Page 10: Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since

Compile and run your program

• gcc – gnu c compiler

• g++ - c++

• mpicc – mpi c compiler

• Default executable – a.out

• Run your program on Linux cluster• Make sure your $PATH is set• ./a.out – normal program• Mpi – mpirun or qsub (pbs)…