Lets Learn Linux - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Lets Learn Linux

Description:

9/18/09. CSCI 1100. 1. Let's Learn Linux. It's actually the bash shell but no ... Time to hack! Use tab to help you type out the following. ls /var/log/apache ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 15
Provided by: Office2004364
Category:
Tags: hack | learn | lets | linux

less

Transcript and Presenter's Notes

Title: Lets Learn Linux


1
Lets Learn Linux
  • Its actually the bash shell but no one is
    listening

2
Open Putty
  • Putty - telnet/ssh client
  • What is that?
  • Host - torch.cs.dal.ca
  • Login
  • Forget your password?
  • See Help Desk

3
What do you remember?
  • What do the following commands do
  • ls
  • pwd
  • man ltcommandgt
  • eg man ls
  • cd ltpathgt
  • cd public_html
  • cd ../
  • cd .

4
Stuff you might have seen
  • mkdir playpen
  • cd playpen
  • touch a
  • mv ltsourcegt lttargetgt
  • mv a hello.java
  • ls -al
  • pico hello.java
  • Make a Java program that says Hello World
  • javac hello.java
  • java hello

5
Lets Review
  • What did we just do?
  • What is pico?
  • What did javac do?
  • What did java do?
  • What does ls and ls -al do?
  • What is cd? ../? .?

6
Enter the dragon
  • history
  • !ltnumber of commandgt
  • !3
  • more hello.java
  • wc hello.java
  • tail hello.java
  • ls /users/cs/ more

7
What was that ?
  • What is happening with
  • Time to hack!
  • Use tab to help you type out the following
  • ls /var/log/apache/
  • more /var/log/apache/access_log
  • space to see more, q to stop
  • tail /var/log/apache/access_log
  • tail -f /var/log/apache/access_log grep
    ltusernamegt
  • Start browsing your Wordpress site

8
Sweet how do I turn it off?
  • ctrl c
  • kills the current command
  • who
  • top
  • finger ltusernamegt
  • ps -u ltusernamegt

9
Lets Review
  • What does history do?
  • What does more do?
  • What does do?
  • How do you stop a command?
  • How do you move through the output of a more
    command?

10
The stick of pain
  • Be careful
  • touch dontDelete.me
  • ls
  • rm dontDelete.me
  • ls
  • mkdir ImAfOldEr
  • rm ImAfOldEr
  • rm -rf ImAfOldEr
  • ps -u ltusernamegt
  • kill -9 ltpidgt
  • kill -9 -1

11
Make backups n00b
  • cp hello.java hello.java.bak
  • more hello.java.bak
  • diff hello.java hello.java.bak
  • cp -r public_html website_backup

12
You have been a good class
  • You have learned some basics using bash
  • interface to Unix / Linux
  • If you are comfortable, use torch instead of Java
    Room
  • Download / Upload files with WinSCP
  • Use tab to auto complete commands
  • Learn VIM (Improved VI)
  • If you have an old computer - install Linux and
    redo this tutorial at home

13
Questions for Me
14
Questions for You!
  • How do you compile a Java program?
  • How do you run a Java program?
  • How do you edit a file?
  • How do you find out who is online?
  • How do you get and put files on torch?
  • What does kill -9 -1 do?
  • What does rm -rf / do?
  • What is apache?
  • Where do you put files on torch so they can be
    viewed on the Web?
  • What permissions must be set on those files?
Write a Comment
User Comments (0)
About PowerShow.com