11.07.2015 Views

Parlante's Unix Programming Tools - Faculty.rmc.edu

Parlante's Unix Programming Tools - Faculty.rmc.edu

Parlante's Unix Programming Tools - Faculty.rmc.edu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16Miscellaneous Commandscat filePrint the contents of file to standard outputmore fileSame as cat, but only a page at a time (useful for displaying)less fileSame as more, but with navigability (less is more)wpsjobsFind out who is on the system and what they are doingList all your currently active processesShow jobs that have been suspendedprogram&Runs program in the backgroundctrl-zSuspend the current program% Continue last job suspended, or use fg (foreground)% number Continue a particular jobkill process-idkill -9 processgrep exp fileswc filescriptlpr filelpr -Pinky fileKill a processKill a process with extreme prejudiceSearch for an expression in a set of filesCount words, lines, and characters in a fileStart saving everything that happens in a file. type exit when donePrint file to the default printerPrint file to the printer named inkydiff file1 file2 Show the differences between two filestelnet hostname Log on to another machinesource fileExecute the lines in the given file as if they were typed to the shellGetting Helpman subjectman -k keywordRead the manual entry on a particular subjectShow all the manual pages for a particular keywordHistoryhistoryShow the most recent commands executed!! Re-execute the last command!numberRe-execute a particular command by number!stringRe-execute the last command beginning with string^wrong^right^ Re-execute the last command, substituting right for wrongctrl-PScroll backwards through previous commandsPipesa > ba >> ba >& ba < ba | bRedirect a's standard output to overwrite file bRedirect a's standard output to append to the file bRedirect a's error output to overwrite file bRedirect a's standard input to read from the file bRedirect a's standard output to b's standard input

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!