Python Learning โ€“ Day 5: Loops (for, while) with Real-Life Examples

Python Learning โ€“ Day 5: Loops (for, while) with Real-Life Examples

Introduction

Welcome to Day 5 of my Python learning journey.
In this lesson, I learned about loops in Python. Loops are used to repeat tasks automatically, which saves time and reduces manual work.

In real life, we repeat tasks daily (like practicing, calculating bills, sending reminders). In programming, loops help us do the same thing efficiently.


๐Ÿ“š Topics Covered in Day 5

In this lesson, I learned:

  • What is a loop in Python
  • for loop and how range() works
  • while loop and condition-based repetition
  • How to use loops with real-life examples
  • Practice programs like even numbers, multiplication table, and sum calculation

๐Ÿ” What Is a Loop?

A loop is used to execute a block of code multiple times.

Python mainly provides two types of loops:

  • for loop (counting-based repetition)
  • while loop (condition-based repetition)

โœ… for Loop Example (Print 1 to 10)

for number in range(1, 11):
    print(number)

Output:

1
2
3
...
10

range(1, 11) means numbers from 1 to 10 (11 is not included).


โœ… while Loop Example (Print 1 to 10)

i = 1
while i <= 10:
    print(i)
    i += 1

The while loop runs as long as the condition is true.


โœ… Real-Life Example: Print Even Numbers (1 to 10)

Using for loop:

for number in range(1, 11):
    if number % 2 == 0:
        print(number)

Using while loop:

i = 1
while i <= 10:
    if i % 2 == 0:
        print(i)
    i += 1

The % operator gives the remainder. If a number is divisible by 2, it is even.


๐Ÿงฎ Program 1: Multiplication Table (User Input)

number = int(input("Enter a number: "))

for i in range(1, 11):
    result = number * i
    print(number, "x", i, "=", result)

This program prints the multiplication table from 1 to 10.


โž• Program 2: Sum of 1 to N (User Input)

n = int(input("Enter a number: "))

if n <= 0:
    print("Please enter a positive number.")
else:
    total = 0
    for i in range(1, n + 1):
        total += i
    print("Sum of 1 to", n, "is:", total)

This program calculates the total sum from 1 to N using a loop.


๐ŸŒ Why Loops Are Important?

Loops are used in real-world applications like:

  • Repeating tasks automatically
  • Processing large data lists
  • Running programs until a condition is met (e.g., login systems)
  • Creating patterns and tables
  • Automation and scripts

โœ… What I Learned Today

  • How to repeat tasks using loops
  • The difference between for and while
  • Using loops with conditions (even/odd)
  • Building real-life mini projects with loops

๐Ÿ”œ Next Lesson (Day 6)

In Day 6, I will learn about:

  • Lists in Python
  • Storing multiple values in one variable
  • Looping through lists with real-life examples

๐Ÿ“ข Final Note

This series is beginner-friendly and public so anyone can learn Python step by step.

Thank you for reading ๐Ÿš€

Python Learning โ€“ Day 4: Conditional Statements (if, else, elif)

Python Learning โ€“ Day 4: Conditional Statements (if, else, elif)

Introduction

Welcome to Day 4 of my Python learning journey.
In this lesson, I learned how Python makes decisions using conditional statements such as if, else, and elif.

Conditional statements are extremely important in programming because real-life applications constantly make decisions based on conditions.


๐Ÿ“š Topics Covered in Day 4

In this lesson, I learned:

  • What are conditional statements
  • How if works in Python
  • How if-else controls program flow
  • How elif handles multiple conditions
  • Using conditions with user input

๐Ÿ”€ What Are Conditional Statements?

Conditional statements allow a program to execute different code blocks based on conditions.

In simple words:

If a condition is true โ†’ do something
Else โ†’ do something else


๐Ÿง  Simple if Example

age = 20

if age >= 18:
    print("You can vote")

This code checks whether a person is eligible to vote.


๐Ÿ”„ if โ€“ else Example

age = 16

if age >= 18:
    print("You can vote")
else:
    print("You cannot vote")

Here, Python makes a decision based on the value of age.


๐Ÿงฎ Real-Life Example: Pass or Fail

marks = 35

if marks >= 40:
    print("Pass")
else:
    print("Fail")

This logic is commonly used in school result systems.


โž• Multiple Conditions Using elif

marks = 75

if marks >= 90:
    print("Excellent")
elif marks >= 60:
    print("Good")
elif marks >= 40:
    print("Pass")
else:
    print("Fail")

Python checks the conditions from top to bottom and executes the first true condition.


๐Ÿงพ Real-Life Program: Student Result System

name = input("Enter your name: ")
marks = int(input("Enter your marks: "))

if marks >= 90:
    print(f"{name}, your result is: Excellent")
elif marks >= 60:
    print(f"{name}, your result is: Good")
elif marks >= 40:
    print(f"{name}, your result is: Pass")
else:
    print(f"{name}, your result is: Fail")

This program behaves like a real-world student result evaluation system.


๐ŸŒ Why Conditional Statements Are Important

Conditional statements are used in:

  • Login systems
  • Eligibility checks
  • Exam result processing
  • Banking and finance applications
  • Decision-based automation

Without conditional logic, programs would not be able to make decisions.


โœ… What I Learned Today

  • How to use if, else, and elif
  • How Python makes decisions
  • How to apply logic to real-life problems
  • How to create interactive decision-based programs

This lesson helped me understand the foundation of decision-making in Python.


๐Ÿ”œ Next Lesson (Day 5)

In Day 5, I will learn about:

  • Loops in Python
  • Repeating tasks automatically
  • Real-life loop examples

๐Ÿ“ข Final Note

This Python learning series is written for beginners.
Anyone who wants to learn Python step by step can follow these posts.

Thank you for reading ๐Ÿš€

Python Learning โ€“ Day 3: Strings and User Input

Python Learning โ€“ Day 3: Strings and User Input

Introduction

Welcome to Day 3 of my Python learning journey.
In this lesson, I learned how Python interacts with users using strings and user input.

Most real-world applications need to communicate with users, and this lesson explains how Python takes input, processes it, and displays meaningful output.


๐Ÿ“š Topics Covered in Day 3

In this lesson, I learned:

  • What are strings in Python
  • How to take user input using input()
  • How to convert input into numbers
  • How to format output using f-strings

๐Ÿ”ค What Is a String in Python?

A string is a sequence of characters used to store text.
In Python, strings are written inside double quotes " " or single quotes ' '.

Example:

message = "Hello, Python"
print(message)

Output:

Hello, Python

Strings are commonly used for:

  • Names
  • Messages
  • User input
  • Text display

๐Ÿงพ Taking User Input in Python (input())

The input() function allows Python to receive data from the user.

Example:

name = input("Enter your name: ")
print("Hello", name)

Output:

Enter your name: Hiranmoy
Hello Hiranmoy

By default, input() always returns a string.


๐Ÿ”ข Converting Input into Numbers

When we need to perform calculations, we must convert user input into numbers using int().

Example:

age = int(input("Enter your age: "))
print("After 5 years, your age will be", age + 5)

Output:

Enter your age: 22
After 5 years, your age will be 27

๐Ÿง  Formatting Output Using f-Strings

Python provides f-strings to format output easily.

Example:

name = input("Enter your name: ")
city = input("Enter your city: ")

print(f"I am {name} and I live in {city}")

Output:

I am Hiranmoy and I live in Haldia

f-strings make code cleaner and easier to read.


๐Ÿ—๏ธ Real-Life Example: Online Form

The following program simulates a simple online form:

name = input("Enter your name: ")
age = int(input("Enter your age: "))
profession = input("Enter your profession: ")
city = input("Enter your city: ")

print("\n--- User Details ---")
print(f"Name: {name}")
print(f"Age: {age}")
print(f"Profession: {profession}")
print(f"City: {city}")

This program behaves like filling an online registration form.


๐ŸŒ Why This Lesson Is Important

User input and strings are essential in:

  • Login systems
  • Registration forms
  • Chat applications
  • Interactive software

This lesson is a foundation for building real-world Python applications.


โœ… What I Learned Today

  • How to work with strings
  • How to take user input
  • How to convert input into numbers
  • How to format output using f-strings

This lesson helped me build interactive Python programs.


๐Ÿ”œ Next Lesson (Day 4)

