
tftp | 471
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-nt Is file1 newer than file2? Check modification date, not creation
date.
-ot Is file1 older than file2? Check modification date, not creation
date.
-ef Do the files have identical device and inode numbers?
String tests
The syntax for string tests is test option string or test string1 [!]=
string2.
-z Is the string 0 characters long?
-n Is the string at least 1 character long?
string1 = string2
Are the two strings equal?
string1 != string2
Are the strings unequal?
Expression tests
Note that an expression can consist of any of the previous tests.
(expression)
Is the expression true?
! expression
Is the expression false?
expression -a expression
Are the expressions both true?
expression -o expression
Is either expression true?
Integer tests
The syntax for integer tests is test integer1 option integer2. You may
substitute -l string for an integer; this evaluates to string’s length.
-eq Are the two integers equal?
-ne Are the two integers unequal?
-lt Is integer1 less than integer2?
-le Is integer1 less than or equal to integer2?
-gt Is integer1 greater than integer2?
-ge Is integer1 greater than or equal to integer2?
tftp
tftp [options] [host [port]] [-c command]
User interface to TFTP (IPv4 Trivial File Transfer Protocol), which
allows users to transfer files to and from a remote