Purdue University 1 Topics Why Linux Where to get Linux Linux through Purdues thin linc Terminal and command line Frequently used commands Pipe Why Linux Linux is UNIXlike iOS ID: 1001211
Download Presentation The PPT/PDF document "Quick Start of Linux Yung-Hsiang Lu" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
1. Quick Start of LinuxYung-Hsiang Lu Purdue University1
2. Topics Why Linux?Where to get Linux?Linux through Purdue's thin lincTerminal and command lineFrequently used commandsPipe
3. Why Linux?Linux is "UNIX-like"iOS, Anroid are also "UNIX-like"2017/11 all top 500 (fastest 500 computers in the world) Linux is widely used in embedded systems(real-time improvements) Used in autonomous vehicles"At least" 67% web servers run Linux (wired.com, 2016/08/25)Many computer courses use Linux (because grading is easier)
4. Get LinuxDownload Linux and install on your computerBrand new computerDual boot if it already has an operating systemVirtual machine (such as Virtualbox), Linux coexists with another operating system (such as Windows)Cloud (Amazon EC2, Microsoft Azure, Google Cloud ...)Purdue Engineering students: thin linc
5. Thin LincConnect to the servers managed by ECN (Engineering Computer Networks)ECN is the IT department of Purdue EngineeringAdvantages:ECN updates softwareSecurity is managed by expertsThese are very fast computers Many courses use these computers for grading
6. Linux at Purdue ECNGo to EE 206 or 207.Many ways to connect:Install thinlinc client (recommended)Install secureCRT (not recommended)Install putty (not recommended)https://ecegrid.ecn.purdue.edu/main/ (not recommended)Strongly discouraged: Cygwin and MinGW (not real Linux)Do not use telnet (not secure)
7.
8. connect to ecegrid.ecn.purdue.eduyour account
9. Terminal andCommand LineCombine multiple commandsAutomate tools, without human clicking or dragging
10. This is a "command prompt". You enter commands after the prompt."bash" is the default working environment (called "shell")4.1 means the version
11. Frequently Used Commands
12. ls (list)ls: list the files and directories (also called "folders")ls -l: list with long (more information); beginning 'd': directory
13. ls (list)ls: list the files and directories (also called "folders")ls -l: list with long (more information); beginning 'd': directory
14. mkdir: make new directory (i.e., folder)cd: change (i.e. enter) directory
15. vim: text editor
16.
17. cp src dest: copy file src to destdiff file1 file2: compareprog2.c is identical to prog.cdiff shows nothing
18. echo "message" >> file: add a linecat -n file: show file with line number
19. diff shows the difference, with line numbers
20. grep word file: print the lines with this word in the file
21. rm: remove a file (irreversible)prog2.c has been deleted
22. mv (move): rename a file
23. redirect output using >>
24. pipe (|): take output from one program as input of another program