In Day 4, I will learn about:

  • Conditional statements (if, else)
  • Decision making in Python
  • Real-life logic examples

๐Ÿ“ข Final Note

This Python learning series is written for beginners.
Anyone who wants to learn Python step by step can follow these posts.

Thank you for reading ๐Ÿš€

Python Learning โ€“ Day 2: Operators and Real-Life Calculations

Python Learning โ€“ Day 2: Operators and Real-Life Calculations

Introduction

Welcome to Day 2 of my Python learning journey.
In this lesson, I learned how Python performs mathematical calculations using operators.

Operators are very important in programming because almost every real-world application involves calculations such as bills, salary, discounts, and expenses.


๐Ÿ“š Topics Covered in Day 2

In this lesson, I learned:

  • What are operators in Python
  • Arithmetic operators
  • How Python performs calculations
  • Real-life examples like shopping bills and discounts

๐Ÿงฎ What Are Operators in Python?

Operators are symbols that perform operations on values and variables.

Python operators help us to:

  • Add numbers
  • Subtract values
  • Multiply quantities
  • Divide amounts
  • Find remainders

๐Ÿ”ข Arithmetic Operators in Python

OperatorPurposeExample
+Addition10 + 5
-Subtraction10 – 5
*Multiplication10 * 5
/Division10 / 5
%Modulus (remainder)10 % 3

๐Ÿช Real-Life Example: Shopping Bill

Letโ€™s calculate the total cost of buying rice.

Python Code Example:

rice_price = 60
quantity = 3

total_price = rice_price * quantity
print("Total price =", total_price)

Output:

Total price = 180

This example is similar to calculating a bill in a grocery store.


๐Ÿท๏ธ Discount Calculation Example

Now letโ€™s apply a discount to the total price.

Python Code:

rice_price = 60
quantity = 3
discount = 5  # percent

total_price = rice_price * quantity
final_price = total_price - (total_price * discount / 100)

print("Rice price =", rice_price)
print("Quantity =", quantity)
print("Total price =", total_price)
print("Discount =", discount, "%")
print("Final price after discount =", final_price)

Output:

Rice price = 60
Quantity = 3
Total price = 180
Discount = 5 %
Final price after discount = 171.0

๐Ÿ” Modulus Operator (%) โ€“ Real-Life Meaning

The modulus operator % returns the remainder after division.

Example:

print(10 % 3)

Output:

1

Real-Life Use Case:

If 10 items are divided among 3 people, 1 item will remain.


๐ŸŒ Why Operators Are Important?

Operators are used everywhere in real-world applications:

  • Shopping and billing systems
  • Salary calculation
  • Expense tracking
  • Banking applications

Without operators, programming would not be possible.


โœ… What I Learned Today

  • How Python performs calculations
  • How to use arithmetic operators
  • How to calculate bills and discounts
  • How Python helps in real-life problem solving

This lesson helped me understand how Python works like a smart calculator.


๐Ÿ”œ Next Lesson (Day 3)

In Day 3, I will learn about:

  • Strings in Python
  • Taking user input using input()
  • Creating simple interactive programs

๐Ÿ“ข Final Note

This Python learning series is designed for beginners.
Anyone who wants to learn Python step by step can follow these posts.

Thank you for reading ๐Ÿš€

Python Learning โ€“ Day 1: Introduction, print() and Variables

Python Learning โ€“ Day 1: Introduction, print() and Variables

๐Ÿ“Œ Introduction

Python is one of the most popular and beginner-friendly programming languages in the world.
In this learning journey, I am documenting my daily Python classes so that anyone can learn Python step by step along with me.

In Day 1, I learned the very basics of Python, including how to print messages and how to store data using variables.


๐Ÿ“š Topics Covered in Day 1

In this lesson, I learned the following topics:

  • What is Python
  • How Python prints output using print()
  • What are variables
  • How to store and display data

๐Ÿง  What is Python?

Python is a high-level programming language that is easy to read, write, and understand.
It is widely used in:

  • Web development
  • Data analysis
  • Automation
  • Artificial Intelligence
  • Cybersecurity

Python is perfect for beginners because its syntax is very simple and close to English.


๐Ÿ–จ๏ธ Printing Output in Python (print())

To display any message on the screen, Python uses the print() function.

Example:

print("Hello, Python")
print("My name is Hiranmoy")

Output:

Hello, Python
My name is Hiranmoy

The print() function tells Python what to show as output.


๐Ÿ“ฆ Variables in Python

A variable is like a container that stores data.
We can give a name to a value and use it later.

Example:

name = "Hiranmoy"
age = 22
city = "Haldia"

print(name)
print(age)
print(city)

Output:

Hiranmoy
22
Haldia

Here:

  • name, age, and city are variables
  • = is used to assign values
  • Python stores the data in memory

๐Ÿ”— Using Text with Variables

We can also combine text and variables using print().

Example:

name = "Hiranmoy"
age = 22

print("My name is", name)
print("I am", age, "years old")

Output:

My name is Hiranmoy
I am 22 years old

๐ŸŒ Real-Life Example

Variables are used everywhere in real life:

  • Contact name and number
  • Login username
  • User profile details

Python variables work in the same way by storing information.


โœ… What I Learned Today

  • How Python displays output
  • How to create and use variables
  • How to write simple Python programs
  • Basic structure of Python code

This lesson helped me understand the foundation of Python programming.

๐Ÿ”œ Next Lesson (Day 2)

In Day 2, I will learn about:

  • Python Operators
  • Mathematical calculations
  • Real-life examples like bills and discounts

๐Ÿ“ข Final Note

This learning series is completely beginner-friendly.
Anyone who wants to start learning Python can follow these daily posts.

Thank you for reading.

เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡ เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆœเฆฒ เฆขเฆพเฆฒเฆพเฆฐ เฆชเง‡เฆ›เฆจเง‡เฆฐ เฆฐเฆนเฆธเงเฆฏ โ€” เฆญเฆ•เงเฆคเฆฟ, เฆชเงเฆฐเฆพเฆฃ เฆ“ เฆฌเงˆเฆœเงเฆžเฆพเฆจเฆฟเฆ• เฆฌเงเฆฏเฆพเฆ–เงเฆฏเฆพ by hiranmoypati

เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡ เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆœเฆฒ เฆขเฆพเฆฒเฆพเฆฐ เฆชเง‡เฆ›เฆจเง‡เฆฐ เฆฐเฆนเฆธเงเฆฏ โ€” เฆญเฆ•เงเฆคเฆฟ, เฆชเงเฆฐเฆพเฆฃ เฆ“ เฆฌเงˆเฆœเงเฆžเฆพเฆจเฆฟเฆ• เฆฌเงเฆฏเฆพเฆ–เงเฆฏเฆพ

๐ŸŒง๏ธ เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธ เฆเฆฒเง‡เฆ‡ เฆ•เง‡เฆจ เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆœเฆฒ เฆขเฆพเฆฒเฆพ เฆนเฆฏเฆผ?

เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡ เฆฌเฆฟเฆถเง‡เฆท เฆ•เฆฐเง‡ เฆธเง‹เฆฎเฆฌเฆฐเง‡ (เฆธเง‹เฆฎเฆฌเฆพเฆฐ), เฆนเฆพเฆœเฆพเฆฐ เฆนเฆพเฆœเฆพเฆฐ เฆญเฆ•เงเฆค เฆถเฆฟเฆฌเฆฎเฆจเงเฆฆเฆฟเฆฐเง‡ เฆ—เฆฟเฆฏเฆผเง‡ เฆถเฆฟเฆฌเฆฒเฆฟเฆ™เงเฆ—เง‡ เฆœเฆฒ เฆขเฆพเฆฒเง‡เฆจ, เฆ—เฆ™เงเฆ—เฆพเฆœเฆฒ เฆจเฆฟเฆฏเฆผเง‡ เฆฏเฆพเฆจ, เฆ•เฆ–เฆจเง‹ เฆฆเงเฆง, เฆ•เฆ–เฆจเง‹ เฆฌเง‡เฆฒเฆชเฆพเฆคเฆพ เฆจเฆฟเฆฌเง‡เฆฆเฆจ เฆ•เฆฐเง‡เฆจเฅค เฆ•เฆฟเฆจเงเฆคเง เฆเฆ‡ เฆ†เฆšเฆพเฆฐเฆŸเฆพ เฆ•เง‡เฆฌเฆฒ เฆ…เฆจเงเฆง เฆญเฆ•เงเฆคเฆฟ เฆจเฆฏเฆผโ€”เฆเฆฐ เฆชเง‡เฆ›เฆจเง‡ เฆฐเฆฏเฆผเง‡เฆ›เง‡ เฆฎเฆนเฆพเฆชเงเฆฐเฆพเฆฃ, เฆœเงเฆฏเง‹เฆคเฆฟเฆทเฆถเฆพเฆธเงเฆคเงเฆฐ, เฆ†เฆงเงเฆฏเฆพเฆคเงเฆฎเฆฟเฆ• เฆฆเฆฐเงเฆถเฆจ เฆเฆฌเฆ‚ เฆเฆฎเฆจเฆ•เฆฟ เฆฌเงˆเฆœเงเฆžเฆพเฆจเฆฟเฆ• เฆฏเงเฆ•เงเฆคเฆฟเฆ“เฅค

