The File. Below Is The Description of All Type of Files
The File. Below Is The Description of All Type of Files
Ordinary Files − An ordinary file is a file on the system that contains data, text, or program
instructions. In this tutorial, you look at working with ordinary files.
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.
Linux Command
EXAMPLE
$ls
$ls -l
-rw-rw-r--. 1 vivekaadiv vivekaadiv 8 Mar 20 16:44 f.txt
First Column − Represents the file type and the permission given on
the file. Below is the description of all type of files.
Third Column − Represents the owner of the file. This is the Unix user
who created this file.
Fourth Column − Represents the group of the owner. Every Unix user
will have an associated group.
Sixth Column − Represents the date and the time when this file was
created or modified for the last time.
$ cp source_file destination_file
EXAMPLE
4)
Renaming Files
To change the name of a file, use the mv command. Following is the basic
syntax −
$ mv old_file new_file
The following program will rename the existing file filename to newfile.
$ mv filename newfile
$
The mv command will move the existing file completely into the new file. In
this case, you will find only newfile in your current directory.
Deleting Files
To delete an existing file, use the rm command. Following is the basic syntax
−
$ rm filename
Linux is one of popular version of UNIX operating System. It is open source
as its source code is freely available. It is free to use. Linux was designed
considering UNIX compatibility. Its functionality list is quite similar to that
of UNIX.
Kernel − Kernel is the core part of Linux. It is responsible for all major
activities of this operating system. It consists of various modules and it
interacts directly with the underlying hardware. Kernel provides the required
abstraction to hide low level hardware details to system or application
programs.
Basic Features
Following are some of the important features of Linux Operating System.
Architecture
The following illustration shows the architecture of a Linux system −
The architect