






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







**1. Open-source,
Linux is an open-source operating system , which means its source code is freely available to everyone. Users and developers can view the source code and understand how the operating system works. Developers can modify, improve, and distribute the source code according to their requirements. Example: A developer can modify Linux to create an operating system specially designed for servers or security purposes.
One of the major features of Linux is that it is free to use. Linux distributions can be downloaded , installed , and used without purchasing for an operating system license. Linux is a good choice for students, individuals, businesses, and organizations that want to reduce software costs. Example: A student can install Ubuntu on a computer without purchasing an operating system license.
Linux is well known for its security and stability.
It provides a strong user permission and file permission system. This also provides an additional layer for security. Linux is also very stable and can run for long time without restarting. Example: Many web servers and database servers use Linux because it can stable while running services for a long time.
Linux supports multiple users , which means more than one user can access and use the system and its resources. Each user can have their own files, settings, and permissions. Linux is also a multitasking operating system. It can run many programs and processes at a same time. For example, a user can browse the internet, listen to music, download a file, and run another application at the same time.
Linux is highly customizable and flexible. Users can change many parts of the operating system according to their requirements. Users can customize the desktop environment, themes, icons, system settings, applications, and other features. Users can also choose a Linux distribution based on their needs.
echo "Hello from Zsh Shell"
3. Dash (Debian Almquist Shell): It is lightweight and fast and is optimized for shell scripting. Ubuntu and Debian use Dash as their default shell for scripts. It is mainly designed for script execution rather than interactive use. It executes scripts faster than Bash. It is useful for boot and system-level scripts. It does not support many Bash features such as arrays and [[...]] syntax. Example: dash echo "This script runs faster with Dash"
Application layer contains user programs and applications. These programs run on top of Linux OS. Examples: Firefox, VS Code.
Shell acts as a bridge between the user and kernel. It accepts commands from the user. It sends the commands to the kernel. It shows the result to the user. Examples: Bash and Zsh.
System utilities are commands and tools used to manage Linux. They help users perform different commands. Examples: cp, mv, top, ifconfig. They are used for files , processes , and network management.
It helps applications communicate with the kernel. They provide ready-made functions for programs. GNU C Library (glibc) is an important library used in Linux systems. It handles system calls , memory , processes , and files.
“A file in Linux is a container used to store data, programs, or information .“ Linux supports different types of files for storing and managing data.
These files contain readable text. You can open and edit them using text editors like nano , vim , or gedit. Examples: o Notes or documents : notes.txt o Code files: script.sh Example: cat file.txt # Show the content of a text file
These files contain only computer-readable data , not for humans. They are used by programs or the system. You cannot read them properly. They may appear as random symbols. Examples: o Program files: /bin/ls o Images or videos: image.jpg, video.mp Example: file /bin/ls # Tells you it is a binary (executable) file
These are special types of files. They help the system communicate to hardware. There are a few types of special files: A) Device Files : Found in /dev/ folder. Used to connect with hardware like USB drives, hard disks, etc. Two kinds: o Character devices – transfer data one character at a time, e.g., keyboard. o Block devices – transfer data in chunks, e.g., hard drive. Example: /dev/sda1 # a block device (like a hard drive partition) B) Named Pipes (FIFOs) : Help programs send data to each other. Think of it like a one-way tube: one program sends, and the other receives. Example : mkfifo mypipe # creates a pipe file c) Symbolic Links (Shortcuts) : These are shortcuts to other files. Like a shortcut on your desktop that opens a file in another location. Example : ln -s real_file.txt shortcut.txt
Binary files are commonly used for executable programs, images, videos, and other data that is processed by computer programs. Linux executable files and many multimedia files are examples of binary files.
/bin/ls /usr/bin/python image.jpg video.mp The file command can be used to identify the type of a binary file.
file /bin/ls This command provides information about the type of /bin/ls.
Special files are files that represent devices, communication mechanisms, or other system resources. They help the operating system and programs interact with hardware and communicate with other processes. The main types of special files are:
o Device files are mainly stored in the /dev directory and represent hardware devices. Character Device: Handles data character by character. Block Device: Handles data in blocks. Storage devices such as disks are examples.
o Named pipes are special files used for communication between processes. One process can write data and another process can read it. o FIFO stands for First In, First Out.
o A symbolic link is a special file that points to another file or directory. o It works like a reference or shortcut to the original file or directory.
o Sockets are special files used for communication between processes. o They can be used for communication on the same computer or over a network.
The file command is used to identify the type of a file. file filename The ls -l command also shows the file type at the beginning: Symb ol File Type Example