เฆšเฆฒเงเฆจ, เฆœเฆพเฆจเฆฟ เฆ•เง‡เฆจ เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡เฆฐ เฆชเงเฆฐเฆฅเฆฎ เฆธเฆชเงเฆคเฆพเฆนเง‡เฆ‡ เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆœเฆฒ เฆขเฆพเฆฒเฆพเฆฐ เฆฐเง€เฆคเฆฟ เฆเฆค เฆ—เงเฆฐเงเฆคเงเฆฌเฆชเง‚เฆฐเงเฆฃ เฆนเฆฏเฆผเง‡ เฆ“เฆ เง‡เฅค


๐Ÿ เงง. เฆธเฆพเฆฎเงเฆฆเงเฆฐ เฆฎเฆจเงเฆฅเฆจ เฆ“ เฆจเง€เฆฒเฆ•เฆฃเงเฆ  เฆถเฆฟเฆฌเง‡เฆฐ เฆ•เฆพเฆนเฆฟเฆจเฆฟ

เฆนเฆฟเฆจเงเฆฆเง เฆชเงเฆฐเฆพเฆฃ เฆ…เฆจเงเฆธเฆพเฆฐเง‡, เฆฆเง‡เฆฌเฆคเฆพ เฆ“ เฆ…เฆธเงเฆฐเฆฆเง‡เฆฐ เฆฎเฆงเงเฆฏเง‡ เฆธเฆพเฆฎเงเฆฆเงเฆฐ เฆฎเฆจเงเฆฅเฆจ เฆšเฆฒเฆพเฆ•เฆพเฆฒเง€เฆจ เฆ‰เฆ เง‡ เฆ†เฆธเง‡ เฆเฆ• เฆฎเฆพเฆฐเฆพเฆคเงเฆฎเฆ• เฆฌเฆฟเฆทโ€”เฆนเฆพเฆฒเฆพเฆนเฆฒเฅค เฆเฆ‡ เฆฌเฆฟเฆทเง‡เฆฐ เฆชเงเฆฐเฆญเฆพเฆฌเง‡ เฆธเฆฎเฆ—เงเฆฐ เฆธเงƒเฆทเงเฆŸเฆฟเฆฐ เฆงเงเฆฌเฆ‚เฆธเง‡เฆฐ เฆ†เฆถเฆ™เงเฆ•เฆพ เฆคเงˆเฆฐเฆฟ เฆนเฆฏเฆผเฅค

เฆเฆ‡ เฆธเฆฎเฆฏเฆผ เฆฎเฆนเฆพเฆฆเง‡เฆฌ เฆถเฆฟเฆฌ เฆธเง‡เฆ‡ เฆฌเฆฟเฆท เฆชเฆพเฆจ เฆ•เฆฐเง‡เฆจ เฆเฆฌเฆ‚ เฆคเฆพ เฆ—เฆฒเฆพเฆฏเฆผ เฆงเฆพเฆฐเฆฃ เฆ•เฆฐเง‡เฆจโ€”เฆฏเฆพเฆฐ เฆซเฆฒเง‡ เฆคเฆพเฆเฆฐ เฆ—เฆฒเฆพ เฆจเง€เฆฒ เฆนเฆฏเฆผเง‡ เฆฏเฆพเฆฏเฆผเฅค เฆคเฆ–เฆจ เฆฅเง‡เฆ•เง‡เฆ‡ เฆคเฆฟเฆจเฆฟ “เฆจเง€เฆฒเฆ•เฆฃเงเฆ ” เฆจเฆพเฆฎเง‡ เฆชเฆฐเฆฟเฆšเฆฟเฆคเฅค เฆ•เฆฟเฆจเงเฆคเง เฆฌเฆฟเฆทเง‡เฆฐ เฆคเฆพเฆช เฆถเฆฟเฆฌเง‡เฆฐ เฆฆเง‡เฆนเง‡ เฆฌเงเฆฏเฆพเฆชเฆ• เฆ‰เฆคเงเฆคเฆพเฆช เฆธเงƒเฆทเงเฆŸเฆฟ เฆ•เฆฐเง‡เฅค

เฆเฆ‡ เฆ‰เฆคเงเฆคเฆพเฆช เฆชเงเฆฐเฆถเฆฎเฆจเง‡ เฆฆเง‡เฆฌเฆคเฆพเฆฐเฆพ, เฆ‹เฆทเฆฟเฆฐเฆพ, เฆเฆฌเฆ‚ เฆญเฆ•เงเฆคเฆฐเฆพ เฆ—เฆ™เงเฆ—เฆพเฆœเฆฒ, เฆ เฆพเฆจเงเฆกเฆพ เฆœเฆฒ, เฆฆเงเฆง เฆ“ เฆฌเง‡เฆฒเฆชเฆพเฆคเฆพ เฆฆเฆฟเฆฏเฆผเง‡ เฆถเฆฟเฆฌเฆ•เง‡ เฆธเงเฆจเฆพเฆจ เฆ•เฆฐเฆพเฆจเฅค

๐Ÿ“Œ เฆเฆ‡ เฆ˜เฆŸเฆจเฆพเฆŸเฆฟ เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡เฆ‡ เฆ˜เฆŸเง‡เฆ›เฆฟเฆฒ เฆฌเฆฒเง‡ เฆฌเฆฟเฆถเงเฆฌเฆพเฆธ เฆ•เฆฐเฆพ เฆนเฆฏเฆผเฅค เฆคเฆพเฆ‡ เฆเฆ‡ เฆฎเฆพเฆธเง‡ เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆœเฆฒ เฆขเฆพเฆฒเฆพเฆฐ เฆฐเง€เฆคเฆฟ เฆถเงเฆฐเง เฆนเฆฏเฆผเฅค


๐ŸŒ• เงจ. เฆšเฆจเงเฆฆเงเฆฐ เฆ“ เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡เฆฐ เฆธเฆฎเงเฆชเฆฐเงเฆ•

เฆถเงเฆฐเฆพเฆฌเฆฃ เฆถเฆฌเงเฆฆเฆŸเฆฟเฆฐ เฆ‰เงŽเฆชเฆคเงเฆคเฆฟ “เฆถเงเฆฐเฆฌเฆฃเฆพ” เฆจเฆ•เงเฆทเฆคเงเฆฐ เฆฅเง‡เฆ•เง‡, เฆฏเฆพ เฆšเฆจเงเฆฆเงเฆฐ เฆฆเงเฆฌเฆพเฆฐเฆพ เฆจเฆฟเฆฏเฆผเฆจเงเฆคเงเฆฐเฆฟเฆคเฅค
เฆ†เฆฐ เฆšเฆพเฆเฆฆ เฆ†เฆฌเฆพเฆฐ เฆถเฆฟเฆฌเง‡เฆฐ เฆœเฆŸเฆพเฆฏเฆผ เฆฌเฆฟเฆฐเฆพเฆœเฆฎเฆพเฆจ โ€” เฆคเฆพเฆ‡ เฆถเฆฟเฆฌเฆ•เง‡ เฆฌเฆฒเฆพ เฆนเฆฏเฆผ “เฆšเฆจเงเฆฆเงเฆฐเฆถเง‡เฆ–เฆฐ”เฅค

