Day 6 COP 3502 David A. Gaitros Department of Computer Science Florida State University
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" alias finger "ypcat passwd|grep -i" alias copy "cp" Demonstration:
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 6500 * 34 / 5 Demonstration:
Misc. Commands cal [month][year] Desciption: Displays a calendar for a month and/or year Options: month - specifies a numeric month year - specifies a numeric year Examples: cal cal 1955 Demonstration: Note to self: calendar program is used for appointments. Very primitive method of keeping a schedule.
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 > file4 Demonstration:
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.
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:
Misc Commands mesg [y|n] Desciption: Lets you control whether other people can use the write command to interrupt you with on screen messages. Options: [y|n] - self explanotory Examples: msg n Demonstration:
Misc. Commands sort [-b][-d][-f][-f][-m][-n[-r][-u][+fields][-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:
Misc. Commands stty [charname char][sane][[-]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:
Misc. Commands talk 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. - use to place the address of the use if they are not located on the same machine. Examples: talk Demonstration:
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 stuff Description - Displays a message on the screen of every user on the system. You should never use this. Command is disabled in our system.