mcnp class series (1. linux and basic commands)

19
MCNP CLASS SERIES (LINUX AND BASIC COMMANDS) Jongsoon Kim

Upload: hakhanh

Post on 23-Dec-2016

245 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: MCNP Class series (1. Linux and basic commands)

MCNP CLASS SERIES(LINUX AND BASIC COMMANDS)Jongsoon Kim

Page 2: MCNP Class series (1. Linux and basic commands)

Operating system

● A program that manages computer hardware and software– File management– Program management

● Runs programs and manage hardware device– User interface

Page 3: MCNP Class series (1. Linux and basic commands)

What is Linux?

A program that manages computer hardware and software

File managementProgram managementRuns programs and manage hardware deviceUser interface

Page 4: MCNP Class series (1. Linux and basic commands)

Primary Advantage of Linux

Free of chargeMore reliable than most desktop-oriented operating systemMore safer from malware and virusesFree to change any part of the Linux systemAlways available on the Internet

Page 5: MCNP Class series (1. Linux and basic commands)

Linux distributions

UbuntuA complete desktop Linux operating system“ Humanity to others” in African word

FedoraAn openly-developed project designed by Red Hat

Page 6: MCNP Class series (1. Linux and basic commands)

Remote Access Using Windows - Remote Logins (I)

Page 7: MCNP Class series (1. Linux and basic commands)

Remote Logins (II)

After clicking on “Open”, you should be presented with a window with a command lineInterface and will be asked to supply your login name and password:

Page 8: MCNP Class series (1. Linux and basic commands)

Remote Logins (III)

Congratulations! You should now have an interactive shell session on the remote machine

Page 9: MCNP Class series (1. Linux and basic commands)

Basic Linux (Unix) Commands

Linux is case-sensitiveLinux distinguishes between upper and lower case letters in the names of files and programs.Login names and passwords are also case-sensitiveFilename in Linux can consists of any combination of characters except for the space and all of the following: * ? ! \ ‘ “ > ( ) $ ~

Page 10: MCNP Class series (1. Linux and basic commands)

File and directory handling commands

lsLists your files

ls -l Lists your files in ‘long format’

ls -a Lists all files

more filename Shows the first part of a file

cp filename1 filename2Copy a file

Page 11: MCNP Class series (1. Linux and basic commands)

File and directory handling commands

mkdir dirnameMake a new directory

cd dirnameChange directory

mv filename1 filename2Move a file into a different directory, or rename the file

rm filenameRemoves a file. Preferably use rm –I which will ask you for confirmation before deleting the file

Page 12: MCNP Class series (1. Linux and basic commands)

About yourself

whoamiReturns your username

passwdLets you change your password

kill PIDKills (ends) the processes with the ID you gave

quota -vShow what your disk quota is

du filenameShows the disk usage of the files

Page 13: MCNP Class series (1. Linux and basic commands)

Miscellaneous Commands

dateShows the current date and time

calShows a calendar of the current month

man commandnameShows the manual page for the command

Ctrl + c or zStops running program or the command

logoutEnds your login session

Page 14: MCNP Class series (1. Linux and basic commands)

Text Editors (vi)

Page 15: MCNP Class series (1. Linux and basic commands)

Text Editors (pico)

Page 16: MCNP Class series (1. Linux and basic commands)

File TransfersDouble-click the WinSCP icon to start WinSCP. The following window show should appear.

Type in Host name, User name, and Password.

Page 17: MCNP Class series (1. Linux and basic commands)

File transfers (continued.)Click “Login” to proceed. You will then see the following window:

Page 18: MCNP Class series (1. Linux and basic commands)

File transfers (continued.)Let’s say you wanted to copy the file “ch4e3” from the local compute (left window)to the remote computer (right window). Click on the file “ch4e3” and press F5 key at the bottom of the window. You will beprompted for a confirmation.

Click “Copy”, and a transfer progress window will appear.

Page 19: MCNP Class series (1. Linux and basic commands)

File transfers (continued.)

Depending on the size of the files and the speed of your network, this could take from a few seconds to several minutes.When you are ready to disconnect from the remote system, press F10 or just exit from the program.