Linux Practical
Linux Practical
In Linux, file types are determined by the file format and the file's metadata, rather than by its
extension. Some common file types in Linux include:
1. Regular file
2. Directory
3. Symbolic link (or symlink)
4. Block special file
5. Character special file
6. Named pipe
7. Socket.
2. super user
Is a root user like working as same in windows admin.
3. Shell scripting
Shell scripting is a way of writing scripts in the shell, which is a command-line interface for
interacting with the operating system. In Linux, shell scripts are used to automate tasks, such as
setting up a development environment, automating backups, and performing system
maintenance.
A shell script is a text file that contains a series of commands that are executed in order. The
script can include various shell commands, utilities, and programming constructs, such as loops,
conditional statements, and functions.
bash
touch filename
This will create a new, empty file with the specified name. If the file already exists, the touch
command will update the modification time of the file.
5. how to create directory
In Linux, you can create a new directory using the mkdir (make directory) command. The basic
syntax for creating a new directory is:
mkdir directory_name
6. Linux vs unix
Unix is a well-established, proprietary operating system designed for servers and workstations,
while Linux is a general-purpose, open-source operating system with a large community of
developers and users.
7. LILO
LILO was used to load the Linux kernel into memory and start the operating system. It was also
used to boot other operating systems, such as DOS, Windows, and BSD, by creating a boot menu
that allowed the user to choose the operating system to boot.
8. HYPERVISER
A hypervisor, also known as a virtual machine monitor, is software that enables virtualization.
9. LINUX VS WINDOWS
Linux is a Unix-like operating system that is based on the open-source model, while Windows is
a proprietary operating system developed by Microsoft.
Linux is considered to be more secure than Windows
Linux is open-source software and is typically free to download and use, while Windows requires
a license, which can be expensive, especially for the latest version of the operating system.
10. TC Shell
Tcsh provides a flexible and powerful shell environment that offers many of the advanced
features and functionality of other shells, while still maintaining the familiarity and simplicity of
the original C shell.
Apache is highly configurable and can be optimized for specific performance needs. Its large
user community and extensive documentation make it a popular choice for web server
deployments.
17. What is the difference between open source and free software?
Open source and free software are related concepts but they are not exactly the same. Open
source refers to the license of a software that allows its source code to be freely available to the
public, enabling anyone to view, modify, or distribute the code. Free software, on the other
hand, refers to software that can be used, studied, and modified without any restrictions or
limitations and also without paying any fees. Free software also includes the freedom to
distribute and make derivatives of the software. In other words, open source is a type of
licensing that can be applied to software, while free software is a philosophy about the users'
rights to control the software they use.
LILO is an acronym for "LInux LOader" and was a boot loader for the Linux operating system.
It was used to load the Linux kernel into memory and then pass control to it.
GRUB is an acronym for "GRand Unified Bootloader" and is a more recent and widely used
boot loader for Linux. It supports booting multiple operating systems and provides a menu-
based interface for choosing which operating system to boot.