File Management in UNIX
Most of us are frequent users of the Windows Operating system, of which Windows 7 version is the latest one and is a hit among computer users. We can not even think of any other operating system which provides working with so much ease. With an easy operating interface, thousands of customization options, GUI (Graphical User Interface) and many more options, Windows has definitely made our life easier.
However, even after so many years of development, buying an original copy of Windows can bury a hole in your pocket. Not all people can manage buying an original copy of windows. That’s the sole reason why most of the population ends up using pirated copies of the same. How to end this piracy?
The simple solution is provision of an equivalent (or nearly equivalent) operating system which provides same customization options as that of Windows, at a reasonable rate or free of cost at its best? UNIX/Linux is the best option that companies have provided. Totally free of cost, with source code being developed at a stupendous rate by a worldwide community of developers; UNIX is a recent hit.
But using UNIX may not be as simple as that of the Windows; and for some, it may be a daunting task.
But making file management easier, are a set of following points to be kept in mind –
Representation of devices in UNIX?
The golden rule of UNIX is that everything is considered to be a file. Thus, all the devices connected to a UNIX system are considered to be files. These special files are located in the /dev directory, so that it can be named and accessed in a uniform manner. They are different from a regular file, which is just a ordinary data file in the disk. However, these special files are stored with some characteristics so that it can behave similar to a disk.
Representation of directory in UNIX
Directories in UNIX are also files which contain a correspondence link between the file names and the inodes. These files are maintained by the kernel and can only be modified by it. The directory file contains only a list of files and the corresponding inode value. A directory can also be accessed through two relative modes – the ‘.’ Representing the current directory, while the symbol ‘..’ representing the parent directory.
UNIX system calls for I/O –
- open – to open a file
- creat – to create a file
- close – to close an open file
- read – to read data from an open file
- write – to write data to an open file
- lseek – to position an open file
- dup – to duplicate an existing file descriptor
Links and symbolic links in UNIX
Links in UNIX can be considered to be a secondary name for a file. It is used to assign a different name to a file, but the same is not possible for a directory. On the other hand, the symbolic link is a file which contains the name of the linked file.
Following these simple steps will make UNIX file management easier.
Understanding the UNIX file system helps in better understanding of your website administration, and with Bounceweb Hosting, it becomes even easier.
Leave a Reply
You must be logged in to post a comment.