MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II)...
Transcript of MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II)...
![Page 1: MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/1.jpg)
MCNP CLASS SERIES(LINUX AND BASIC COMMANDS)Jongsoon Kim
![Page 2: MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/2.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/3.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/4.jpg)
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 AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/5.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/6.jpg)
Remote Access Using Windows - Remote Logins (I)
![Page 7: MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/7.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/8.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/9.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/10.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/11.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/12.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/13.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/14.jpg)
Text Editors (vi)
![Page 15: MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/15.jpg)
Text Editors (pico)
![Page 16: MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/16.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/17.jpg)
File transfers (continued.)Click “Login” to proceed. You will then see the following window:
![Page 18: MCNP Class series (1. Linux and basic commands)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/18.jpg)
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)(LINUX AND BASIC COMMANDS) Jongsoon Kim ... (II) After clicking on “Open”, you should be presented with a window with a command line](https://reader030.fdocuments.in/reader030/viewer/2022040913/5e89c2098fd8646ecd52f8c7/html5/thumbnails/19.jpg)
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.