mcnp class series (1. linux and basic commands)
TRANSCRIPT
MCNP CLASS SERIES(LINUX AND BASIC COMMANDS)Jongsoon Kim
Operating system
● A program that manages computer hardware and software– File management– Program management
● Runs programs and manage hardware device– User interface
What is Linux?
A program that manages computer hardware and software
File managementProgram managementRuns programs and manage hardware deviceUser interface
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
Linux distributions
UbuntuA complete desktop Linux operating system“ Humanity to others” in African word
FedoraAn openly-developed project designed by Red Hat
Remote Access Using Windows - Remote Logins (I)
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:
Remote Logins (III)
Congratulations! You should now have an interactive shell session on the remote machine
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: * ? ! \ ‘ “ > ( ) $ ~
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
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
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
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
Text Editors (vi)
Text Editors (pico)
File TransfersDouble-click the WinSCP icon to start WinSCP. The following window show should appear.
Type in Host name, User name, and Password.
File transfers (continued.)Click “Login” to proceed. You will then see the following window:
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.
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.