Linux

Guides and roadmap posts filed under this topic.

20 Essential Ubuntu Commands Every User Should Know 2025

20 Essential Ubuntu Commands

20 Essential Ubuntu Commands Every User Should Know
Ubuntu, a popular Linux distribution, offers powerful command-line tools to manage files, troubleshoot issues, and optimize your system. Whether you’re a beginner or a seasoned user, mastering these 20 basic Ubuntu commands will boost your productivity.


1. Navigation & File Management

  1. pwd

    • Description: Print the current working directory.

    • Syntax: pwd

    • Example:

      bash
      $ pwd  
      /home/username  
  2. ls

    • Description: List directory contents.

    • Syntax:

      bash
      ls [options] [directory]  
    • Useful Flags:

      • -l: Detailed list

      • -a: Show hidden files

  3. cd

    • Description: Change directory.

    • Syntax:

      bash
      cd [directory]  
    • Shortcuts:

      • cd ~: Go to home directory

      • cd ..: Move up one level

  4. mkdir

    • Description: Create a new directory.

    • Syntax:

      bash
      mkdir directory_name  
  5. rmdir

    • Description: Remove an empty directory.

    • Syntax:

      bash
      rmdir directory_name  

2. File Operations

  1. touch

    • Description: Create a new empty file.

    • Syntax:

      bash
      touch filename  
  2. cp

    • Description: Copy files or directories.

    • Syntax:

      bash
      cp source destination  
    • Flag: -r (copy directories recursively).

  3. mv

    • Description: Move or rename files/directories.

    • Syntax:

      bash
      mv old_name new_name  
  4. rm

    • Description: Delete files or directories.

    • Syntax:

      bash
      rm [options] filename  
    • Flags:

      • -r: Remove directories recursively

      • -f: Force deletion

  5. cat

    • Description: Display or concatenate file content.

    • Syntax:

      bash
      cat filename  

3. Text Editing & Viewing

  1. nano

    • Description: Open a simple text editor.

    • Syntax:

      bash
      nano filename  
  2. grep

    • Description: Search for patterns in files.

    • Syntax:

      bash
      grep "pattern" filename  
  3. head

    • Description: Display the first 10 lines of a file.

    • Syntax:

      bash
      head filename  
  4. tail

    • Description: Display the last 10 lines of a file.

    • Syntax:

      bash
      tail filename  

4. System & Process Management

  1. sudo

    • Description: Execute commands with superuser privileges.

    • Syntax:

      bash
      sudo command  
  2. top

    • Description: Monitor real-time system processes (similar to Task Manager).

    • Syntax:

      bash
      top  
  3. ps

    • Description: List running processes.

    • Syntax:

      bash
      ps aux  
  4. kill

    • Description: Terminate a process by ID.

    • Syntax:

      bash
      kill PID  

5. Networking & Updates

  1. ping

    • Description: Check network connectivity to a host.

    • Syntax:

      bash
      ping google.com  
  2. apt

    • Description: Package management tool for installing/updating software.

    • Common Commands:

      bash
      sudo apt update          # Refresh package lists  
      sudo apt install package # Install a package  
      sudo apt upgrade         # Upgrade installed packages  

Pro Tips

  • Use man command (e.g., man ls) to view a command’s manual.

  • Combine commands with pipes (|) for advanced tasks:

    bash
    ls -l | grep ".txt"  

Master these commands, and you’ll navigate Ubuntu like a pro! 🐧

Introducing Password Strength Checker: A Handy Tool for Secure Passwords

Introducing Password Strength Checker: A Handy Tool for Secure Passwords


In today’s digital age, having strong passwords is more important than ever. To help users create and evaluate secure passwords, developer Ayoub Ait Bendaoud has created an open-source tool called Password Strength Checker, available on GitHub.

This lightweight and user-friendly tool allows you to quickly assess the strength of your passwords. By analyzing factors such as length, complexity, and the use of special characters, the Password Strength Checker provides instant feedback on how secure your password is.

Key Features:

  • Real-time strength evaluation: Get immediate feedback on your password's security level.

  • Customizable criteria: Adjust the tool to meet specific security requirements.

  • Open-source and free: The project is available on GitHub for anyone to use, modify, or contribute to.

Why Use a Password Strength Checker?

Weak passwords are one of the most common causes of data breaches. By using tools like this, individuals and organizations can ensure their accounts are better protected against hacking attempts.

