Linux and Eclipse - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Linux and Eclipse

Description:

Linux * Linux Operating System Lets the ... Change it to something you can remember Question What Linux command would you use to move a file called Hello.java ... – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 14
Provided by: Jack3176
Category:

less

Transcript and Presenter's Notes

Title: Linux and Eclipse


1
Linux and Eclipse
8/25 8/26
2
Access to Labs
  • You should be able to get into the labs in Engr
    213 214
  • Go to the CS office, MEC302J, if you cant get
    in.

3
Goals
  • Intro to Linux
  • I'll show you how to write another program using
    eclipse.
  • You'll write a Java program that outputs your
    favorite quote.
  • Put your name in the comments in the program

3
4
Linux Operating System
  • Lets the user manage files and programs.
  • Can interact through bash shell
  • Get a shell by right-clicking on the desktop and
    selecting Konsole
  • Many layers of shells in system.

4
5
Linux Operating System
  • Basic command format
  • Command -options args
  • Examples
  • ls
  • ls -l
  • ls -l p

5
6
Java and eclipse
  • We'll use eclipse to write programs.
  • There are a lot of other editors you could use.
  • On onyx get to eclipse from command line
  • eclipse command

7
Edit and Execute a Program(Class)
  • Create project for your program.
  • New?Java Project
  • Just use the default package.
  • Create a Java class.
  • Press the (C) button to create a class.
  • Edit the program.
  • Save the class, which also compiles it.
  • To execute the program, right-click on the
    editing area.

8
Change Your Password
  • The command is passwd
  • In the lab first do ssh -Y onyx
  • You will have to see me to change it, if you
    forget it.
  • Change it to something you can remember

9
Question
What are the steps to writing a Java program,
assuming you are logged in and you have opened a
konsole?
10

Linux
10
11
More Linux Commands
  • mkdir make directory
  • cd change directory
  • echo echos a line. Use to make a file.
  • cat lets you see a file's contents.
  • cp file1 file2 copies file1 to file2
  • mv file1 file2 renames file1, as file2
  • rm file removes a file
  • mv file1 directoryA moves file1 to directoryA

11
12
More Linux Commands
  • cd .. - change to directory above
  • rmdir remove directory, must be empty

12
13
Question
What Linux command would you use to move a file
called Hello.java into a directory called myStuff?
Write a Comment
User Comments (0)
About PowerShow.com