0% found this document useful (0 votes)
93 views21 pages

Digital Education SEM-1 Unit-3

The document outlines the syllabus for a Digital Education course at Dhanbad Maths Academy, covering topics such as computer basics, operating systems, Linux introduction, and word processing. It details the structure of the course, including key units and essential concepts related to Linux, its history, and installation methods. The document emphasizes the importance of understanding Linux's core concepts for effective navigation, software management, and troubleshooting.

Uploaded by

ai.beautytec
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views21 pages

Digital Education SEM-1 Unit-3

The document outlines the syllabus for a Digital Education course at Dhanbad Maths Academy, covering topics such as computer basics, operating systems, Linux introduction, and word processing. It details the structure of the course, including key units and essential concepts related to Linux, its history, and installation methods. The document emphasizes the importance of understanding Linux's core concepts for effective navigation, software management, and troubleshooting.

Uploaded by

ai.beautytec
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Download Dhanbad Maths Academy App to Join Latest Courses of M

Dhanbad Maths Academy


B.Sc. & M.Sc. Online Coaching Institute

SYLLABUS
BINOD BIHARI MAHTO KOYALANCHAL UNIVERSITY
FYUGP Under NEP 2020 w.e.f. 2023-27
SEMESTER – I
DIGITAL EDUCATION
Credit: 3
Unit I: Introduction to Computer
Introduction, Objectives, Computer and Latest IT gadgets, Computers & its
applications, IT gadgets and their applications, Basics of Hardware and
Software, Hardware, Central Processing Unit, Input devices, Output
devices, Computer Memory & storage, Connecting Keyboard, Mouse,
Monitor and Printer to CPU, Software, Application Software, Systems
Software, Mobile Apps
Unit II: Introduction to Operating System
Introduction, Objectives, Operating System, Operating Systems for Desktop
and Laptop, Operating Systems for Mobile Phone and Tablets, User
Interface for Desktop and Laptop, Task Bar, Icons & Shortcuts, Running an
Application, Operating System Simple Setting, Using Mouse, Changing
System Date and Time, Changing Display Properties, To Add or Remove
Program and Features, File and Folder Management, Types of File
Extensions

Unit III: Introduction to linux


Introduction to Linux, History and development of Linux, Basic concepts
and terminology, Linux installation and configuration, Hardware
requirements, Partitioning and file systems, Installation methods, Linux
command, line interface, Basic commands and utilities, File management,
User and group management

Unit IV: Word Processing


Introduction, Objective, Word Processing Basics, Opening Word Processing
Package, Title Bar, Menu Bar, Toolbars & Sidebar, reating a New Document,
Opening and Closing Documents, Save and Save As, Using The Help, Page
Setup, Print Preview, Printing of Documents, PDF file and Saving a
Document as PDF file, Text Creation and manipulation, Text Selection, Cut,
Copy and Paste, Font, Color, Style and Size selection, Alignment of Text,
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

Undo & Redo, Auto Correct, Spelling & Grammar, Find and Replace, Bullets
and Numbering, Change case, Header & Footer, Table Manipulation, Insert
& Draw Table, Changing cell width and height, Alignment of Text in cell,
Delete / Insertion of Row, Column and Merging & Splitting of Cells, Border
and Shading, Shortcut Keys
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

UNIT – III
Introduction to linux
Linux is a powerful and versatile family of open-source operating systems (OS) unlike the
familiar Windows or macOS. Here's a breakdown of what it is, its core concepts, and why it's
worth considering:
What is Linux?
 Open-source: Linux's source code is freely available for anyone to access, modify,
and distribute. This fosters a large community of developers who contribute to its
ongoing development and improvement.
 Kernel-based: At its core lies the Linux kernel, a program that manages hardware
resources (memory, storage, etc.) and provides a foundation for other software to run.
 Distributions (Distros): Linux doesn't come in a single form. Distributions (distros for
