UNIX Seminar - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

UNIX Seminar

Description:

ls -alu List of the content the current directory. Similar to DOS's dir ... permission on a file, say test.txt to readable/writable/executable by everyone? ... – PowerPoint PPT presentation

Number of Views:93
Avg rating:3.0/5.0
Slides: 15
Provided by: Butt45
Category:
Tags: unix | seminar | writable

less

Transcript and Presenter's Notes

Title: UNIX Seminar


1
UNIX Seminar
IEEE UBC Branch
Presented by Iris Wu Erin Lim
.
2
Start with Dilbert
3
Why UNIX?
  • 1. You already know NT
  • 2. CPSC 252 Assignments Projects
  • 3. Long term benefits
  • - JOBS 90 high-tech companies in lower
    mainland use UNIX as their primary operating
    system!!
  • -They WILL ask you questions on UNIX

4
UNIX environment
  • 1. Common Desktop
  • Some typing
  • Most similar to NT
  • 2. Open Windows
  • Lots of typing
  • 2. Command Line
  • All typing

5
Directory File Commands
  • ls -alu List of the content the current
    directory. Similar to DOSs dir command gt ls
    al
  • mkdir Create a directory gtmkdir dirname
  • rmdir remove a directory gt rmdir dirname
  • cd   change current directory gtcd pathname
  • mv -rp move/rename a file or directory gt mv
    source target

6
Directory File Commands
  • cp -rp copy a file gt cp source target
  • rm -irf remove a file or directory gtrm i file
  • gtrm rf subdirectory
  • chmod -R change the read/write/execute/ permssion
    on a file or directory gtchmod mask file
  • pwd   display current directory gt pwd  

7
Print Commands
  • lpr -P print a file to the printer specified
    by the P flag gtlpr Pprintername filename
  • lprm -P jobnumber dequeue a print job from the
    printer specified by the P flag gtlprm
    Pprintername jobname
  • lpq -P display the jobs queue of the printer
    specified by the P flag gtlpq Pprintername
  • Note The printer in the 3rd floor lab is ntx
  • gtlpq Pntx (shows all the jobs on ntx)

8
Other Commands
  • More display contents of a file on the screen gt
    more textfile
  • man  show the help manual for a specific
    command gt man command-name
  • history  display a list of previously typed
    command gt history

9
Quiz Time!
  • Display current directory?
  • Move a file from one dir to another?
  • What command is used for changing the permission
    on a file, say test.txt to readable/writable/execu
    table by everyone? (Full command with the option
    that should be used)

10
More advanced command for Coding
  • diff difference between two text files gt diff
    filename1 filename2
  • grep -in check the existence of a particular
    string within a file or group of files gtgrep in
    "string" file_list
  • ping check the current status of a workstation,
    server, or printer gt ping IP or name
  • time time a process gt time command

11
Useful Applications
  • Surfing gtnetscape
  • Email (for ece) gtpine
  • Lecture Notes in .pdf format gtacroread filename

12
Cheating Machine Stealing
  • rlogin ltfaster-machines name OR IP addressgt
  • setenv DISPLAY ltyour machines namegt0.0
  • Now you can do your work on his/her machine
    UN-NOTICED

13
Advanced Commands
  • Erins stuff

14
CONGRATULATIONS
  • YOU ARE NOW A CERTIFIED UNIX GURU
Write a Comment
User Comments (0)
About PowerShow.com