Module 1 Linux History and Commands by Shakti Singh
Module 1 Linux History and Commands by Shakti Singh
Module 1 Linux History and Commands by Shakti Singh
Linux was created by Linus Torvalds in 1991 as a free and open-source operating system. It was based on
the Unix operating system, which was developed at Bell Labs in the 1970s. Torvalds began working on
Linux as a hobby while studying computer science at the University of Helsinki in Finland.
Torvalds was inspired by Minix, a Unix-like operating system developed by Andrew S. Tanenbaum. He
wanted to create an operating system that was similar to Unix but was more accessible and affordable
for individual users.
The GNU Project, launched by Richard Stallman in 1983, played a significant role in the development of
Linux. Stallman created a collection of free software tools and utilities that could be used to build a
complete operating system. Many of these tools were used by Torvalds in the development of Linux.
The first version of Linux, version 0.01, was released on September 17, 1991.
Linux is based on Unix but is not the same as Unix. Unix is a proprietary operating system developed by
AT&T Bell Labs in the 1970s, while Linux is a free and open-source operating system developed by Linus
Torvalds in the 1990s.
Linux is known for its stability, security, and flexibility. It is also highly customizable and can be used on a
wide range of hardware platforms.
Linux has evolved significantly since its initial release in 1991. It has become one of the most popular
operating systems in the world, powering everything from smartphones to supercomputers. It has also
been adapted for use in a wide range of industries, including finance, healthcare, and education.
8. What is the role of the Linux community in the development of the operating system?
The Linux community plays a critical role in the development of Linux. It is made up of thousands of
developers, testers, and users who contribute to the code base, provide support, and help to promote
the use of Linux around the world. The community is known for its collaborative and inclusive approach
to software development.
9. What is Linux?
Linux is an Open-Source Operating System based on Unix. Linux was first introduced by Linus Torvalds.
The main purpose of Linux was to provide free and low-cost Operating System for users who could not
afford Operating Systems like Windows or iOS or Unix.
10. What is the difference between Linux and Unix?
Mainframes.
File System Support Ext2, Ext3, Ext4, Jfs, ReiserFS. Jfs, gpfs, hfs, hfs+, ufs,
Portability Yes No
Examples Ubuntu, Fedora, Red Hat, Kali Linux. OS X, Solaris, All Linux
Linux kernel refers to the low-level system software. It is used to manage resources and provide an
interface for user interaction.
Yes, it is legal to edit Linux Kernel. Linux is released under the General Public License (General Public
License). Any project released under GPL can be modified and edited by the end users.
LILO stands for Linux Loader. LILO is a Linux Boot Loader that loads Linux Operating System into the main
memory to begin execution. Most of the computers come with boot loaders for certain versions of
Windows or Mac OS. So, when you want to use Linux OS, you need to install a special boot loader for it.
LILO is one such boot loader.
When the computer is started, BIOS conducts some initial tests and transfers control to the Master Boot
Record. From here, LILO loads the Linux OS and starts it.
The advantage of using LILO is that it allows fast boot of Linux OS.
13. What are the basic components of Linux?
Kernel: It is the core component of the Operating System that manages operations and hardware.
GUI: GUI stands for Graphical User Interface which is another way for a user to interact with the system.
But unlike CLI, GUI consists of Images, Buttons, TextBoxes for interaction.
System Utilities: These are the software functions that allows the user to manage the computer.
Application Programs: Software programs or set of functions designed to accomplish a specific task.
Bash: Bourne Again Shell is the default for most of the Linux distributions
Csh: C Shell follows C like syntax and provides spelling correction and Job Control
Zsh: Z Shell provides some unique features such as filename generation, startup files, login/logout
watching, closing comments etc.
Fish: Friendly Interactive Shell provides some special features like web-based configuration, auto-
suggestions, fully scriptable with clean scripts
Swap Space is the additional spaced used by Linux that temporarily holds concurrently running programs
when the RAM does not have enough space to hold the programs. When you run a program, it resides
on the RAM so that the processor can fetch data quickly. Suppose you are running more programs than
the RAM can hold, then these running programs are stored in the Swap Space. The processor will now
look for data in the RAM and the Swap Space.
Some of the advantages of using Linux include its open-source nature, its stability and security, its
flexibility and customization options, and its ability to run on a wide variety of hardware platforms.
There are many different distributions of Linux, including Ubuntu, Debian, Fedora, CentOS, Red Hat
Enterprise Linux, and many others.
The process of installing Linux on a computer can vary depending on the distribution being used, but
generally involves creating a bootable USB or DVD, booting from that media, and following the
installation wizard to partition the hard drive and install the operating system.
20. What are some common issues that can arise during the installation of Linux?
Some common issues that can arise during the installation of Linux include problems with partitioning
the hard drive, issues with hardware compatibility, and issues with configuring network settings.
To troubleshoot problems during the installation of Linux, you can consult documentation or online
forums for the specific distribution being used, try different hardware configurations or installation
options, or seek help from a support team or community.
22. What are some best practices for installing and configuring Linux?
Some best practices for installing and configuring Linux include carefully planning the partitioning of the
hard drive, keeping software up-to-date with regular updates and patches, configuring security settings
to minimize vulnerabilities, and regularly backing up important data.
25. How do you move a file from one directory to another in Linux?
The command to move a file from one directory to another in Linux is “mv”.
26. How do you copy a file from one directory to another in Linux?
The command to copy a file from one directory to another in Linux is “cp”.
28. How do you find out the current directory you are in?
The command to find out the current directory you are in is “pwd”.
The root directory in Linux is the top-level directory in the file system hierarchy, represented by the
symbol “/”.
The /bin directory in Linux contains essential binary files that are required for basic system
functionality.
The /etc directory in Linux contains configuration files for system-wide settings and applications.
The /home directory in Linux contains user home directories, where users can store their personal files
and configurations.
The /var directory in Linux contains variable data files, such as log files, spool files, and temporary files.
The /usr directory in Linux contains user-related programs and data files, including applications,
libraries, and documentation.
39. What is the purpose of the /dev directory in Linux?
The /dev directory in Linux contains device files that represent hardware devices and allow access to
them.
The /mnt directory in Linux is used as a mount point for temporarily mounting file systems or devices.
The /proc directory in Linux contains virtual files that provide information about system processes and
kernel settings.
The /tmp directory in Linux is used for temporary files that are created and deleted frequently during
system operation.
Vi is a text editor in Linux that is used for creating, editing, and viewing text files.
The different modes in vi editor are command mode, insert mode, and last line mode.
You can switch between different modes in vi editor by using the Esc key to switch from insert mode to
command mode, and by typing a colon ( to switch to last line mode.
Vim is an improved version of vi that includes additional features and functionality, such as syntax
highlighting, multiple undo/redo, and support for plugins.
Nano is a text editor in Linux that is used for creating, editing, and viewing text files. It is a more user-
friendly alternative to vi and vim.
Gedit is a graphical text editor in Linux that is used for creating, editing, and viewing text files. It includes
features such as syntax highlighting, search and replace, and support for plugins.
The different modes in vim editor are normal mode, insert mode, visual mode, and command-line
mode.