|
UNIX Shells by Example Authors: Quigley E. Published year: 2004 Pages: 390-395/454 |
| < Day Day Up > |
tar ”stores and retrieves files from an archive file, normally a tape devicetar [ ] crtux [ bBefFhilmopvwX0134778 ] [ tarfile ] [ blocksize ] [ excludefile ] [ I includefile ] filename1 filename2 . . . C directory filenameN ... Example A.57.1 tar cvf /dev/diskette 2 tar tvf /dev/fd0 3 tar xvf /dev/fd0 EXPLANATION
|
| < Day Day Up > |
| < Day Day Up > |
tee ”replicates the standard outputtee [ ai ] [ filename ] tee copies the standard input to the standard output and one or more files, as in lstee outfile . Output goes to screen and to outfile . Example A.58.date tee nowfile EXPLANATION The output of the date command is displayed on the screen and also stored in nowfile . |
| < Day Day Up > |
| < Day Day Up > |
telnet ”communicates with a remote hostExample A.59.telnet necom.com EXPLANATION Opens a session with the remote host necom.com . |
| < Day Day Up > |
| < Day Day Up > |
test ” evaluates an expressiontest evaluates an expression and returns an exit status indicating that the expression is either true (0) or false (not zero). Used primarily by Bourne and Korn shell for string, numeric, and file testing. The C shell has most of the tests built-in. Example A.60.1 test 5 gt 6 2 echo $? ( Bourne and Korn shells) (Output is 1, meaning the result of the test is not true.) EXPLANATION
|
| < Day Day Up > |
| < Day Day Up > |
time ”displays a summary of time used by this shell and its children |
| < Day Day Up > |
| < Day Day Up > |
timex ”times a command; reports process data and system activitytimex [ o ] [ p [ fhkmrt ] ] [ s ] command The given command is executed; the elapsed time, user time, and system time spent in execution are reported in seconds. Optionally, process accounting data for the command and all its children can be listed or summarized, and total system activity during the execution interval can be reported . The output of timex is written on standard error. |
| < Day Day Up > |
|
UNIX Shells by Example Authors: Quigley E. Published year: 2004 Pages: 390-395/454 |
![]() UNIX and Linux System Administration Handbook (4th Edition) | ![]() Perl by Example (4th Edition) | ![]() Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) | ![]() Unix Shell Programming (3rd Edition) |
![]() UNIX and Linux System Administration Handbook (4th Edition) | ![]() Perl by Example (4th Edition) |
![]() Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) | ![]() Unix Shell Programming (3rd Edition) |