79 lines
3.9 KiB
Bash
79 lines
3.9 KiB
Bash
#!/usr/bin/env bash
|
|
# ------------------------------------------------------------------------------
|
|
# Copyright (c) 2013-2026 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
|
# Protected by the BSD3 license. Please read bellow for details.
|
|
#
|
|
# * Redistribution and use in source and binary forms,
|
|
# * with or without modification, are permitted provided
|
|
# * that the following conditions are met:
|
|
# *
|
|
# * Redistributions of source code must retain the above
|
|
# * copyright notice, this list of conditions and the
|
|
# * following disclaimer.
|
|
# *
|
|
# * Redistributions in binary form must reproduce the above
|
|
# * copyright notice, this list of conditions and the following
|
|
# * disclaimer in the documentation and/or other materials
|
|
# * provided with the distribution.
|
|
# *
|
|
# * Neither the name of the copyright holder nor the names
|
|
# * of any other contributors may be used to endorse or
|
|
# * promote products derived from this software without
|
|
# * specific prior written permission.
|
|
# *
|
|
# * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
# * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
# * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
# * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
# * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
# * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
# * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
# * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
# * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
# * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
# * OF SUCH DAMAGE.
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# Display list of commands and general informations
|
|
# Usage: help
|
|
help()
|
|
{
|
|
printf "check_updates\tCheck for profile updates\n"
|
|
printf "clean\t\tErase backup files\n"
|
|
printf "dpkgs\t\tSearch for the given package in the installed ones\n"
|
|
printf "findbig\t\tFind big files in the given (or current) directory\n"
|
|
printf "findempty\tFind empty files and directories in the given (or current) directory\n"
|
|
printf "finddead\tFind dead symbolic links in the given (or current) directory\n"
|
|
printf "gpid\t\tGive the list of PIDs for the given process name\n"
|
|
printf "isipv4\t\tTell if the given IPv4 is valid\n"
|
|
printf "isipv6\t\tTell if the given IPv6 is valid\n"
|
|
printf "ku\t\tKill process owned by users in parameter\n"
|
|
printf "mcd\t\tCreate a directory and go inside\n"
|
|
printf "meteo\t\tDisplay curent weather forecast for the configured city\n"
|
|
printf "ppg\t\tDisplay process matching the given parameter\n"
|
|
printf "ppn\t\tDisplay process matching the exact process name given in parameter\n"
|
|
printf "ppu\t\tDisplay processes owned by the given user\n"
|
|
printf "profile_update\tUpdate profile to the latest version\n"
|
|
printf "rain\t\tLet the rain fall\n"
|
|
printf "rmhost\t\tRemove host (IP and/or DNS name) for current known_host\n"
|
|
printf "rmspc\t\tRemove spaces from all the files in working directory\n"
|
|
printf "setlocale\tSet console language to the current locale\n"
|
|
printf " * setc\tSet console language to C\n"
|
|
printf " * setfr\tSet console language to French\n"
|
|
printf " * setus\tSet console language to US English\n"
|
|
printf "settrace\tActivate/deactivate call trace for script debugging\n"
|
|
printf "showinfo\tShow the welcoming baner with basic system information\n"
|
|
printf "ssr\t\tDo a root login to the given address\n"
|
|
printf "taz\t\tCompress smartly the given files or directory\n"
|
|
printf "utaz\t\tUncompress all zip files in the given (or current) directory\n"
|
|
printf "ver\t\tDisplay version of your copy of profile\n\n"
|
|
|
|
printf "\nPlease use <command> --help to obtain usage details.\n"
|
|
}
|
|
export -f help
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
# EOF
|