Skip to content

A collection of Linux shell scripting projects built on Ubuntu terminal, including digital clock, Signup page, Password generator ,File Auto cleaner, and more.

License

Notifications You must be signed in to change notification settings

shashankkanade25/shell-script-projects

Repository files navigation

shell-script-projects

1.🕒 Digital Clock (Shell Script)

A simple digital clock built using Bash shell scripting.
It displays the current time and date in a colorful format, refreshing every second.


✨ Features

  • Shows live time in HH:MM:SS format
  • Shows current date in DD-MM-YY format
  • Uses colors for better visibility
  • Runs continuously until stopped

Preview 20251001-0949-14 9637330


2.🔐 Simple Password Generator

A simple Bash script that generates secure random passwords using OpenSSL.


⚙️ Features

  • User-defined password length
  • Secure random generation
  • Lightweight and fast

🚀 Usage

bash password_generator.sh
Screenshot 2025-10-13 231057

3.🛠️ Automate_task.sh

Description

automate_task.sh is a simple Bash script to automate basic system maintenance on Ubuntu/Debian-based systems. It updates the system, upgrades packages, installs Docker and displays the last 5 lines of system logs.

Features

  • Update and upgrade system packages
  • Install Docker
  • Display last 5 lines of /var/log/syslog
  • Show start and end timestamps

How to Use

  1. Give execute permission to the script:
    chmod +x automate_task.sh
    
    ./automate_task.sh
    

SAMPLE OUTPUT

image image

4.📄 Signup_page

Description

This is a simple interactive signup simulation written in Bash.
It asks the user for a name, email, and password, and ensures the password is confirmed correctly.


Features

  • Interactive prompts for user input
  • Password input hidden for security
  • Password confirmation check
  • Clear success/failure messages

How to Run

  1. Give execute permission:
chmod +x signup.sh
./signup.sh

Sample Output

image
image

5.🧹 Auto File Cleaner

A simple Bash script that automatically deletes files older than a set number of days.
Keep your system clean and organized — effortlessly! ⚡


💡 How It Works

  • Scans all files in the current directory
  • Compares their last modified date
  • Deletes files older than 4 days
  • Prints the deleted file names 🗑️

🛠️ Usage

chmod +x auto_file_cleaner.sh
./auto_file_cleaner.sh

✅Test safely before deleting:

echo "$file would be deleted"

Sample Output

image

About

A collection of Linux shell scripting projects built on Ubuntu terminal, including digital clock, Signup page, Password generator ,File Auto cleaner, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages