Chapter Summary

   

In this chapter, you learned operations performed on files and directories. Creating, deleting, and displaying are basic operations on files. You learned how to create, delete, and change directories. Rules related to file names were also presented in this chapter. Basic rules are that file names are not longer than 256 characters and all letters and numbers can be used. Now you also know that file names in HP-UX are case sensitive. You copied and moved files from one place to another in the HP-UX directories with the cp and mv commands. The mv command was also used to rename files.

Operations on multiple files can be performed using the wildcards asterisk ( * ) and question mark ( ? ), and square brackets can be used to specify character ranges. You learned how to determine the type of a file with the file command. The grep command was used to find a text pattern inside a text file. During this process, you can also specify search criteria. Based on this criteria, you can use the grep command to find a string at the start or end of a line. You can also perform case-insensitive searches. Finding files in a system with the find command was also covered in this chapter. Other than this, you have also learned how to count characters, words, and lines of a text file with the wc command and how to display first and last lines using the head and tail commands, respectively. You have also seen how to create link files.

Commands presented in this chapter are very basic and important for handling files and directories on HP-UX and need some practice to get used to. At the same time, you need to be careful about some commands that can delete your files without giving any warning message.


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net