How to Get Started:

  1. Visit the project’s GitHub repository: Password Strength Checker.

  2. Download or clone the repository to your local machine.

  3. Follow the instructions to set up and use the tool.

Whether you're a developer looking to integrate password strength checks into your applications or just someone who wants to improve their online security, this tool is a great resource.
#python


Let me know if you'd like further adjustments or additional details!


import re
import time

def strong_pass_checker(password):
    if len(password) < 8:
        return "Weak password: Password must be at least 8 characters long."
    # Check for lowercase letters
    if not re.search("[a-z]", password):
        return "Weak password: Password must contain at least one lowercase letter."
    # Check for uppercase letters
    if not re.search("[A-Z]", password):
        return "Weak password: Password must contain at least one uppercase letter."
    # Check for digits
    if not re.search("[0-9]", password):
        return "Medium password: Password must contain at least one digit."    
    # Check for special characters
    if not re.search("[!@#$%^&*(),.?\":{}|<>]", password):
        return "Medium password: Password must contain at least one special character."
    # If all checks are passed
    return "Your password is strong."

# Main function to prompt user for password and check its strength
def main():
    password = input("Enter your password: ")
    for _ in range(6):
        print(".", end="")
        time.sleep(1)
    print(" progress is Done")
    result = strong_pass_checker(password)
    print(result)

if __name__ == "__main__":
    main()

Mastering Kali Linux — Top 20 Advanced Kali Linux Commands List

Mastering Kali Linux — Top 20 Advanced Kali Linux Commands List


1) shutdown / now:To shutdown the computer instantly

2)git clone: git clone is a Git command line utility which is used to target an existing repository and create a clone, or copy of the target repository

3) history command
history linux command is used to get a record of previously applied commands.

4) vi command
vi command is a Kali Linux command that provides multiple options, such as inserting at the cursor, writing after the cursor, terminating the insert mode, opening a new line, undoing a certain action, and deleting lines or images. This tool can be combined with others to perform more actions.

5) free command
free command is used to display the memory usage of the current system. This is particularly useful when you wish to download new software and need to know the exact memory in your system. As free displays the details of the memory related to your system, its syntax doesn’t need any arguments to be passed but only options that you can use according to your wish.

6) chmod command
chmod command is a basic command in Kali Linux that is used to change the mode restricting user access to a certain file as per the instructions provided. It is a popular command on this operating system.

7) uname command
uname command is an easy command helping retrieve the version’s user name. Adding a hyphen to uname would provide further details of the version. For instance — It will mention the machine, release date, note name, etc.

8) uptime command
uptime command in Kali Linux command which is used to find out the longevity of the system that is active (running).
This command returns a set of values that involve the current time and the amount of time the system is running,
the number of users currently logged in, and the load time for the past 2, 6 & 16 minutes, respectively.
It basically provides the duration of time.

9) less command
less command presents all the activities that are going on with a certain file but only partially loads it. It also saves some RAM.

10) more command
more command is one basic command that helps in viewing the contents of a file conveniently, providing a bird’s eye view of the contents of a file. It saves the user’s time in scrolling through the whole thing.


11) grep:
The grep command searches for a specific pattern in a file.

12) find:
The find command searches for files and directories based on certain criteria.

13) man:
The man command displays the manual page for a command.

14) cd command
cd command is used for navigation. If you want to go to the downloads folder, you type “cd” and then “download,” this will take you to the downloads folder and access the files.

15) mkdir command
mkdir linux command helps to create a new directory. It is used quite often.

16) cat command
cat linux command enables the user to read files, link them together,
exchange their contents, and one of the most commonly used kali Linux commands.

17) cp command
cp command is used for basic copying text or similar purposes. It can copy one or more than one files to a certain location of your choice. This also helps in moving directories.

18) mv command
mv command is a basic command in linux which is used to move files between directories. It is extremely convenient when dealing with complicated files.

19) rm command
rm command in linux is used to removed highlighted texts and is a very basic yet essential command.
It is used to remove symbolic links and objects from files. It also eliminates multiple references from objects.
References are files with two or three names.

20) uname command
uname command is an easy command helping retrieve the version’s user name. Adding a hyphen to uname would provide further details of the version. For instance — It will mention the machine, release date, note name, etc.

Video On YOUTUBE:https://www.youtube.com/watch?v=3CFLG0v10bg&t=38s