short) are collections of software built around the Linux kernel, each with its own
focus and target audience. Popular distros include Ubuntu, Debian, Fedora, Mint, and
many more.
Key Concepts:
 Command Line Interface (CLI): Unlike Windows or macOS, which rely heavily on
a graphical user interface (GUI) with icons and menus, Linux traditionally uses a
command-line interface (CLI) for interaction. While some distros offer GUIs, the CLI
remains a core element for many Linux users. Commands are typed into a terminal
window to interact with the system and perform tasks.
 Package Management: Installing and removing software is typically done through
package managers. These are tools that handle downloading, installing, updating, and
removing software packages. This makes software management efficient and avoids
conflicts.
 Root User: Linux has a concept of a "root user" account with full administrative
privileges. This account should be treated with caution as mistakes can have serious
consequences. Regular users have limited privileges for everyday tasks.
Why Use Linux?
 Open-source and Free: No licensing fees or costs involved. You can freely customize
and modify the OS to your liking.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Security: Linux is known for its robustness and security. The open-source nature
allows for constant scrutiny and improvement by the community.
 Versatility: Linux powers a wide range of devices, from personal computers and
servers to supercomputers and embedded systems (like smart TVs). There's a distro for
almost any need.
 Stability: Linux systems are known for their stability and uptime. Servers running
Linux often go for months or even years without needing a reboot.
 Customization: Power users love the ability to fine-tune and personalize their Linux
experience to a high degree.
Getting Started with Linux:
 Live Dists: Many distros offer live distributions (live distros) that you can boot from a
USB drive or CD without installing them on your computer. This lets you try out
Linux before committing to an installation.
 Virtual Machines: Another option is to install Linux in a virtual machine (VM) on
your existing Windows or macOS system. This allows you to experiment with Linux
in a safe and isolated environment.
 Beginner-friendly Distros: If you're new to Linux, consider distributions designed for
beginners, such as Ubuntu, Mint, or Elementary OS. These distros offer user-friendly
interfaces and are easier to get started with.

History and development of Linux


Linux, the ubiquitous open-source operating system, has become a cornerstone of the
technological world. Its story, interwoven with innovation, collaboration, and a touch of
rebellion, is a fascinating one. Let's delve into its past and explore the key milestones that
shaped Linux into what it is today.
The Genesis: A Finnish Student and a Dream (1991)
Our tale begins in 1991, with a young Finnish computer science student named Linus
Torvalds. Inspired by the MINIX operating system, Torvalds embarked on an ambitious
project - creating a free, open-source alternative to the expensive and closed-source Unix
systems dominant at the time. He started with a simple kernel, the core program that manages
a computer's resources. This initial version, Linux 0.01, was released publicly and quickly
caught the attention of programmers worldwide.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

The Power of Open Source: Collaboration and Growth (1992-1994)


The open-source nature of Linux was a game-changer. Developers from around the globe
could access, modify, and contribute code to the kernel. This collaborative spirit fueled rapid
development. The release of Linux 0.99 in 1992 marked a significant step forward, with
support for various hardware architectures. By 1994, Linux 1.0 emerged, boasting a robust
kernel capable of running complex applications.
The Rise of Distributions: Diversification and User-friendliness (Mid-1990s)
While the kernel formed the heart of Linux, it wasn't enough for everyday use. Distributions
(distros) arose, collections of software built around the Linux kernel, catering to specific
needs and user groups. Pioneering distros like Slackware and Red Hat emerged, offering
varying degrees of stability and user-friendliness. This diversification made Linux accessible
to a wider audience, no longer limited to tech-savvy programmers.
The Desktop Revolution: Usability Takes Center Stage (Late 1990s-Early 2000s)
The late 1990s and early 2000s witnessed a push towards making Linux more user-friendly.
Distros like Ubuntu, with its intuitive desktop interface, entered the scene, targeting home
users and casual computer users. This era also saw the development of desktop environments
like GNOME and KDE, providing familiar graphical interfaces for interacting with the
system.
Linux Goes Mainstream: Adoption and Innovation (2000s-Present)
The 21st century saw Linux adoption flourish. From powering web servers and
supercomputers to embedded systems like smartphones and smart TVs, Linux's versatility
and stability became undeniable. Major corporations began embracing Linux for its cost-
effectiveness and security benefits. The rise of cloud computing further cemented Linux's
position as the backbone of the digital infrastructure.
A Look Ahead: The Future of Linux
Today, Linux continues to evolve. Security enhancements, improved hardware compatibility,
and a constant influx of innovation from the open-source community propel Linux forward.
The future holds promise for even wider adoption, potentially extending to areas like
artificial intelligence and the Internet of Things (IoT).
Beyond the code: The Impact of Linux
The impact of Linux extends far beyond technology. The open-source philosophy behind
Linux has fostered a culture of collaboration and innovation. It has empowered individuals

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

