All data in UNIX is organized into files. All files are organized into directories. These directories are organized into a tree-like structure called the filesystem.
 
Basically Unix consists of three Types of Files :

  1.       Ordinary Files.
  2.       Directories.
  3.       Special Files.
Ordinary Files:  An ordinary file is a file on the system that contains data, text, or program instructions.


Directories:  Directories store both special and ordinary files. For users familiar with Windows or Mac OS, UNIX directories are equivalent to folders.

Special Files:  Some special files provide access to hardware such as hard drives, CD-ROM drives, modems, and Ethernet adapters. Other special files are similar to aliases or shortcuts and enable you to access a single file using different names.

Below command used to list the files and directories stored in the current directory

Syntax :  ls [flag] [string or filename]

Example : ls
Lists all the files in the Current directory. 


Previous     Next