Unix UNIT 1
Unix UNIT 1
Features of UNIX ::
Multiuser Capability: Unix supports multiple users simultaneously, each with their
own set of permissions and processes, making it ideal for environments where many
people need to use the same system.
Security and Permissions: Unix provides a robust security model with file
permissions (read, write, execute) for user, group, and others, along with various
security features like user authentication and access control.
Hierarchical File System: Unix uses a hierarchical file system structure with
directories and subdirectories, providing a clear and organized way to manage
files.
Pipes and Redirection: Unix allows the output of one command to be used as the
input for another command (piping) and supports input/output redirection, which
enhances the flexibility and power of command-line operations.
Tools and Utilities: Unix includes a rich set of standard utilities and tools for
text processing, system management, programming, and networking, making it highly
versatile for various tasks.
Networking: Unix has built-in support for networking, including protocols like
TCP/IP, enabling seamless communication over networks and the internet.
Modularity and Extensibility: Unix's modular design allows users to combine small,
simple programs to perform complex tasks, and its extensibility makes it easy to
add new functionality.
Definition::
Internal Command: Internal commands are built into the shell itself. When you
execute an internal command, the shell interprets and executes it directly without
calling any external program or process. These commands are part of the shell's
executable code and are always available when the shell is running.
External Command: External commands are not built into the shell. They are separate
executable files stored on disk. When you execute an external command, the shell
searches the directories listed in the PATH environment variable to find the
corresponding executable file and then launches a new process to run it.
Examples-
Internal Commands:
cd (change directory)
echo (display message)
pwd (print working directory)
External Commands:
Differences--
Execution:
Location:
Internal Command: Part of the shell's binary; no separate file on the filesystem.
External Command: Resides as a separate executable file on the filesystem.
Speed:
Internal Command: Generally faster since they do not require the overhead of
starting a new process.
External Command: Slower due to the additional overhead of locating the executable
file and starting a new process.
Availability:
Customization: