1 / 12

Day 6 COP 3502

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

jeanne
Download Presentation

Day 6 COP 3502

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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"<r> alias finger "ypcat passwd|grep -i"<r> alias copy "cp" <r> 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 <r> 6500 * 34 / 5 <r> Demonstration:

  4. 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 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 > 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 [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 <r> Demonstration:

  9. 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:

  10. 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:

  11. Misc. Commands talk user[@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: @computer - use to place the address of the use if they are not located on the same machine. Examples: talk gaitrosd@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 <r> stuff<r> Description - Displays a message on the screen of every user on the system. You should never use this. Command is disabled in our system.

More Related