เฆเฆ‡ เฆฎเฆพเฆธเง‡ เฆšเฆพเฆเฆฆเง‡เฆฐ เฆถเฆ•เงเฆคเฆฟ เฆ…เฆคเงเฆฏเฆจเงเฆค เฆชเงเฆฐเฆฌเฆฒ, เฆคเฆพเฆ‡ เฆšเฆจเงเฆฆเงเฆฐเง‡เฆฐ เฆชเงเฆฐเฆญเฆพเฆฌเง‡ เฆฎเฆพเฆจเฆธเฆฟเฆ• เฆ…เฆธเงเฆฅเฆฟเฆฐเฆคเฆพ เฆฌเฆพเฆกเฆผเง‡เฅค
๐Ÿ‘‰ เฆถเฆฟเฆฌ เฆนเฆฒเง‡เฆจ เฆงเงเฆฏเฆพเฆจ เฆ“ เฆถเง€เฆคเฆฒเง‡เฆฐ เฆชเงเฆฐเฆคเง€เฆ• โ€” เฆคเฆพเฆ‡ เฆœเฆฒ เฆฆเฆฟเฆฏเฆผเง‡ เฆคเฆพเฆเฆฐ เฆชเง‚เฆœเฆพ เฆ•เฆฐเฆฒเง‡ เฆฎเฆพเฆจเฆธเฆฟเฆ• เฆถเฆพเฆจเงเฆคเฆฟ เฆชเฆพเฆ“เฆฏเฆผเฆพ เฆฏเฆพเฆฏเฆผเฅค


๐Ÿ•‰๏ธ เงฉ. เฆธเง‹เฆฎเฆฌเงเฆฐเฆค เฆ“ เฆถเงเฆฐเฆพเฆฌเฆฃเง‡เฆฐ เฆชเงเฆฐเฆฅเฆฎ เฆธเง‹เฆฎเฆฌเฆพเฆฐ

เฆธเง‹เฆฎเฆฌเฆพเฆฐ เฆ…เฆฐเงเฆฅเฆพเงŽ เฆธเง‹เฆฎ = เฆšเฆจเงเฆฆเงเฆฐเฅค
เฆถเฆฟเฆฌ เฆšเฆพเฆเฆฆเง‡เฆฐ เฆชเงเฆฐเฆคเง€เฆ•, เฆคเฆพเฆ‡ เฆธเง‹เฆฎเฆฌเฆพเฆฐ เฆถเฆฟเฆฌเง‡เฆฐ เฆ†เฆฐเฆพเฆงเฆจเฆพ เฆ•เฆฐเฆพเฆฐ เฆฌเฆฟเฆถเง‡เฆท เฆซเฆฒ เฆฐเฆฏเฆผเง‡เฆ›เง‡เฅค

เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡เฆฐ เฆชเงเฆฐเฆฅเฆฎ เฆธเง‹เฆฎเฆฌเฆพเฆฐเง‡ เฆœเฆฒ เฆขเฆพเฆฒเฆพเฆฐ เฆฎเฆพเฆงเงเฆฏเฆฎเง‡ เฆญเฆ•เงเฆคเฆฐเฆพ เฆฌเงเฆฐเฆคเง‡เฆฐ เฆธเง‚เฆšเฆจเฆพ เฆ•เฆฐเง‡เฆจ, เฆฏเฆพ เฆคเฆพเฆฆเง‡เฆฐ เฆœเง€เฆฌเฆจเง‡ เฆถเฆพเฆจเงเฆคเฆฟ, เฆธเฆพเฆซเฆฒเงเฆฏ เฆ“ เฆชเงเฆฃเงเฆฏ เฆ…เฆฐเงเฆœเฆจเง‡ เฆธเฆพเฆนเฆพเฆฏเงเฆฏ เฆ•เฆฐเง‡เฅค


๐Ÿšถโ€โ™‚๏ธ เงช. เฆ•เฆพเฆเฆ“เฆฏเฆผเฆพเฆฐ เฆฏเฆพเฆคเงเฆฐเฆพ เฆ“ เฆ—เฆ™เงเฆ—เฆพเฆœเฆฒ เฆจเฆฟเฆฌเง‡เฆฆเฆจ

เฆ‰เฆคเงเฆคเฆฐ เฆญเฆพเฆฐเฆค, เฆฌเฆฟเฆนเฆพเฆฐ, เฆเฆพเฆกเฆผเฆ–เฆฃเงเฆก, เฆชเฆถเงเฆšเฆฟเฆฎเฆฌเฆ™เงเฆ—เง‡เฆฐ เฆ…เฆจเง‡เฆ• เฆœเฆพเฆฏเฆผเฆ—เฆพเฆฏเฆผ เฆญเฆ•เงเฆคเฆฐเฆพ เฆฆเง‚เฆฐ-เฆฆเง‚เฆฐเฆพเฆจเงเฆค เฆฅเง‡เฆ•เง‡ เฆ—เฆ™เงเฆ—เฆพเฆœเฆฒ เฆธเฆ‚เฆ—เงเฆฐเฆน เฆ•เฆฐเง‡ เฆนเฆพเฆเฆŸเฆคเง‡ เฆนเฆพเฆเฆŸเฆคเง‡ เฆฎเฆจเงเฆฆเฆฟเฆฐเง‡ เฆชเงŒเฆเฆ›เง‡ เฆถเฆฟเฆฌเฆฒเฆฟเฆ™เงเฆ—เง‡ เฆœเฆฒ เฆขเฆพเฆฒเง‡เฆจเฅค เฆเฆ•เง‡ เฆฌเฆฒเง‡ เฆ•เฆพเฆเฆ“เฆฏเฆผเฆพเฆฐ เฆฏเฆพเฆคเงเฆฐเฆพเฅค

เฆเฆ‡ เฆฏเฆพเฆคเงเฆฐเฆพ เฆถเงเฆฐเฆพเฆฌเฆฃเง‡เฆฐ เฆถเงเฆฐเงเฆคเง‡เฆ‡ เฆธเฆฌเฆšเง‡เฆฏเฆผเง‡ เฆฌเง‡เฆถเฆฟ เฆฆเง‡เฆ–เฆพ เฆฏเฆพเฆฏเฆผเฅค
๐Ÿ”ฑ เฆเฆ‡ เฆ•เฆฐเงเฆฎ เฆญเฆ•เงเฆคเฆฆเง‡เฆฐ เฆชเฆพเฆชเฆฎเง‹เฆšเฆจ, เฆ•เฆพเฆฎเฆจเฆพ-เฆฌเฆพเฆธเฆจเฆพเฆฐ เฆชเง‚เฆฐเฆฃ เฆเฆฌเฆ‚ เฆ†เฆคเงเฆฎเฆฟเฆ• เฆ‰เฆจเงเฆจเฆคเฆฟเฆฐ เฆชเฆฅ เฆ–เงเฆฒเง‡ เฆฆเง‡เฆฏเฆผเฅค


๐Ÿง˜โ€โ™€๏ธ เงซ. เฆ†เฆงเงเฆฏเฆพเฆคเงเฆฎเฆฟเฆ• เฆ“ เฆฎเฆจเง‹เฆฌเงˆเฆœเงเฆžเฆพเฆจเฆฟเฆ• เฆฌเงเฆฏเฆพเฆ–เงเฆฏเฆพ

  • เฆจเฆฟเฆฐเฆฌเฆฟเฆšเงเฆ›เฆฟเฆจเงเฆจเฆญเฆพเฆฌเง‡ เฆถเฆฟเฆฌเฆฒเฆฟเฆ™เงเฆ—เง‡ เฆœเฆฒ เฆขเฆพเฆฒเฆฒเง‡ เฆเฆ• เฆงเฆฐเฆจเง‡เฆฐ เฆงเงเฆฏเฆพเฆจเฆฎเฆ—เงเฆจ เฆ…เฆฌเฆธเงเฆฅเฆพ เฆคเงˆเฆฐเฆฟ เฆนเฆฏเฆผเฅค
  • เฆ “เฆŸเงเฆชเฆŸเฆพเฆช” เฆถเฆฌเงเฆฆ เฆฎเฆจเฆ•เง‡ เฆธเงเฆฅเฆฟเฆฐ เฆ•เฆฐเง‡, เฆ…เฆธเงเฆฅเฆฟเฆฐเฆคเฆพ เฆฆเง‚เฆฐ เฆ•เฆฐเง‡เฅค
  • เฆเฆ‡เฆญเฆพเฆฌเง‡ เฆญเฆ•เงเฆค เฆถเงเฆงเง เฆถเฆฟเฆฌเฆ•เง‡ เฆชเง‚เฆœเฆพ เฆ•เฆฐเง‡ เฆจเฆพ, เฆจเฆฟเฆœเง‡เฆ•เง‡เฆ“ เฆ†เฆงเงเฆฏเฆพเฆคเงเฆฎเฆฟเฆ•เฆญเฆพเฆฌเง‡ เฆชเฆฐเฆฟเฆถเงเฆฆเงเฆง เฆ•เฆฐเง‡เฅค

