March 2002
Beginner
504 pages
10h 47m
English
UNIX files can contain important data and executable programs or they can represent devices, directories, or pointers to other files. This section looks at the different types of files available under UNIX.
You can determine a file's type by using the -l option of the ls command. When this option is specified the output of ls contains a file's type and its attributes in addition to its name. For example, the command
$ ls –l /home/ranga/.profile
produces the following output:
-rwxr-xr-x 1 ranga users 2368 Jul 11 15:57 .profile*
As you can see, the very first character in the output is a hyphen (-). This indicates that this is a regular file. For special files, the first character is one of the letters given ...
Read now
Unlock full access