32 lines
827 B
Plaintext
32 lines
827 B
Plaintext
!/bin/sh
|
|
|
|
# INCLUDE COLORS
|
|
. /etc/profile.d/inc/colors.sh
|
|
|
|
clear
|
|
|
|
echo -e "
|
|
${CYAN}[ APACHE ]
|
|
${YELLOW}Restart apache..........: ${WHITE}apache2ctl restart
|
|
${CYAN}[ MAIL ]
|
|
${YELLOW}Sending a mail..........: ${WHITE}echo "Subject: sendmail test" | sendmail -v admin@frogg.fr
|
|
${CYAN}[ CRON ]
|
|
${YELLOW}Edit main cron tab......: ${WHITE}crontab -e
|
|
${CYAN}[ LINUX ]
|
|
${YELLOW}Restart a service.......: ${WHITE}/etc/init.d/\${service name} restart${NONE}
|
|
${YELLOW}Add symbolic link.......: ${WHITE}ln -s \${path} \${symlink}
|
|
${YELLOW}Disk space tool.........: ${WHITE}ncdu
|
|
${YELLOW}Display journal.........: ${WHITE}journalctl -xe
|
|
${YELLOW}Display system erros....: ${WHITE}systemctl --failed
|
|
|
|
liste des fonctions chargée dans la session ssh
|
|
declare -F
|
|
|
|
"
|
|
|
|
##############
|
|
### INFOS ###
|
|
##############
|
|
|
|
. /etc/profile.d/inc/infos.sh
|