๐Ÿงช เงฌ. เฆฌเงˆเฆœเงเฆžเฆพเฆจเฆฟเฆ• เฆฆเงƒเฆทเงเฆŸเฆฟเฆญเฆ™เงเฆ—เฆฟ

  • เฆถเฆฟเฆฌเฆฒเฆฟเฆ™เงเฆ— เฆ•เฆพเฆฒเง‹ เฆชเฆพเฆฅเฆฐเง‡เฆฐ เฆคเงˆเฆฐเฆฟเฅค เฆœเฆฒ เฆชเฆกเฆผเฆฒเง‡ เฆชเฆพเฆฅเฆฐเง‡เฆฐ เฆคเฆพเฆชเฆฎเฆพเฆคเงเฆฐเฆพ เฆนเงเฆฐเฆพเฆธ เฆชเฆพเฆฏเฆผ, เฆฏเฆพ เฆฎเฆจเงเฆฆเฆฟเฆฐเง‡ เฆถเง€เฆคเฆฒเฆคเฆพ เฆฌเฆœเฆพเฆฏเฆผ เฆฐเฆพเฆ–เง‡เฅค
  • เฆเฆฐ เฆซเฆฒเง‡ เฆงเงเฆฏเฆพเฆจ, เฆชเงเฆฐเฆพเฆฐเงเฆฅเฆจเฆพ เฆ“ เฆฎเฆพเฆจเฆธเฆฟเฆ• เฆเฆ•เฆพเฆ—เงเฆฐเฆคเฆพ เฆธเฆนเฆœ เฆนเฆฏเฆผเฅค
  • เฆชเฆพเฆถเฆพเฆชเฆพเฆถเฆฟ, เฆเฆŸเฆฟ เฆเฆ•เฆŸเฆฟ เฆชเงเฆฐเฆคเง€เฆ•เง€ เฆœเฆฒเฆงเฆพเฆฐเฆพ โ€” เฆฏเฆพ เฆœเง€เฆฌเฆจเฆšเฆ•เงเฆฐ, เฆชเงเฆฐเฆฌเฆพเฆนเฆฎเฆพเฆจเฆคเฆพ เฆ“ เฆถเงเฆฆเงเฆงเฆคเฆพเฆฐเฆ“ เฆชเงเฆฐเฆคเง€เฆ•เฅค

โœ… เฆ‰เฆชเฆธเฆ‚เฆนเฆพเฆฐ

เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡เฆฐ เฆชเงเฆฐเฆฅเฆฎ เฆธเฆชเงเฆคเฆพเฆนเง‡ เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆœเฆฒ เฆขเฆพเฆฒเฆพเฆฐ เฆฐเง€เฆคเฆฟ เฆถเงเฆงเงเฆ‡ เฆงเฆฐเงเฆฎเง€เฆฏเฆผ เฆจเฆฏเฆผ, เฆเฆŸเฆฟ เฆเฆ• เฆฌเฆนเงเฆฎเฆพเฆคเงเฆฐเฆฟเฆ• เฆ†เฆšเฆพเฆฐโ€”เฆฏเฆพ เฆชเงเฆฐเฆพเฆฃ, เฆœเงเฆฏเง‹เฆคเฆฟเฆท, เฆ†เฆงเงเฆฏเฆพเฆคเงเฆฎเฆฟเฆ•เฆคเฆพ เฆ“ เฆฎเฆจเง‹เฆฌเฆฟเฆœเงเฆžเฆพเฆจเฆ•เง‡ เฆเฆ• เฆธเงเฆคเง‹เฆฏเฆผ เฆ—เฆพเฆเฆฅเง‡เฅค

เฆถเฆฟเฆฌ เฆฎเฆพเฆจเง‡ เฆถเฆพเฆจเงเฆคเฆฟ, เฆถเงเฆฆเงเฆงเฆฟ, เฆงเงเฆฏเฆพเฆจเฅค เฆœเฆฒ เฆฎเฆพเฆจเง‡ เฆถเง€เฆคเฆฒเฆคเฆพ, เฆชเงเฆฐเฆฌเฆพเฆน, เฆชเฆฌเฆฟเฆคเงเฆฐเฆคเฆพเฅค
เฆเฆ‡ เฆฆเงเฆ‡เฆฏเฆผเง‡เฆฐ เฆฎเฆฟเฆฒเฆจเฆ‡ เฆนเฆฏเฆผ เฆถเงเฆฐเฆพเฆฌเฆฃ เฆฎเฆพเฆธเง‡, เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆเฆ• เฆขเฆพเฆฒ เฆ เฆพเฆจเงเฆกเฆพ เฆœเฆฒ เฆขเฆพเฆฒเฆพเฆฐ เฆฎเฆพเฆงเงเฆฏเฆฎเง‡เฅค

๐Ÿ”” เฆ†เฆชเฆจเฆฟ เฆ•เฆฟ เฆเฆฌเฆพเฆฐเง‡เฆฐ เฆถเงเฆฐเฆพเฆฌเฆฃ เฆธเง‹เฆฎเฆฌเฆพเฆฐเง‡ เฆถเฆฟเฆฌเง‡เฆฐ เฆฎเฆพเฆฅเฆพเฆฏเฆผ เฆเฆ•เฆฌเฆพเฆŸเฆฟ เฆœเฆฒ เฆขเฆพเฆฒเฆฌเง‡เฆจ?


๐Ÿ“Œ เฆชเง‹เฆธเงเฆŸเฆŸเฆฟ เฆญเฆพเฆฒเง‹ เฆฒเฆพเฆ—เฆฒเง‡ เฆถเง‡เฆฏเฆผเฆพเฆฐ เฆ•เฆฐเงเฆจเฅค
๐ŸŒ เฆ†เฆฐเฆ“ เฆงเฆฐเงเฆฎเง€เฆฏเฆผ เฆ“ เฆ†เฆงเงเฆฏเฆพเฆคเงเฆฎเฆฟเฆ• เฆฌเงเฆฒเฆ— เฆชเฆกเฆผเฆคเง‡ เฆญเฆฟเฆœเฆฟเฆŸ เฆ•เฆฐเงเฆจ: hiranmoypati.com

Basic Kali Linux Commands: A Beginner's Guide for Ethical Hacking (Part -5)

Basic Kali Linux Commands: A Beginner’s Guide for Ethical Hacking (Part -5)


In this blog, weโ€™ll walk through 12 super useful Kali Linux commands. Weโ€™ll keep things simple, beginner-friendly, and realโ€”because learning should be fun, not scary! ๐Ÿ˜Š

Letโ€™s dive into:

  • tac
  • od
  • od --all
  • sleep
  • uft
  • head
  • tail
  • sort
  • lsof
  • lspci
  • grep

1. tac: Print File in Reverse

While cat displays a file’s contents from top to bottom, tac does the oppositeโ€”it shows the lines from bottom to top.

๐Ÿ“˜ Syntax:

tac filename.txt

๐Ÿ“Œ Example:

Suppose you have a file lines.txt with the following lines:

Line One
Line Two
Line Three

Run:

tac lines.txt

๐Ÿ–ฅ๏ธ Output:

Line Three
Line Two
Line One

โœ… Use Case:

Useful for reading logs in reverse order or analyzing data bottom-up.


2. od: Octal Dump

od (Octal Dump) lets you view binary data in human-readable format like hexadecimal, octal, or ASCII.

๐Ÿ“˜ Syntax:

od filename

๐Ÿ“Œ Example:

echo "hello" > demo.txt
od demo.txt

๐Ÿ–ฅ๏ธ Output:

0000000 150 145 154 154 157 012
0000006

Each number represents a character in ASCII.


3. od --all: Full Format Dump