and organizations to create and share knowledge freely, democratizing access to technology.
As Linux continues its journey, it serves as a testament to the power of collective effort and
the potential of open-source software to shape the technological landscape.

Basic concepts and terminology


Linux, the ubiquitous open-source operating system, goes beyond just being an alternative to
Windows or macOS. Understanding its core concepts and terminology unlocks its true
potential and empowers you to navigate the Linux ecosystem effectively. Let's delve deeper
into these fundamental building blocks.
Core Concepts:
 Kernel: Imagine the kernel as the conductor of an orchestra. It's the program at the
heart of Linux, responsible for managing the system's resources. The kernel acts as an
intermediary between hardware components (CPU, memory, storage) and software
applications. It allocates resources, handles communication between devices, and
ensures everything runs smoothly.
 Distribution (Distro): Think of a distro as a complete operating system tailored for a
specific audience or purpose. It's not just the Linux kernel – a distro is a collection of
software packages built around the kernel, including desktop environments, utilities,
libraries, and applications. Popular distros cater to different needs. Ubuntu is known
for its user-friendliness, Fedora is popular for bleeding-edge technology, and Kali
Linux is a favorite among security professionals.
 Package Management: Unlike Windows or macOS, where you might download and
install individual programs, Linux uses a more streamlined approach. Package
managers are essential tools for installing, updating, and removing software. These
tools handle dependencies (other software packages required for a program to
function) automatically, ensuring a smooth and efficient software management
experience. Common package managers include APT (Advanced Package Tool) for
Debian-based distros and Yum (Yellowdog Update Manager) for RPM-based distros
like Fedora.
 Command Line Interface (CLI): The command line interface (CLI) is the traditional
way to interact with Linux. It's a text-based interface where you type commands into a
terminal window to execute tasks, manage files, and configure the system. While some
distros offer graphical interfaces (GUIs), the CLI remains a cornerstone of Linux.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

Learning basic commands empowers you to navigate the system efficiently and
troubleshoot issues effectively.
Essential Terminology:
 Root User: The "root user" is the ultimate administrator with full control over the
system. This account has unrestricted access to modify any configuration or file. Use
root privileges with extreme caution, as mistakes can have serious consequences.
Regular user accounts have limited privileges for everyday tasks, promoting security.
 Desktop Environment (DE): If you're used to the graphical interfaces of Windows or
macOS, the desktop environment (DE) is your equivalent in Linux. It provides a
familiar user experience with a desktop, icons, menus, and windows. Popular DEs
include GNOME (known for its clean and user-friendly interface), KDE Plasma
(highly customizable and feature-rich), and Xfce (lightweight and resource-efficient).
 Repository: Think of a repository as a software store for Linux. It's a collection of
software packages from which you can install programs using your package manager.
Distros typically have their own repositories containing curated and tested software.
Additional repositories can be added to access a wider range of software or the latest
versions.
 Permissions: In the world of Linux, permissions dictate who can access and modify
