240 Part II . Getting Around in Linux (Web space)
Monday, September 17th, 2007240 Part II . Getting Around in Linux Table 6-5 (continued) Option Use -v Displays version information and exits. -z Attempts to examine the contents of compressed files. -n Flushes stdout after checking a file. This can be useful when working with a list of files that are being sent to another command. Some example uses of the file command and its options follow. In the first example, the *wildcard is used, so the command examines all the files in the pwd. # file * alphanames: ASCII text list: ASCII text morestuff: directory nameslist: ASCII text newstuff: directory nicks: ASCII text oldstuff: directory readmes: English text In the following example, the filename isn t included with the output: # file -b /etc/lilo.conf ASCII text In the following example, the file command is used to examine the contents of a compressed file: # file -z /usr/info/tar.info.gz /usr/info/tar.info.gz: English text (gzip compressed data, deflated, last modified: Wed Dec 31 19:00:00 1969, max compression, os: Unix) Changing file time stamp The touch command allows you to change the time stamp on a file. If a filename is specified, but that file doesn t exist, an empty file is created with that name. The options available for use with the touch command are covered in Table 6-6.
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.