You can use od with the --format=all (or simply --all) option to see data in all common formats: hexadecimal, octal, ASCII, etc.

๐Ÿ“˜ Syntax:

od --format=all filename

๐Ÿ“Œ Example:

od --format=all demo.txt

๐Ÿ–ฅ๏ธ Output includes:

  • Character representation
  • Octal values
  • Hex values
  • ASCII values

This is especially helpful in reverse engineering or malware analysis.


4. sleep: Pause Execution

Need to delay a process? sleep is your go-to command to pause script execution for a specific time.

๐Ÿ“˜ Syntax:

sleep [seconds]

๐Ÿ“Œ Example:

sleep 5

๐Ÿ• Waits for 5 seconds before executing the next command.

โœ… Use Case:

Perfect for automating scripts with controlled delays or cooldowns between actions.


5. uft: โš ๏ธ Possible Mistype?

There is no standard Linux command called uft. Did you mean:

  • uftpd โ€“ a lightweight FTP server?
  • uft โ€“ as a typo for cut or uftp?

Please verify and Iโ€™ll update this section. (You can skip this for now if it was a typo.)


6. head: Display First Lines

Want to quickly preview the top of a file? Use head!

๐Ÿ“˜ Syntax:

head filename

By default, it shows the first 10 lines.

๐Ÿ“Œ Example:

head demo.txt

To show a specific number of lines:

head -n 5 demo.txt

7. tail: Display Last Lines

The opposite of head, tail shows the last lines of a file.

๐Ÿ“˜ Syntax:

tail filename

๐Ÿ“Œ Example:

tail -n 3 demo.txt

โœ… Use Case:

Frequently used for watching log files in real-time:

tail -f /var/log/syslog

8. sort: Organize Text

Sort the lines in a file alphabetically or numerically.

๐Ÿ“˜ Syntax:

sort filename

๐Ÿ“Œ Example:

If names.txt contains:

Zebra
Apple
Mango

Run:

sort names.txt

๐Ÿ–ฅ๏ธ Output:

Apple
Mango
Zebra

Add -r to sort in reverse.


9. lsof: List Open Files

lsof (List Open Files) shows which files are currently open by processes.

๐Ÿ“˜ Syntax:

lsof

๐Ÿ“Œ Example:

lsof -u yourusername

List all open files for a specific user.

Another one:

lsof -i :80

Shows which process is using port 80.

โœ… Use Case:

Ideal for troubleshooting file locks, open ports, and network issues.


10. lspci: List PCI Devices

Curious about your hardware? Use lspci to display information about PCI buses and connected devices.

๐Ÿ“˜ Syntax:

lspci

๐Ÿ“Œ Example Output:

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC
00:01.0 VGA compatible controller: VMware SVGA II Adapter

โœ… Use Case:

Perfect for checking graphics cards, network cards, and more.


11. grep: Pattern Matching Hero

grep is one of the most powerful tools in Linux. It searches for patterns (text) inside files.

๐Ÿ“˜ Syntax:

grep "pattern" filename

๐Ÿ“Œ Example:

grep "error" /var/log/syslog

This finds all lines that contain the word โ€œerrorโ€.

Use with -i to ignore case:

grep -i "ERROR" syslog

Combine with ps to find running processes:

ps aux | grep apache

โœ… Use Case:

  • Log analysis
  • Keyword search
  • Filtering output

Bonus Tips ๐Ÿ’ก

Here are some practical combos and tricks using the above commands:

โžค Monitor a Log File for Errors in Real Time:

tail -f /var/log/syslog | grep "error"

โžค Wait Before Executing Another Command:

sleep 10 && echo "10 seconds later..."

โžค Reverse and Sort a File:

tac names.txt | sort

โžค Display Hardware Info:

lspci | grep VGA

Final Words

Learning Kali Linux commands doesnโ€™t have to be overwhelming. Start small, experiment, and use commands like tac, od, head, grep, and lsof to get comfortable navigating and managing your system like a pro.

If youโ€™re serious about ethical hacking or system administration, these commands are more than just toolsโ€”theyโ€™re your daily companions. Bookmark this guide and practice often!


๐Ÿ‘‹ Letโ€™s Connect!

If you enjoyed this post, explore more beginner-friendly tech blogs at hiranmoypati.com. Whether you’re learning ethical hacking, Excel, or growing your digital brandโ€”I’ve got you covered.

Happy hacking, and see you in the next blog! ๐Ÿš€


Learn Kali LinuxBeginnerโ€™s Roadmap to Ethical Hacking (2025) (3)

Basic Kali Linux Commands: A Beginner’s Guide for Ethical Hacking (Part -4)

Kali Linux commands: more, less, man, uptime, id, lsusb, lspci, ulimit, wc, and lsblk.


Whether you’re just starting out with Kali Linux or diving deeper into your cybersecurity journey, mastering essential commands is the key to working efficiently in the terminal. Kali Linux, a Debian-based system widely used for penetration testing and ethical hacking, offers a rich collection of commands that give you powerful control over your system.

In this friendly guide, weโ€™ll explore 10 fundamental commands that every Kali Linux user should know: more, less, man, uptime, id, lsusb, lspci, ulimit, wc, and lsblk. Weโ€™ll explain each command with real-life examples and practical guidance so you can apply them immediately in your workflow.


๐Ÿ” 1. more โ€“ View Content One Page at a Time

The more command lets you view the content of a file one screen at a time. This is super handy when you’re dealing with long configuration or log files.

๐Ÿ“˜ Syntax:

more filename

โœ… Example:

more /etc/passwd

This will display the /etc/passwd file page-by-page. Press Space to go to the next page or q to quit.

๐Ÿ“Œ Use Case:

When a log file is too big for cat, use more to scroll through comfortably.


๐Ÿ“œ 2. less โ€“ A More Powerful Pager

less is similar to more, but with more features. You can scroll backward as well as forward. It doesnโ€™t load the entire file at once, which makes it faster and more efficient.

๐Ÿ“˜ Syntax:

less filename

โœ… Example:

less /var/log/syslog

Press Space to go forward, b to go back, /searchterm to search inside the file, and q to quit.

๐Ÿ†š Why less is better than more:

  • Bidirectional navigation
  • Supports search
  • Loads faster

๐Ÿ“– 3. man โ€“ The Manual Pages

Want to know how a command works? Use the man command to open the manual for it.

๐Ÿ“˜ Syntax:

man commandname

โœ… Example:

man ls

This will open the manual for the ls command. Use arrow keys to navigate.

๐ŸŽ“ Pro Tip:

If you’re confused about any command, just type man before it. For example:

man grep

๐Ÿ•’ 4. uptime โ€“ Check System Running Time

uptime shows how long the system has been running, along with the current time, number of users, and system load averages.

๐Ÿ“˜ Syntax:

uptime

โœ… Example Output:

14:21:36 up 3 hours, 2 users, load average: 0.15, 0.10, 0.05
  • 3 hours: Time since the system was last rebooted
  • 2 users: Active sessions
  • Load average: System load over 1, 5, and 15 minutes

๐Ÿ›  Use Case:

Use uptime during performance checks or troubleshooting.


๐Ÿ‘ค 5. id โ€“ Get User and Group Info

The id command displays your user ID (UID), group ID (GID), and group memberships.

๐Ÿ“˜ Syntax:

id

โœ… Example Output:

uid=1000(kali) gid=1000(kali) groups=1000(kali),27(sudo)

You can also check another user’s info:

id root

๐ŸŽฏ Why it matters:

Great for checking permissions or confirming whether you have sudo privileges.


๐Ÿ”Œ 6. lsusb โ€“ List USB Devices

The lsusb command lists all USB buses and connected USB devices.

๐Ÿ“˜ Syntax:

lsusb

โœ… Example Output:

Bus 001 Device 003: ID 1a2b:3c4d Kingston DataTraveler
Bus 001 Device 002: ID 0e0f:0002 VMware Virtual USB

๐Ÿ’ก Use Case:

Troubleshooting USB device issues or checking if a USB drive is detected.


๐Ÿ’ป 7. lspci โ€“ List PCI Devices

Use lspci to display all PCI buses and devices (like network cards, sound cards, etc.).

๐Ÿ“˜ Syntax:

lspci

โœ… Example Output:

00:1f.2 SATA controller: Intel Corporation Device
00:02.0 VGA compatible controller: Intel Corporation HD Graphics