files and directories. These permissions control who can read, write, and execute files.
Understanding permissions is crucial for maintaining system security and ensuring
authorized access to data.
 Shell: The shell acts as an interpreter between you and the Linux kernel. When you
type a command in the terminal window, the shell interprets it and interacts with the
kernel to execute the desired action. Common shells include Bash (Bourne Again
Shell), the most widely used shell, and Zsh (Z shell), known for its customization
options and features.
Benefits of Understanding these Concepts:
 Effective Navigation: Grasping core concepts allows you to navigate the Linux file
system with ease. You'll be able to locate files, create directories, and perform essential
tasks using the terminal.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Software Management: Package managers are powerful tools, and understanding


them empowers you to install, update, and remove software efficiently. No more
hunting for individual downloads or worrying about compatibility issues.
 Customization: Linux offers immense customization potential. Once you understand
core concepts, you can personalize your system to your liking. From choosing a
desktop environment to tweaking system settings, the possibilities are vast.
 Troubleshooting: Basic knowledge of these concepts equips you to troubleshoot
minor issues and understand error messages that might arise. You'll be able to diagnose
problems more effectively and get your system back on track.

Linux installation and configuration


Preparation:
 Choose a Distro: Research and select a distro that aligns with your needs and
experience level. For beginners, Ubuntu or Mint are popular choices due to their user-
friendliness. For more advanced users, Fedora or Arch Linux offer greater
customization options.
 Download the ISO File: The ISO file is a disc image containing the installation files
for your chosen distro. Download it from the official distro website.
 Backup Important Data: As a precaution, it's wise to back up any critical data from
your current system before proceeding with the installation.
Installation Methods:
There are two primary methods for installing Linux:
 Dual Booting: This allows you to have both Linux and your existing operating system
(like Windows or macOS) on the same computer. You choose which OS to boot into
during the startup process.
 Full Disk Installation: This erases your entire hard drive and installs Linux as the sole
operating system. Only proceed with this method if you're sure about replacing your
current OS and have a proper backup.
Using a Live USB:

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Create a Live USB: Most distros offer tools to create a live USB drive using
downloaded ISO file. This bootable USB allows you to try out the distro before
installation.
 Boot from the Live USB: Restart your computer and configure it to boot from the
USB drive (often by pressing a specific key during startup).
 Start the Installation: Once booted from the Live USB, you'll find an option to
"Install Linux" or similar wording.
The Installation Process:
The installation process typically involves these steps:
 Choose Language and Location: Select your preferred language and time zone
settings.
 Partitioning the Disk: Decide how you want to allocate disk space for Linux. In dual-
boot scenarios, you'll need to shrink your existing OS partition to create space for
Linux. Most distributions offer a user-friendly partitioning tool to guide you through
this step.
 Create User Account: Set up a username and password for your Linux user account.
This account will be used for daily tasks. Consider creating a separate account with
administrative privileges (root access) for system administration tasks, but use this
account cautiously.
 Configure Additional Settings: Depending on the distro, you might be prompted to
configure additional settings like network connectivity or desktop environment
selection.
 Begin Installation: Once satisfied with your configuration, initiate the installation
process. This might take some time depending on your system specifications.
 Reboot: After successful installation, you'll be prompted to reboot your system. If
using a dual-boot setup, the bootloader screen will appear, allowing you to choose
between Linux and your existing OS.
Post-Installation Configuration:
 Update System: After booting into your new Linux system, it's crucial to update the
system software using your distro's package manager. This ensures you have the latest
security patches and bug fixes.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Install Additional Software: Use the package manager to install applications you
need, like web browsers, office suites, or development tools.
 Explore Your Desktop Environment: Familiarize yourself with the desktop
environment (GNOME, KDE Plasma, etc.) Most distros offer intuitive interfaces with
menus, icons, and windows.
 Security Measures: Consider implementing basic security measures like enabling a
firewall and setting strong passwords.

