Day 6 COP 3502 - PowerPoint PPT Presentation

About This Presentation
Title:

Day 6 COP 3502

Description:

Desciption: Creates an alias for a command or shows what alias' exist ... sane - Returns terminal to a 'sane' state which is useful if your editor dies. ... – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 13
Provided by: davidg97
Learn more at: http://www.cs.fsu.edu
Category:
Tags: cop | day | sane

less

Transcript and Presenter's Notes

Title: Day 6 COP 3502


1
Day 6COP 3502
  • David A. Gaitros
  • Department of Computer Science
  • Florida State University

2
Misc Commands
  • alias name 'command'
  • Desciption Creates an alias for a command or
    shows what alias' exist
  • Options name - specifies name of alias
  • command - Command you want the alias used for
  • Examples
  • alias print "lpr -Plov260"ltrgt
  • alias finger "ypcat passwdgrep -i"ltrgt
  • alias copy "cp" ltrgt
  • Demonstration

3
Misc. Commands
  • bc file
  • Desciption Handy desk calculator. Calculate
    numbers in a file or directly entered onto the
    screen.
  • Options file - file that contains the bc
    commands.
  • Examples
  • bc ltrgt 6500 34 / 5 ltrgt
  • Demonstration

4
Misc. Commands
  • cal monthyear
  • Desciption Displays a calendar for a month
    and/or year
  • Options month - specifies a numeric month
  • year - specifies a numeric year
  • Examples
  • cal 2 1955
  • cal 1955
  • Demonstration
  • Note to self calendar program is used for
    appointments. Very primitive method of keeping a
    schedule.

5
Misc. Commands
  • cat filename(s)
  • Desciption Used to show text files. Displays to
    whole with no breaks. It is sometimes used to
    concatenate files together using the redirection
    feature of UNIX
  • Options filename - files you want to display.
  • Examples
  • cat file1 file2 file3 gt file4
  • Demonstration

6
Misc Commands
  • clear
  • Desciption clears the screen. Used a lot. Does
    not affect jobs, just clears the screen of
    clutter.
  • date
  • Desciption Lets you see today's date. Far too
    many options to really talk about right now.
  • time
  • Description Tells you how long it took a command
    to run.

7
Misc Commands
  • echo stuff
  • options stuff - a text string
  • Desciption Echos the text string to standard
    output. Usually used inside a shell script or
    .tcshrc file.
  • Demonstration

8
Misc Commands
  • mesg yn
  • Desciption Lets you control whether other people
    can use the write command to interrupt you with
    on screen messages.
  • Options yn - self explanotory
  • Examples
  • msg n ltrgt
  • Demonstration

9
Misc. Commands
  • sort -b-d-f-f-m-n-r-ufields-o
    outputfile filename
  • Desciption Sorts the lines of a text file. Very
    handy command you may have a need to use. Uses a
    very efficient sorting algorithm.
  • Options -b - ingores spaces
  • -d uses dictionary sort
  • -f ignores capitilization
  • -i ignores non print characters
  • -m merges two files into one
  • -n sorts based on number
  • -r sorts in reversed order
  • -u output same line once
  • fields - file contains fields seperated by tab
    characters.
  • -o outputfile - place results in this filename
  • - filename - file to be sorts.
  • Examples
  • sort -dfro this.out 2 this.int
  • Demonstration

10
Misc. Commands
  • stty charname charsane-tostop-a
  • Desciption Sets the options for your terminal.
  • Options charname - specifies the terminal
    control function you want to see.
  • char - Specifies the key(s) that you want use
    for this terminal control character.
  • sane - Returns terminal to a "sane" state which
    is useful if your editor dies.
  • -tostop - Turns off terminal stop mode.
  • tostop - Turns on terminal stop mode.
  • -a - displays all settings.
  • Examples
  • stty erase 'q'
  • Demonstration

11
Misc. Commands
  • talk user_at_computer
  • Desciption Lets you have a conversation with
    another user by typing messags to each other. Not
    that the command mesg must be turned on for this
    to work.
  • Options _at_computer - use to place the address of
    the use if they are not located on the same
    machine.
  • Examples
  • talk gaitrosd_at_diablo.cs.fsu.edu
  • Demonstration

12
Misc. other commands
  • Vacation -l
  • Description - Automatically responds to incoming
    messages by telling people you are on vacation.
    The -l options stores the names of people who in
    a file called .maillog
  • wall ltrgt stuffltrgt
  • Description - Displays a message on the screen
    of every user on the system. You should never use
    this. Command is disabled in our system.
Write a Comment
User Comments (0)
About PowerShow.com