๐Ÿ” Helpful For:

  • Finding your graphics or sound card model
  • Checking driver support for PCI hardware

๐Ÿงฑ 8. ulimit โ€“ Control Shell Resource Limits

ulimit is used to control the resources available to the shell and processes started by it. You can limit memory usage, open files, CPU time, etc.

๐Ÿ“˜ Syntax:

ulimit [option]

โœ… Example:

Check current file size limit:

ulimit -f

Set a limit on the size of files created:

ulimit -f 1000

This limits file size to 1000 blocks (~1MB).

โš  Note:

You need to use ulimit carefullyโ€”misusing it can prevent certain operations.


๐Ÿ”ข 9. wc โ€“ Word Count in a File

wc stands for word count, but it can also count lines and characters.

๐Ÿ“˜ Syntax:

wc [options] filename

โœ… Example:

wc /etc/passwd

Output:

45  72 2048 /etc/passwd

This means:

  • 45 lines
  • 72 words
  • 2048 characters

Popular Options:

  • -l: count lines only
  • -w: count words
  • -c: count bytes
wc -l myfile.txt

๐Ÿ’ฝ 10. lsblk โ€“ List Block Devices

lsblk displays information about all available or connected block devices (like hard drives, SSDs, USBs).

๐Ÿ“˜ Syntax:

lsblk

โœ… Example Output:

NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  100G  0 disk
โ”œโ”€sda1   8:1    0   50G  0 part /
โ”œโ”€sda2   8:2    0   50G  0 part /home

๐Ÿ”ง Use Case:

Helpful when managing partitions or checking disk mounts.


๐Ÿง  Final Thoughts

These 10 Kali Linux commands are the foundation of any power user’s toolset. Whether you’re browsing logs, checking uptime, monitoring devices, or reading manuals, they help you get things done faster and smarter.

๐Ÿ›ก Why These Commands Matter in Kali Linux:

As a penetration tester or ethical hacker, youโ€™ll often need to:

  • Read configuration files (more, less)
  • Understand system usage (uptime, ulimit)
  • Gather hardware info (lsusb, lspci, lsblk)
  • Learn tools in real-time (man)
  • Count data and audit logs (wc)
  • Check user info (id)

Mastering them will make your terminal experience smoother and more productive.


๐Ÿš€ Keep Practicing!

Here’s a mini challenge for you:
Try running each of these commands on your Kali Linux terminal and explore their options using the man pages. For example:

man lsblk

Youโ€™ll be surprised how many advanced tricks each simple command offers!


If you enjoyed this guide, donโ€™t forget to check out more tutorials and tech tips at hiranmoypati.com โ€” your go-to place for learning ethical hacking, Linux, and tech in a beginner-friendly way.

Happy Hacking! ๐Ÿ’ปโœจ


Darjeeling Tour Planner โ€“ Complete Itinerary, Best Time to Visit & Must-Visit Places

Darjeeling Tour Planner โ€“ Complete Itinerary, Best Time to Visit & Must-Visit Places

Planning a dream trip to Darjeeling? Youโ€™re in the right place! Known as the “Queen of the Hills”, Darjeeling offers a magical blend of breathtaking Himalayan views, colonial charm, lush tea gardens, and a peaceful escape from the chaos of city life. Whether youโ€™re a solo traveler, a romantic couple, or a family with kids, Darjeeling promises unforgettable moments.

In this blog, weโ€™ll guide you through:

  • The best time to visit Darjeeling
  • A day-wise itinerary with estimated costs
  • The top attractions
  • Travel tips, food recommendations, and more!

๐Ÿ—“๏ธ Best Time to Visit Darjeeling

SeasonMonthsHighlights
SpringMarch โ€“ AprilClear skies, blooming rhododendrons
SummerMay โ€“ JunePleasant weather, ideal for sightseeing
AutumnSeptember โ€“ NovemberCrisp air, best mountain views
WinterDecember โ€“ FebruarySnow in nearby areas, chilly weather
Avoid MonsoonJuly โ€“ AugustHeavy rain and landslides possible

โœ… Best time overall: March to June & September to November
โŒ Avoid: July & August (due to rain and roadblocks)


๐Ÿงณ How to Reach Darjeeling

  • By Air: Nearest airport is Bagdogra (IXB) โ€“ 70 km from Darjeeling.
  • By Train: Nearest major railway station is New Jalpaiguri (NJP).
  • By Road: Shared taxis or private cabs available from Siliguri, NJP or Bagdogra.

๐Ÿš— Taxi Fare (One-way): โ‚น2,000 โ€“ โ‚น3,000 (private), โ‚น300 โ€“ โ‚น400 (shared)


๐Ÿ—บ๏ธ 5-Day Darjeeling Itinerary with Budget

Letโ€™s plan a 5-day Darjeeling tour including sightseeing, food, and lodging for a comfortable trip.

โœจ Day 1: Arrival & Local Walk

  • Arrive at NJP/Bagdogra โ†’ Travel to Darjeeling (3-4 hrs)
  • Check-in at hotel
  • Evening walk to Mall Road, enjoy coffee at Glenaryโ€™s
  • Explore Chowrasta and buy souvenirs

๐Ÿ’ฐ Approx. Cost:

  • Taxi: โ‚น2,500
  • Hotel: โ‚น1,500 (budget) โ€“ โ‚น4,000 (mid-range)
  • Food: โ‚น400

๐ŸŒ„ Day 2: Sunrise at Tiger Hill + Local Sightseeing

  • 4 AM: Drive to Tiger Hill to watch the sunrise over Kanchenjunga
  • On the way back, visit:
    • Batasia Loop & War Memorial
    • Ghoom Monastery
  • Post-breakfast:
    • Darjeeling Zoo & Himalayan Mountaineering Institute
    • Tenzing Rock
    • Peace Pagoda (Japanese Temple)

๐Ÿ’ฐ Approx. Cost:

  • Cab (half day): โ‚น1,500
  • Entry tickets: โ‚น300
  • Food: โ‚น500

๐Ÿš‚ Day 3: Toy Train & Tea Garden

  • Ride the Darjeeling Himalayan Railway (UNESCO World Heritage Toy Train) โ€“ Joy Ride (Darjeeling to Ghoom and back)
  • Visit Happy Valley Tea Estate โ€“ Tea garden walk and tasting session
  • Evening: Sunset from Observatory Hill

๐Ÿ’ฐ Approx. Cost:

  • Toy Train: โ‚น1,000 (1st Class), โ‚น600 (2nd Class)
  • Tea Garden entry: โ‚น200
  • Food + Misc: โ‚น600

๐Ÿž๏ธ Day 4: Day Trip to Mirik or Lamahatta

Option A: Mirik Lake โ€“ Serene lake, boating, pine forests
Option B: Lamahatta Eco Park โ€“ Romantic nature walk, forest picnic

  • En route: Stop at Jorpokhri, Simana View Point, Indo-Nepal border

๐Ÿ’ฐ Approx. Cost:

  • Cab (full day): โ‚น3,000 (can be shared among 4 people)
  • Food: โ‚น500
  • Entry: โ‚น100

๐Ÿ›๏ธ Day 5: Souvenirs & Departure

  • Visit Bhutia Market and Tibetan Refugee Center for shopping
  • Try local momo, thukpa one last time!
  • Depart for NJP/Bagdogra

๐Ÿ’ฐ Approx. Cost:

  • Shopping: โ‚น1,000 (optional)
  • Taxi to NJP: โ‚น2,500

๐Ÿจ Where to Stay in Darjeeling?

CategoryBudget Range (Per Night)Suggestions
Budgetโ‚น1,000 โ€“ โ‚น1,800Revolver, Smriya Homestay
Mid-rangeโ‚น2,000 โ€“ โ‚น4,000Dekeling Hotel, Sinclairs Darjeeling
Luxuryโ‚น5,000+Mayfair Darjeeling, Elgin Hotel

๐ŸŒŸ Top 10 Must-Visit Places in Darjeeling

  1. Tiger Hill โ€“ Sunrise and Himalayan peaks
  2. Batasia Loop โ€“ Scenic train spot
  3. Darjeeling Zoo โ€“ Red pandas and snow leopards
  4. Himalayan Mountaineering Institute (HMI)
  5. Peace Pagoda & Japanese Temple
  6. Darjeeling Toy Train (Joy Ride)
  7. Tea Gardens (Happy Valley)
  8. Ghoom Monastery
  9. Mirik Lake or Lamahatta
  10. Observatory Hill & Mahakal Temple