Hardware requirements
Linux is known for its versatility and ability to run on a wide range of hardware. However, to
ensure a smooth experience, there are some minimum recommended specifications to
consider:
Essential Components:
 Processor (CPU): A modern processor (dual-core or higher) is recommended for
comfortable use. While Linux can run on older CPUs, a more powerful processor will
handle multitasking and demanding applications better.
 Memory (RAM): For basic use cases like web browsing and document editing, 4GB
of RAM is a good starting point. For more intensive tasks like video editing or
programming, 8GB or more RAM is recommended.
 Storage: The storage requirement depends on your usage patterns. If you plan to store
a large amount of files, movies, or music, consider a hard drive with ample space
(500GB or more). Solid-state drives (SSDs) are becoming increasingly affordable and
offer significantly faster performance for booting up and launching applications,
although they typically have less storage capacity than traditional hard drives.
 Graphics Card (GPU): For basic desktop use, a dedicated graphics card isn't
mandatory. Modern integrated graphics processors (IGPs) found in many CPUs can
handle everyday tasks. However, if you plan on gaming, video editing, or running
graphics-intensive applications, a dedicated GPU with good performance is
recommended.
Additional Considerations:

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Free Disk Space: During installation, allocate sufficient disk space for the Linux
system itself and your user files. The recommended amount varies depending on the
distro (usually around 20-25GB for the base system), so check your distro's
documentation for specific requirements.
 Internet Connection: An internet connection is helpful for downloading updates,
installing software, and accessing online resources. Wired Ethernet connections
generally offer better stability and speed compared to Wi-Fi, but Wi-Fi can be suitable
for most basic tasks.
Distro Variations:
It's important to note that these are general recommendations. Specific hardware
requirements can vary slightly depending on the chosen Linux distribution (distro). Some
lightweight distros, designed for older machines, have minimal resource requirements and
can run on less powerful hardware. Conversely, some resource-intensive desktop
environments or gaming-oriented distros might have slightly higher hardware demands.
Always refer to the documentation of your chosen distro for its specific recommendations.
Verifying Compatibility:
If you're unsure about the compatibility of your existing hardware with Linux, you can try
running the distro from a live USB drive before installation. Most distros offer downloadable
live ISO files that you can use to create a bootable USB drive. Booting your system from the
live USB allows you to test the distro and see if it runs smoothly on your hardware without
making any permanent changes to your current system.

Partitioning and file systems


When installing Linux, you'll encounter two crucial concepts: partitioning and file systems.
Here's a breakdown to help you navigate this during your Linux installation journey.
Partitioning:
Imagine your hard drive as a large, empty room. Partitioning is the process of dividing this
space into smaller, organized sections called partitions. Think of these partitions as separate
rooms within your hard drive, each with a specific purpose.
Here's why partitioning is important:

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Organization: Partitions help you organize your data. You can dedicate a partition for
your operating system (Linux), another for your personal files (documents, music), and
potentially a separate one for swap space (explained later).
 Flexibility: Partitions allow you to manage different file systems on different sections
of your disk. You can choose a file system best suited for each partition's needs.
 Dual Booting: If you plan to have both Linux and another operating system (like
Windows) on the same machine (dual booting), partitioning is essential to allocate
space for each OS.
Common Partitioning Schemes:
There's no one-size-fits-all approach, but here's a typical partitioning scheme for a basic
Linux installation:
 Root Partition (/): This is the most crucial partition, containing the core Linux system
files and applications. A minimum of 20-25GB is recommended for the root partition.
 Home Partition (/home): This partition stores your personal files, documents, music,
and other user data. The size depends on your storage needs. Allocate more space if
you plan to store a large amount of personal data.
 Swap Partition (Optional): Swap space acts like an extension of your RAM. When
