Quick Start of Linux - engineering.purdue.edu

Quick Start of Linux - engineering.purdue.edu

Quick Start of Linux Yung-Hsiang Lu Purdue University 1

Topics Why Linux? Where to get Linux? Linux through Purdue's thin linc Terminal and command line

Frequently used commands Pipe 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) Get Linux Download Linux and install on your computer o Brand new computer

o Dual boot if it already has an operating system Virtual 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

Thin Linc Connect to the servers managed by ECN (Engineering Computer Networks) ECN is the IT department of Purdue Engineering

Advantages: o ECN updates software o Security is managed by experts o These are very fast computers o Many courses use these computers for grading

Linux at Purdue ECN Go to EE 206 or 207. Many ways to connect: o Install thinlinc client (recommended)

o Install secureCRT (not recommended) o Install putty (not recommended) o https://ecegrid.ecn.purdue.edu/main/ (not recommended) Strongly discouraged: Cygwin and MinGW (not real Linux) Do not use telnet (not secure)

connect to ecegrid.ecn.purdue.edu your account

Terminal and Command Line Combine multiple commands Automate tools, without human clicking or dragging

This is a "command prompt". You enter commands after the prompt. "bash" is the default working environment (called "shell") 4.1 means the version

Frequently Used Commands ls (list) ls: list the files and directories (also called "folders")

ls -l: list with long (more information); beginning 'd': directory ls (list) ls: list the files and directories (also called "folders") ls -l: list with long (more information); beginning 'd': directory

mkdir: make new directory (i.e., folder) cd: change (i.e. enter) directory vim: text editor

cp src dest: copy file src to dest diff file1 file2: compare prog2.c is identical to prog.c

diff shows nothing echo "message" >> file: add a line cat -n file: show file with line number

diff shows the difference, with line numbers grep word file: print the lines with this word in the file

rm: remove a file (irreversible) prog2.c has been deleted

mv (move): rename a file redirect output using >> pipe (|): take output from one program

as input of another program

Recently Viewed Presentations

  • Fitting AEM In Your Teacher Ed Program

    Fitting AEM In Your Teacher Ed Program

    Provides SC and AU functionality with one login (your SC login) Requires that the SC send in the NIMAC Limitation of Use Agreement (LUA) Upcoming NIMAC training webinar for Authorized Users: Join us on 3/13/2018 at 2 p.m. ET. NIMAC...
  • Everything's An Argument

    Everything's An Argument

    Purpose of argument. ARGUMENT. To use evidence and reason to discover some version of the truth. Writers or speakers argue to discover some truth. PERSUASION. To change a point of view or to move others from conviction to action. Writers...
  • Hall C Opportunities at 12 GeV Dave Mack

    Hall C Opportunities at 12 GeV Dave Mack

    Hall C Opportunities at 12 GeV Dave Mack (TJNAF) for Steve Wood, Hall C Group Leader Workshop on Hadronic Physics in China and Opportunities with 12 GeV Jlab
  • AIFE, American Institute of Formation Evaluation LLC

    AIFE, American Institute of Formation Evaluation LLC

    Each analysis is derived from the original drill stem test report, not transcribed from scout or field data. The DST data includes permeability, quality codes, drill collar and drill pipe data, incremental detail, HORNER extrapolated pressures and slopes, PMAX, Detailed...
  • Semi-weekly Teleconference

    Semi-weekly Teleconference

    Military - Army Combat Uniform (ACU) / Civilian - Business Casual. ... Exit San Pedro Blvd. Proceed west on service road to Blanco. Turn right (North) on Blanco to next stop light at Lockhill Selma. ... Front Desk. Complimentary Executive...
  • Comparative and Evolutionary Physiology II:

    Comparative and Evolutionary Physiology II:

    1. Evolution of mineralocorticoid and glucocorticoid receptors from an ancestral receptor is an example of: Evolution occurring through gene duplication followed by increase in specificity of function of GRs. Mutations occurring independently, leading to the same amino acid substitutions in...
  • You be the Judge Years 9 and 10 Case Study: Durg Trafficking

    You be the Judge Years 9 and 10 Case Study: Durg Trafficking

    (Vic) says a court must set a non-parole period for any sentence of imprisonment of two years or more, unless it is not appropriate to do so because of the nature of the offence or the past history of the...
  • Humanities Faculty - Harefield Academy

    Humanities Faculty - Harefield Academy

    Homework to be aware of given a booklet to work through time dedicated to design and evaluation of process; set targets for next lesson www.yacapaca.com How can you support learning? familiarise with similar products on the market.