Intro to unix commands
This presentation is the property of its rightful owner.
Sponsored Links
1 / 6

Intro. To Unix commands PowerPoint PPT Presentation


  • 90 Views
  • Uploaded on
  • Presentation posted in: General

Intro. To Unix commands. For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings of Unix Take Operating Systems – CSCI-4210 Comparisons to Windows/DOS commands. What are the machines?.

Download Presentation

Intro. To Unix commands

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Intro to unix commands

Intro. To Unix commands

  • For those who’ve never used Unix before

  • Quick tutorial to let you move around your Unix Accounts

  • No discussion of inner workings of Unix

    • Take Operating Systems – CSCI-4210

  • Comparisons to Windows/DOS commands


What are the machines

What are the machines?

  • rcs.rpi.edu – takes you to a random OS

  • rcs-sun1.rpi.edu – takes you to a Sun machine

  • rcs-ibm1.rpi.edu – takes you to an IBM machine

    There are others, but these should be more than enough for this course.

If you’re on campus, you must use SSH (instead of Telnet) to connect to these machines. Download TeraTerm SSH or SecureCRT


Very basics

Very basics

  • ‘ls’ - get directory listing

    • DOS: ‘dir’

  • ‘ls –l’ – get long file listing

  • ‘cd’ – change directory

  • ‘mkdir’ – make directory

    • DOS: md

  • ‘rm’ – remove a file

    • DOS: ‘del’

  • ‘rmdir’ – remove directory


More basics

More basics

  • ‘more’ – contents of a file

    • DOS: ‘type’

  • ‘cp’ – copy a file

    • DOS: ‘copy’

  • ‘mv’ – move a file

    • DOS: ‘move’


Chmod

chmod

  • Change mode (permissions) of file/directory

  • using ‘ls –l’, 10 fields of information

  • ex: drwxrw-r—

  • first position: ‘d’ (directory) or ‘-’ (file)

  • next three: user permissions:

    • ‘r’ – read permissions

    • ‘w’ – write permissions

    • ‘x’ – Execute permissions

  • next three: group permissions

  • last three: world permissions


Chmod continued

chmod continued

  • permissions are represented as octal numbers

  • rwxrwxrwx = 111 111 111 = 777

  • rwxrw-r-- = 111 110 100 = 764

  • rw------- = 110 000 000 = 600

  • etc.

  • chmod mode file

  • ex: chomd 755 script.plx

    • Give yourself all permissions, group and world read and execute permissions


  • Login