Table A-5File Attributes CommandsCommandPurposechgrpChanges the group associated with (Web servers)
Table A-5File Attributes CommandsCommandPurposechgrpChanges the group associated with a file. chmodChanges a file s permissions. chownChanges who owns a file. fileShows what type of file you re dealing with. statShows some statistics about the file. touchCreates an empty file of this name. wcShows how many words, lines, and so on are in this file. File locatorsWhere, oh, where can my file be? These commands, shown in Table A-6, helpyou locate files in Linux s monster tree-structure file system: Table A-6File Locators CommandsCommandPurposefindHard-core filesystem search tool. locateLighter weight filesystem search tool. whichTells you the path for the program that would be run if youtyped this command. File viewersFile browsing is a favorite pastime of many a system user. These tools pro- vide a variety of utilities for viewing the contents of readable files of all sizes. Unlike using a full-screen editor, you cannot damage the contents of a filewith these commands, shown in Table A-7, because they re read-only tools: Table A-7File ViewersCommandPurposecatDumps the contents of the file to your screen. headShows the first ten lines of a file. (continued) 399Appendix A: Common Linux Commands31_