๐Ÿฝ๏ธ What to Eat in Darjeeling?

  • Momo (steamed dumplings)
  • Thukpa (Tibetan noodle soup)
  • Darjeeling tea (must try!)
  • Sael Roti, Aloo Dum
  • Bakeries like Glenaryโ€™s, Keventers

๐Ÿ’ฐ Estimated Total Budget (Per Person)

CategoryBudget (Approx)
Travel (to & fro NJP)โ‚น5,000
Hotel (4 nights)โ‚น6,000 โ€“ โ‚น12,000
Foodโ‚น2,000 โ€“ โ‚น3,000
Sightseeing & Entryโ‚น2,500 โ€“ โ‚น4,000
Miscellaneous/Shoppingโ‚น1,500
Totalโ‚น17,000 โ€“ โ‚น25,000

๐ŸŽ’ Pro Tip: Traveling in a group will reduce cab & hotel costs significantly!


โœ… Travel Tips

  • Carry light woolens in summer, heavy jackets in winter
  • Book the toy train and hotels in advance during peak season
  • Use local shared taxis if on a tight budget
  • Respect the local culture and environment

๐Ÿ“ธ Final Thoughts

Darjeeling is not just a destination โ€“ itโ€™s an experience wrapped in misty hills, colonial charm, soulful tea, and unmatched serenity. With this planner, you’re all set to have a well-organized, memorable trip that balances comfort, exploration, and budget.

If you need help booking packages or a custom itinerary, feel free to contact us at hiranmoypati.com โ€“ weโ€™d be happy to assist you!

๐Ÿ”— Stay tuned for more travel guides, photography tips, and itineraries right here on hiranmoypati.com.
๐Ÿ“ท Follow us on Instagram @hiranmoy_pati for travel stories and reels!


Basic Kali Linux Commands: A Beginner's Guide for Ethical Hacking (Part -3)

Basic Kali Linux Commands: A Beginner’s Guide for Ethical Hacking (Part -3)


Welcome to another helpful and beginner-friendly blog from hiranmoypati.com! Today, weโ€™re diving into the core of every Linux system โ€“ the command line. If you’re learning Kali Linux for ethical hacking, cybersecurity, or even personal exploration, youโ€™ll quickly realize that mastering the terminal is crucial.

In this blog, weโ€™ll walk you through some of the most commonly used and helpful commands in Kali Linux:
echo, cat, mmv, ps, ps aux, vi, nano, free, and df.

Letโ€™s break them down with simple explanations, practical examples, and a friendly toneโ€”so even if youโ€™re a beginner, youโ€™ll feel confident using them in your daily Linux life.


๐Ÿ”Š 1. echo โ€“ Display a Line of Text

The echo command is used to display a message or print text to the terminal.

๐Ÿงช Example:

echo "Welcome to hiranmoypati.com"

๐Ÿง  Output:

Welcome to hiranmoypati.com

You can also use echo to display the value of variables:

name="Hiranmoy"
echo "Hello, $name!"

Output:

Hello, Hiranmoy!

echo is often used in shell scripts to display output or log messages.


๐Ÿ“„ 2. cat โ€“ View Content of Files

The cat command (short for “concatenate”) allows you to read and display the contents of files.

๐Ÿงช Example:

cat file.txt

๐Ÿง  Output:

Shows everything inside file.txt.

Want to create a file with cat?

cat > myfile.txt

Now type something and press Ctrl + D to save it.

To append content to an existing file:

cat >> myfile.txt

Great for viewing logs or quick notes!


๐Ÿ” 3. mmv โ€“ Move/Batch Rename Files

mmv is a powerful tool for batch-renaming and moving files using wildcards. Itโ€™s not installed by default, so youโ€™ll need to install it:

sudo apt install mmv

๐Ÿงช Example:

mmv "*.txt" "#1.md"

This will rename all .txt files to .md (e.g., notes.txt becomes notes.md).

Another example:

mmv "image_#1.jpg" "photo_#1.jpg"

Super useful for managing a bunch of files at once, especially in scripts.


๐Ÿ” 4. ps โ€“ Process Status

The ps command shows information about active processes.

๐Ÿงช Example:

ps

๐Ÿง  Output:

Shows your current shell session processes. To see more detailed process lists, use ps aux (see next section).

This is great for checking whatโ€™s running and their process IDs (PIDs), which can be useful for stopping unresponsive tasks.


๐Ÿ”ฌ 5. ps aux โ€“ Detailed View of All Processes

This is an expanded version of ps. It shows all processes running on your system, not just those belonging to the current user.

๐Ÿงช Example:

ps aux

๐Ÿง  Output:

Youโ€™ll see columns like:

  • USER: Who started the process
  • PID: Process ID
  • %CPU and %MEM: Resource usage
  • COMMAND: The actual command or program

Need to find a specific process?

ps aux | grep firefox

This filters the results to only show processes with โ€œfirefoxโ€ in them.


โœ๏ธ 6. vi โ€“ The Powerful Text Editor

vi is a classic and lightweight terminal-based text editor. It can be intimidating at first, but itโ€™s extremely powerful once you get the hang of it.

๐Ÿงช Opening a File:

vi test.txt

Basic vi commands:

  • Press i to enter insert mode
  • Type your content
  • Press Esc to exit insert mode
  • Type :w to save
  • Type :q to quit
  • Use :wq to save and quit

If you make a mistake:

:q!

Quits without saving.

vi is handy when youโ€™re SSHing into a server and need a quick, lightweight editor.


๐Ÿงพ 7. nano โ€“ The Beginner-Friendly Text Editor

Not a fan of vi? No worries! nano is here.

Nano is simple and comes with on-screen shortcuts. Itโ€™s perfect for beginners.

๐Ÿงช Example:

nano myfile.txt

Start typing directly. Use the following keys:

  • Ctrl + O to save
  • Enter to confirm the filename
  • Ctrl + X to exit

Super easy and intuitiveโ€”great for editing configuration files or scripts.


๐Ÿง  8. free โ€“ Show Memory Usage

Want to know how much RAM is available or used? Use free.

๐Ÿงช Example:

free -h

๐Ÿง  Output:

              total        used        free      shared  buff/cache   available
Mem:           7.6G        2.1G        3.4G        120M        2.1G        5.1G
Swap:          2.0G          0B        2.0G
  • -h makes the output human-readable (G for GB, M for MB)
  • Helps you track memory leaks or monitor system performance

๐Ÿ’ฝ 9. df โ€“ Disk Space Usage

The df command shows how much disk space is used and available on your drives.

๐Ÿงช Example:

df -h

๐Ÿง  Output:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        50G   18G   30G  40% /

Like free, using -h makes the output easy to understand.

Very useful for checking if your system is running out of space or where space is being used up.


๐Ÿงต BONUS TIP: Combining Commands with Pipes

Linux becomes more powerful when you chain commands using pipes (|) and redirection.

๐Ÿงช Example:

ps aux | grep apache

This searches running processes for “apache”. You can combine this with kill to stop a process.

kill -9 PID_NUMBER

Where PID_NUMBER is the number you found using ps aux.


๐Ÿงฐ Final Words โ€“ Practice Makes Perfect

The terminal might look intimidating at first, but itโ€™s a powerful tool. These commands are some of the most useful in day-to-day usage on Kali Linux or any Linux distro.

CommandUse Case
echoDisplay text or variables
catRead or write file content
mmvBatch rename or move files
psShow current processes
ps auxShow all system processes
viEdit files in a powerful environment
nanoSimple text editing
freeView memory usage
dfCheck disk space usage

Learning these commands will make you faster, smarter, and more effective on the command line. So open up your Kali terminal, try them out, and donโ€™t be afraid to explore!

If you’re interested in more Kali Linux tutorials, ethical hacking tips, or productivity hacksโ€”make sure to bookmark hiranmoypati.com, follow us on social media, and subscribe to our newsletter.


๐Ÿ’ฌ Got a Question?

Drop your doubts or favorite command in the comments below. We love hearing from fellow tech enthusiasts!

Happy Hacking! ๐Ÿฑโ€๐Ÿ’ป