your physical RAM gets full, inactive data is temporarily moved to the swap partition
to free up memory for running programs. The recommended swap size typically ranges
from the size of your RAM to twice the size of your RAM. However, with modern
systems having ample RAM and hibernation features, a swap partition is becoming
less necessary.
File Systems:
Now that you have your partitions created, it's time to format them with a file system. Think
of a file system as a filing cabinet system for your partitions. It defines how data is stored and
organized on the disk, allowing your OS to locate and access files efficiently.
Common Linux File Systems:
 ext4: The most widely used file system for Linux due to its stability, performance, and
journaling feature (tracks changes for faster recovery in case of errors).
 Btrfs: A newer file system with features like built-in RAID support and snapshots for
backups. However, it's still considered experimental by some distributions.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 FAT32: A file system commonly used in Windows environments. While it can be used
with Linux, it has limitations on file size and is not recommended for the root partition.
Choosing a File System:
The choice of file system depends on various factors like:
 Stability: For critical partitions like the root partition, ext4 is a safe and stable choice.
 Features: If you need advanced features like snapshots or RAID support, Btrfs might
be an option, but consider its experimental nature.
 Compatibility: If you need to access the partition from other operating systems like
Windows, FAT32 might be suitable for data partitions, but it's not ideal for the root
partition.
Tools for Partitioning and Formatting:
Most Linux distributions come with built-in partitioning tools during the installation process.
These tools offer a user-friendly interface to create, resize, and format partitions. Some
popular tools include fdisk (command-line) and GParted (graphical).
Remember: Partitioning and formatting can erase data, so be cautious and ensure you have
backups before proceeding. If you're unsure, consult your distro's documentation or seek help
from the Linux community.

Installation methods
There are several methods for installing Linux on your computer, each with its own
advantages and considerations. Here's a breakdown of the most common installation
methods:
Dual Booting:
 Description: This method allows you to have both Linux and another operating
system (like Windows or macOS) on the same computer. During startup, you choose
which OS to boot into.
 Advantages:
 Flexibility: You can switch between operating systems based on your needs.
 Familiarity: If you're new to Linux, you can keep your existing OS for comfort
while exploring Linux.
 Disadvantages:

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Requires Shrinking Disk Space: You'll need to shrink a partition on your existing
OS to create space for Linux.
 Bootloader Configuration: Setting up the bootloader (the program that decides
which OS to boot) can be slightly complex.
 Reboot Required: Switching between OSes requires a system restart.
Full Disk Installation:
 Description: This method erases your entire hard drive and installs Linux as the sole
operating system.
 Advantages:
 Simpler Setup: No need to worry about partitioning or bootloader configuration for
multiple OSes.
 Full Disk Utilization: You can utilize the entire storage capacity for Linux.
 Disadvantages:
 Data Loss: This method erases all data on your hard drive, so ensure you have a
complete backup before proceeding.
 No Existing OS Access: Once installed, you won't have access to your previous
operating system unless you create a separate partition for it during installation
(which essentially becomes dual booting).
Live USB Installation:
 Description: This method involves creating a bootable USB drive containing a live
Linux distribution. You can boot your computer from the USB drive and try out Linux
before installation.
 Advantages:
 Safe Testing: You can test the distro and ensure it works well with your hardware
before committing to a full installation.
 No Disk Modification: The live USB doesn't modify your existing hard drive or
data.
 Disadvantages:
 Limited Functionality: The live environment might have limited functionality
compared to a full installation.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 Performance Impact: Running Linux from a USB drive might be slower than a full
installation on your hard drive.
Virtual Machine (VM) Installation:
 Description: This method involves installing Linux within a software program called a
virtual machine (VM) on your existing operating system. The VM acts as a simulated
computer, allowing you to run Linux alongside your current OS.
 Advantages:
 Isolation and Safety: The virtualized environment keeps Linux isolated from your
main system, minimizing risks.
 Easy Removal: You can easily remove the VM if you decide you don't need Linux
anymore.
 Disadvantages:
 Resource Requirements: VMs require a portion of your system's resources to run, so
