Module 1 Linux History and Commands by Shakti Singh

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

1. What is the history of Linux?

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.

2. What inspired Linus Torvalds to create Linux?

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.

3. What is the significance of the GNU Project in the history of Linux?

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.

4. When was the first version of Linux released?

The first version of Linux, version 0.01, was released on September 17, 1991.

5. What is the difference between Linux and Unix?

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.

6. What are some of the key features of Linux?

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.

7. How has Linux evolved over time?

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?

The main differences between Linux and UNIX are as follows:

Parameter Linux Unix

Price Both free distributions and Different levels of UNIX

paid distributions are available different cost structure

Target User Everyone (Home user, Mainly Internet

Developer, etc.) Server, Workstations,

Mainframes.

File System Support Ext2, Ext3, Ext4, Jfs, ReiserFS. Jfs, gpfs, hfs, hfs+, ufs,

, Xfs, Btrfs, FAT, FAT32, NTFS. xfs, zfs,vxfs.

GUI KDE and Gnome Common Desktop Environment

Viruses listed 60-100 80-120

Bug Fix Speed Faster because Linux is Community driven Slow

Portability Yes No

Examples Ubuntu, Fedora, Red Hat, Kali Linux. OS X, Solaris, All Linux

Debian, Archlinux, Android, etc.

11. What is Linux Kernel? Is it legal to edit Linux Kernel?

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.

12. What is LILO?

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?

The basic components of Linux are:

Kernel: It is the core component of the Operating System that manages operations and hardware.

Shell: Shell is a Linux interpreter which is used to execute commands.

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.

14. Which are the Shells used in Linux?

The most common Shells used in Linux are

Bash: Bourne Again Shell is the default for most of the Linux distributions

Ksh: Korn Shell is a high-level programming language shell

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

15. What is Swap Space?

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.

Swap Space is used as an extension of RAM by Linux.

16. What is the difference between BASH and DOS?

There are 3 main differences between BASH and DOS:

Sl. No. BASH. DOS

1. Commands are case-sensitive. Commands are not case-sensitive.

2. ‘/’ (forward slash) is used as. ” (backslash) is used as

a directory separator. An escape character.

‘/’ (forward slash) is used as. ” (backslash) is used as


command argument delimiter. A directory separator.

3. Follows naming convention: No naming convention.

8 characters for file name

postfixed with 3 characters

for the extension.

17. What are the advantages of using Linux?

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.

18. What are the different distributions of Linux?

There are many different distributions of Linux, including Ubuntu, Debian, Fedora, CentOS, Red Hat
Enterprise Linux, and many others.

19. How do you install Linux on a computer?

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.

21. How do you troubleshoot problems during the installation of Linux?

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.

23. What is the command to list all files in a directory?

The command to list all files in a directory is “ls”.

24. How do you create a new directory in Linux?

The command to create a new directory in Linux is “mkdir”.

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”.

27. What is the command to change the permissions of a file in Linux?

The command to change the permissions of a file in Linux is “chmod”.

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”.

29. What is the command to remove a file in Linux?

The command to remove a file in Linux is “rm”.

30. How do you create a new file in Linux?

The command to create a new file in Linux is “touch”.

31. What is the command to display the contents of a file in Linux?

The command to display the contents of a file in Linux is “cat”.

32. How do you rename a file in Linux?

The command to rename a file in Linux is “mv”.

33. What is the root directory in Linux?

The root directory in Linux is the top-level directory in the file system hierarchy, represented by the
symbol “/”.

34. What is the purpose of the /bin directory in Linux?

The /bin directory in Linux contains essential binary files that are required for basic system
functionality.

35. What is the purpose of the /etc directory in Linux?

The /etc directory in Linux contains configuration files for system-wide settings and applications.

36. What is the purpose of the /home directory in Linux?

The /home directory in Linux contains user home directories, where users can store their personal files
and configurations.

37. What is the purpose of the /var directory in Linux?

The /var directory in Linux contains variable data files, such as log files, spool files, and temporary files.

38. What is the purpose of the /usr directory in Linux?

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.

40. What is the purpose of the /mnt directory in Linux?

The /mnt directory in Linux is used as a mount point for temporarily mounting file systems or devices.

41. What is the purpose of the /proc directory in Linux?

The /proc directory in Linux contains virtual files that provide information about system processes and
kernel settings.

42. What is the purpose of the /tmp directory in Linux?

The /tmp directory in Linux is used for temporary files that are created and deleted frequently during
system operation.

43. What is vi in Linux and what is it used for?

Vi is a text editor in Linux that is used for creating, editing, and viewing text files.

44. What are the different modes in vi editor?

The different modes in vi editor are command mode, insert mode, and last line mode.

45. How do you switch between different modes in vi editor?

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.

46. What is vim in Linux and how is it different from vi?

Vim is an improved version of vi that includes additional features and functionality, such as syntax
highlighting, multiple undo/redo, and support for plugins.

47. What is nano in Linux and what is it used for?

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.

48. What is gedit in Linux and what is it used for?

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.

49. What are the different modes in vim editor?

The different modes in vim editor are normal mode, insert mode, visual mode, and command-line
mode.

You might also like