UsiScript
The features to create your script
Author and Version of the script
Author = anonymous Last Modification on 2022-11-13 05:17:30 by anonymous Version = 1
Usage of the script
Description of the script
All the comments of the script
GPL Licence declaration
Add this to the script
template-getopts.sh was created by anonymous on yyyy/mm/dd Copyright (C) yyyy-2025 anonymous The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see
Help
Your script
#!/bin/bash #Colours red="\033[00;31m" RED="\033[01;31m" green="\033[00;32m" GREEN="\033[01;32m" brown="\033[00;33m" YELLOW="\033[01;33m" blue="\033[00;34m" BLUE="\033[01;34m" purple="\033[00;35m" PURPLE="\033[01;35m" cyan="\033[00;36m" CYAN="\033[01;36m" white="\033[00;37m" WHITE="\033[01;37m" NC="\033[00m" echo -e "${WHITE}******************************************************************************" echo -e "${WHITE}** **" echo -e "${WHITE}** Powered By Linux **" echo -e "${WHITE}** **" echo -e "${RED}******************************************************************************" CPUMOD=$(cat /proc/cpuinfo | grep -m 1 -w 'model name' | awk -F: '{print $2}') HOSTNAME=$(uname -n) KERNEL=$(uname -r) MEMTOTAL=$(cat /proc/meminfo | grep -m 1 -w 'MemTotal' | awk -F: '{print $2}') MEMFREE=$(cat /proc/meminfo | grep -m 1 -w 'MemFree' | awk -F: '{print $2}') SWAPTOTAL=$(cat /proc/meminfo | grep -m 1 -w 'SwapTotal' | awk -F: '{print $2}') SWAPFREE=$(cat /proc/meminfo | grep -m 1 -w 'SwapFree' | awk -F: '{print $2}') echo -e "" echo -e "${WHITE} Welcome ${YELLOW}${USER} ${WHITE} to the LandofLinux.com" echo -e "" echo -e "${WHITE} Date: "`date` echo -e "" echo -e "${WHITE} Hostname: ${HOSTNAME}" echo -e "${WHITE} CPU Model: ${CPUMOD}" echo -e "" echo -e "${WHITE} Total Memory: ${MEMTOTAL}" echo -e "${WHITE} Free Memory: ${MEMFREE}" echo -e "" echo -e "${WHITE} Swap Total: ${SWAPTOTAL}" echo -e "${WHITE} Swap Free: ${SWAPFREE}" echo -e "" echo -e "${RED}******************************************************************************" # Reset Terminal Colour Back to Normal echo -e "${NC}"
Last modification done on 2022-11-13 05:17:30 by anonymous
Download
Download the script
Download as ZIP
Download as TXT
Versions of this script
The last version
Version 1
Name of this script
Expiration of the script
This script won't expire
No limit
7 days
15 days
30 days
90 days
180 days
Keys-Bindings for the editor
Ctrl-F / Cmd-F
Start searching
Ctrl-G / Cmd-G
Find next
Shift-Ctrl-G / Shift-Cmd-G
Find previous
Shift-Ctrl-F / Cmd-Option-F
Replace
Shift-Ctrl-R / Shift-Cmd-Option-F
Replace all
Alt-F
Persistent search (dialog doesn't autoclose, enter to find next, Shift-Enter to find previous)
Alt-G
Jump to line
Hide this paragraphe
Package Information
Path of this script inside the package
This script is in a "AllInOne" format file
Open package
Hide this paragraphe