performance might be slightly slower compared to a native installation.
 Limited Disk Space: The amount of disk space you allocate to the VM limits the
available space for Linux.

Basic commands and utilities


The Linux terminal might seem intimidating at first, but with a handful of essential
commands and utilities, you'll be navigating your system like a pro. Here's a cheat sheet to
get you started:
Essential File and Directory Management:
 ls: This command lists the contents of the current directory. Use ls -l for a more
detailed listing with permissions and ownership information.
 cd: Change directory. Use cd ~ to go to your home directory, cd .. to move up one
directory level, and cd <directory name> to enter a specific directory.
 pwd: Print Working Directory. This displays the full path of the directory you're
currently in.
 mkdir: Create a new directory. Use mkdir <directory name> to create a new directory
with the specified name.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 rmdir: Remove an empty directory. Use rmdir <directory name> to delete an empty
directory.
 cp: Copy files and directories. Use cp <source file> <destination file> to copy a file,
or cp -r <source directory> <destination directory> to copy an entire directory
(including subdirectories).
 mv: Move or rename files and directories. Use mv <source file> <destination file> to
move a file, or use it for renaming by specifying the new name as the destination.
Viewing File Contents and Permissions:
 cat: Display the contents of a text file. Use cat <filename> to view the contents of a
file.
 more/less: These commands allow you to view the contents of a file one page at a time,
useful for long files. Use more <filename> or less <filename>.
 head: Display the first few lines of a file. Use head <filename> to see the beginning of
a file.
 tail: Display the last few lines of a file. Use tail <filename> to see the end of a file.
 chmod: Change file permissions. This controls who can read, write, and execute files.
(Caution: Use with care as improper permissions can lead to security issues.)
System Management:
 sudo: Run a command with root privileges (administrative access). Use sudo
<command> followed by your password to execute commands requiring elevated
permissions. (Caution: Use sudo cautiously as mistakes with root access can have
serious consequences.)
 ps: Show running processes. Use ps aux for a more detailed list of running processes.
 top: Display a list of running processes in real-time, showing CPU and memory usage.
 reboot: Restart the system.
 shutdown: Halt or power down the system. (Caution: Ensure you have saved your
work before using shutdown.)
Basic Networking:
 ping: Test network connectivity to a host. Use ping <hostname or IP address> to see if
your system can reach another device on the network.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

 ifconfig: Display network interface information. This shows details about your
network adapters and IP addresses.
Package Management:
 apt (Debian-based distros) or yum (RPM-based distros): These are package managers
used to install, update, and remove software packages. Use commands like apt install
<package name> or yum install <package name> to install software.
Additional Utilities:
 man: The manual page. Use man <command name> to access the manual page for a
specific command, providing detailed information and usage instructions.
 history: Show your command history. This displays a list of commands you've
previously typed in the terminal.
 clear: Clear the terminal screen. This removes the displayed text and gives you a fresh
start.

File management
Understanding the File System:
 Hierarchical Structure: Imagine an upside-down tree. The root directory (/) sits at the
top, representing the base of your entire file system. Subdirectories branch out from the
root, further organizing your files.
 Common Directories: Some essential directories you'll encounter include:
/home: Your home directory, containing your personal files, documents, and user
data.
/bin: Stores essential system executable files (commands).
/etc: Configuration files for system-wide settings.
/usr: Houses user applications and software.
/var: Contains variable data like logs and temporary files.
 Permissions: Control access to files and directories. Permissions dictate who can read
(view contents), write (modify contents), and execute (run the file) a file or directory.
Understanding permissions is crucial for maintaining system security.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

Essential File Management Commands:


 Navigation:
cd: Change directory. Use cd ~ to go to your home directory, cd .. to move up one
level, and cd <directory name> to enter a specific directory.
pwd: Print Working Directory. This displays the full path of the directory you're
currently in.
ls: List the contents of the current directory. Use ls -l for a more detailed listing
with permissions and ownership information.
 File and Directory Operations:
