On Windows, we have any configurations saved either in files or in registry.
But on Linux/Unix, everything saves in files only.
For instance, When a new account to be created.
Admin will create
Background, the configuration will be saved into File System.
Unix File Management
The Linux File System contains below set of predefined folders.
But on Linux/Unix, everything saves in files only.
For instance, When a new account to be created.
Admin will create
- User ID (unique)
- Password
Background, the configuration will be saved into File System.
- Sets environment variable for the Shell.
- Login Scripts (runs as soon as logs in every time.)We can set some values here.
Unix File Management
- All data in Unix is oraganised into files.
- All files are organised into directories.
- These directories are organized into tree like structure called the file system.
- Ordinary files = contains data,text or program instructions.
- Directories - stores both special and ordinary files.
- Special files - files provide access to hardware such as hard drives,CD-ROM drives,modems and Ethernet adapters.
- There is no file extension concept in Linux.
- Root (/) is at the top.
- Home Directory : FOr every user a directory is there which contains user specific files and permissions.
- To goto Home directory : cd ~
- pwd : present/current working directory.
The Linux File System contains below set of predefined folders.
Directory | Description |
---|---|
/ | Root Directory.Like c:\ in windows.No Logical drives like for windows here.They loaded as separate sub-folders. |
/bin | Contains executable files.Some will be at /usr/bin also |
/dev | Contains device drivers. |
/etc | Contains System related confiuration files |
/lib | Contains shared library and kernel related files |
/proc | All process related info or dynamic info of the system |
/tmp | Hold temporary files |
/var | Contains variable length files such as log files |
/sbin | Contains binary for system administration |
/mnt | Used to mount temporary file system like CDROM |
/home | Home directory for user accounts.Separate subfolder will be created for each user |
No comments:
Post a Comment