-
git remote urlAdd , git remote url add , git remote urlAdd ssh , git remote url add ssh
-
git remote urlChange , git remote url change , git remote urlChange ssh , git remote url change ssh
compress file/folder to a .tar.gz file↑
compress file/folder to a .tar.xz file↑
compress file/folder to a .zip file↑
decompress a .tar.gz file to specified path↑
decompress a .tar.xz file to specified path↑
decompress a .zip file to specified path↑
access all array elements↑
retrieve element from array at specified index (zero based)↑
concatenate two arrays↑
check if the array contains an element↑
declare an array↑
delete element at index from array↑
delete entire array↑
filter elements of an array based on given grep pattern↑
iterate array elements↑
length of an array↑
iterate array elements↑
push new item to the end of array↑
n elements of an array from specified index (zero based)↑
find and replace elements in array using regex↑
reverse order of array elements↑
set array element at specified index↑
check if last command failed↑
If a command fails don't show error (suppress stderr)↑
check if command exists↑
run command with desired privilege. n: -20 (highest priority) to 19 (lowest priority)↑
change running process priority. n: -20 (highest priority) to 19 (lowest priority)↑
run command (command substitution)↑
run command (command substitution)↑
check if last command succeed↑
decode variable from base64↑
encode variable to base64↑
compute hash of variable (md5, sha, sha1, sha224, sha256, sha384, sha512)↑
yyyy/mm/dd↑
current day of month (1..31)↑
current day of week name (A: full, a: abbreviated)↑
current day of year (1..366)↑
yyyy/mm/dd↑
current month name (B: full, b: abbreviated)↑
current month number (1..12)↑
coordinated Universal Time↑
current Year (Y: full, y: last two digits)↑
register a function (handler) to run on script termination (CTRL+C)↑
register a function (handler) to run on script exit↑
write to a file↑
create nested directories↑
create directory↑
delete directory and all contents
delete file(s)↑
read a file↑
find files which contain search criteria in given path and below↑
write multiple lines into file when sudo permission is required↑
write multiple lines into file↑
write to a file↑
write to a file↑
find files (-type f) or directories (-type d) by name or pattern (*.jpg)↑
check if a directory exists↑
check if file is executable↑
if given path is a symbolic link↑
check if the file exists↑
check if file size is greater than zero↑
check if file readable↑
if file writeable↑
check if file1 is newer than file2↑
check if file1 is older than file2↑
check if files are equal↑
if path exists (file, directory, link...)↑
find and remove files(f)/directories(d) older(+)/newer(-) than x days↑
if numbers are equal↑
if num1 is greater to num2↑
if num2 is greater than num2↑
if num1 is lesser or equal to num2↑
if num1 is lesser than num2↑
if numbers are not equal↑
animate frames of animation with interval seconds between frames circular and pendular↑
pacMan animation (eating input text)↑
print a color banner.↑
function: print a banner with provided title and surrounding character↑
import functions from other shellscript files↑
provides a list of choices to user and returns the index of selected choice↑
provides a list of choices to user and returns the index of selected choices↑
calculate average of given integers↑
array of fibonacci series↑
calculate Nth fibonacci number↑
calculate product of given integers↑
calculate sum of given integers↑
progress bar function↑
scan localhost's port range (tcp/udp)↑
format seconds into days/hours/minutes/seconds↑
decodes encoded URL↑
encodes URL↑
function: compares two semvers and returns >, < or =↑
call animate function to start animation↑
call animate function to start animation↑
call pacMan animation (eating input text) function↑
call bannerColor function↑
call bannerSimple function↑
import functions from other shellscript files located in a directory (default: lib) relative to current file↑
call input choice function↑
call input multichoice function↑
calculate Nth fibonacci number↑
call math average function↑
array of fibonacci series↑
call math product function↑
call math sum function↑
call progress bar function↑
call scan function to scan localhost over a port range↑
call formatSeconds function↑
call urldecode function↑
call urlencode function↑
call versionCompare function↑
delete specified file from ftp server↑
download specified file from ftp server↑
get the list of files on the ftp server at specific path↑
rename specified file/directory on ftp server↑
upload specified file to ftp server↑
function all arguments array↑
number of function arguments↑
function↑
last function/command return code↑
Initialize git configurations↑
create branch locally and switch into it.↑
delete local branch.↑
delete remote branch.↑
list all branches.↑
push branch to remote.↑
rename current branch.↑
revert tracked changes↑
clone a remote branch to local machine over HTTPS.↑
clone a remote branch to local machine over SSH.↑
clone remote repository to local machine over HTTPS.↑
clone remote repository to local machine over SSH.↑
list non pushed commits.↑
search for a commit which contains searchCriteria.↑
undo last N commits (soft: preserve local changes, hard: delete local changes↑
commit changes.↑
list git configurations.↑
configure git.↑
apply a patch from file↑
create a patch from changes↑
list all remotes↑
add remote url using HTTPS↑
add remote url using SSH↑
change remote url using HTTPS↑
change remote url using SSH↑
tag a commit↑
list all tags↑
delete tag from remote↑
push tag to remote↑
send http request with cookies, using curl↑
download from url and save to /path/to/file, using curl↑
send http GET/DELETE request using curl↑
send http request with custom header, using curl↑
send file with http POST, using curl↑
send data with http POST/PUT, using curl↑
get text as input from user without showing characters↑
get text as input from user↑
if integers are equal↑
if int1 is greater or equal to int2↑
if int1 is greater than int2↑
if int1 is lesser or equal to int2↑
if int1 is lesser than int2↑
if integers are not equal↑
for loop by index↑
for loop by index↑
for loop in collection↑
for loop in collection↑
for loop in collection↑
if↑
if condition is false then run command (short circuit)↑
if condition is true then run command (short circuit)↑
infinite loop↑
switch case↑
until loop↑
while loop↑
array of local IPs↑
public ip information↑
public ip address↑
add two variables↑
math Euler-Mascheroni constant↑
math Napier's constant↑
math Omega constant↑
math golden ration constant↑
math PI constant↑
decrement integer variable↑
divide int1 by int2 and assign the whole part to int1↑
divide int1 by int2 as integers and returns whole part↑
arithmetic operations on integers↑
increment integer variable by 1↑
arithmetic operations on integers↑
subtract int2 from int1 and assign the result to int1↑
divide int1 by int2 and assign the reminder to int1↑
reminder of dividing int1 by int2 (modulus)↑
multiply int1 by int2 and assign the result to int1↑
multiply int1 by int2↑
add int1 and int2 and assign the result to int1↑
exponentiate base to power↑
math operations with up to scale decimal places precision↑
generate random integer x such as min <= x <= max↑
square root of var up to scale decimal places↑
subtract int2 from int1↑
check if script is not running as root (sudo)↑
check if script is running as root (sudo)↑
define animation frame↑
parse command line arguments (flags/switches)↑
print text, variable or both↑
print text, variable or both↑
provide an exit code on error↑
The OS running on this machine↑
comment out a special region (i.e. variable declarations)↑
shell shebang↑
sleep for a specified amount of time (s: second, m: minute, h: hour, d: day)↑
elapsed time↑
start stopwatch↑
stop stopwatch↑
script summary↑
run command within a time frame↑
write in black↑
write in blue↑
write in cyan↑
write in green↑
write in magenta↑
write in red↑
write in white↑
write in yellow↑
write in bold↑
write in dim↑
write in italic↑
write in reverse↑
find process ID(s) aka PIDs↑
list processes↑
kill process by name↑
list processes↑
find process name by it's ID(s)↑
concatenate two strings↑
check whether string contains substring↑
first index of substring in a string↑
if string is empty↑
if strings are equal↑
if string is not empty↑
if strings are not equal↑
length of string in characters↑
random string from provided characters with desired length (default: 8)↑
find all occurrences of a substring and replace them↑
find first occurrence of a substring and replace it↑
find all occurrences of a substrings and replace them↑
reverse string characters↑
frequency of a substring in a string↑
part of the string from offset (zero indexed) up to characters length↑
convert string to lowercase↑
convert string to uppercase↑
remove all white space(s)↑
remove leading white space(s)↑
remove trailing white space(s)↑
remove leading and trailing white space(s)↑
OS codename (i.e. Focal Fossa)↑
OS ID (i.e. Ubuntu)↑
OS Release (i.e. 20.04.2)↑
OS kernel name (i.e. Linux)↑
OS kernel release (i.e. 4.4.0-140-generic)↑
system memory information in kilobytes (KB)↑
processor architecture (i.e. x86_64)↑
processor count (cores)↑
processor model name (i.e. Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz)↑
OS processor type (i.e. x86_64)↑
manage service operations↑
system uptime in seconds.↑
system uptime. -p: --pretty, -s: since↑
seconds since epoch (1970-01-01 00:00:00)↑
current local time (R: 24hrs, r: 12hrs)↑
current local time (R: 24hrs, r: 12hrs)↑
current UTC time↑
current UTC time↑
assign a value or another variable to a new variable↑
assign default value to variable if variable is empty otherwise assign null↑
read the value of a variable↑