mkdir <directory name>: Create a new directory.
rmdir <directory name>: Remove an empty directory. (Caution: Use with care as
deleted directories cannot be recovered easily.)
cp <source file> <destination file>: Copy a file. Use cp -r <source directory>
<destination directory> to copy an entire directory (including subdirectories).
mv <source file> <destination file>: Move or rename a file/directory. Specifying a
new name as the destination effectively renames the file.
 Viewing File Contents:
cat <filename>: Display the contents of a text file.
more/less: These commands allow you to view the contents of a file one page at a
time, useful for long files. Use more <filename> or less <filename>.
head <filename>: Display the first few lines of a file.
tail <filename>: Display the last few lines of a file.
 Permissions:
chmod: Change file permissions. This is an advanced topic, but essential for
understanding access control. Refer to your distro's documentation or online
resources for detailed usage.
 File Deletion:
rm <filename>: Remove a file. (Caution: Use with extreme care as deleted files
cannot be retrieved easily. Consider using rm -rf cautiously only when you're
absolutely sure about deleting a file or directory and its contents.)

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

Additional Tips:
 File Managers: While the command line offers power and flexibility, most distros
come with graphical file managers that provide a user-friendly interface for browsing,
copying, moving, and deleting files. These tools often offer features like drag-and-drop
functionality and visual representations of your file system. Popular options include
Nautilus (GNOME), Dolphin (KDE Plasma), and Thunar (XFce).
 File Permissions: Always ensure appropriate file permissions are set. Restrictive
permissions enhance security, preventing unauthorized access or modification of
critical system files. On the other hand, some applications might require specific
permissions to function correctly.
 File Searching: The find command is a powerful tool for locating files based on
various criteria like filename, file type, or location. Consult your distro's
documentation or online resources to learn more about using find effectively.

User and group management


In the world of Linux, user and group management are essential for maintaining system
security and organization. Here's a breakdown of these concepts and how to manage them
effectively:
Users:
 Accounts: Each user interacting with the system requires a dedicated user account.
This account has a unique username, password, and associated properties like user ID
(UID) and group ID (GID).
 Privileges: User accounts can have varying levels of privileges. The "root" user is the
most powerful account with unrestricted access to the entire system. Standard user
accounts have limited privileges to prevent accidental or malicious actions that could
harm the system.
Groups:
 Collections: Groups act as collections of users who share similar permissions or access
rights. Assigning users to groups simplifies permission management.
 Benefits: Instead of setting permissions for individual users on every file or directory,
you can grant permissions to a group, automatically applying those permissions to all
members of the group.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major
Dhanbad Maths Academy
B.Sc. & M.Sc. Online Coaching Institute

Common User and Group Management Commands:


 User Management:
useradd <username>: Create a new user account.
userdel <username>: Delete a user account. (Caution: Use with care as this
removes the user's home directory and data.)
usermod <username>: Modify an existing user account. This allows you to change
various properties like password, group membership, or home directory.
passwd: Change your own password. (Important: Regularly update your password
for security reasons.)
id: Display information about the current user, including username, UID, and
group memberships.
 Group Management:
groupadd <groupname>: Create a new group.
groupdel <groupname>: Delete an existing group. (Caution: Ensure no users are
assigned to the group before deletion.)
groupmod <groupname>: Modify an existing group.
groups: List the groups the current user belongs to.
Additional Considerations:
 Primary Group: Each user has a primary group assigned during account creation. This
group typically shares the same name as the username.
 Secondary Groups: Users can belong to multiple groups in addition to their primary
group. This allows for assigning granular permissions based on a user's roles or
responsibilities.
 sudo: The sudo command allows users with standard privileges to execute commands
with root permissions temporarily. However, proper use of sudo requires entering the
root password, ensuring authorized actions are performed.

Download Dhanbad Maths Academy App to Join Latest Courses of Maths Major

You might also like