ps

ps

bash: ps: command not found List process by memory usage ps -eo vsz,pid,cmd | sort -nk 1

bash: ps: command not found

bash: ps: command not found

On a docker image, when i run ps, i get error root@2efea503e8b7:~# ps bash: ps: command not found root@2efea503e8b7:~# To

Bash Script to Monitor Disk Usage

Bash Script to Monitor Disk Usage

This script will check disk usage on / partition and email you if disk usage is above 80% We can

mutt

mutt

Read mails in Maildir folder

Read mails in Maildir folder

Read mails in Maildir folder

To read mail from Maildir folder, use mutt. You can run mutt -f /home/user/Maildir To install mutt on Ubuntu/Debian, run

Enable CORS in Nginx

Enable CORS in Nginx

To enable CORS in nginx, add the following inside web sites server config. Restart nginx See CORS

CORS

CORS

Enable CORS in Apache Enable CORS in Nginx

Enable CORS in Apache

Enable CORS in Apache

To enable CORS in apache, add the following in VirtualHost or .htaccess Header always set Access-Control-Allow-Origin “*” Header always set

List installed Modules in Nginx

List installed Modules in Nginx

To list modules compiled with nginx, you can run nginx -V nginx -V This print nginx version along with configuration

apachectl status

apachectl status www-browser not found

On a Ubuntu server, run i run apachectl status, i get following error. root@server:~# apachectl status /usr/sbin/apachectl: 113: /usr/sbin/apachectl: www-browser:

Unblock an IP from fail2ban

Unblock an IP from fail2ban

To check if an IP is banned by fail2ban, run To unblock an IP, you should find the jail that

ERROR 1118 Row size too large  Changing some columns to TEXT or BLOB may help.

ERROR 1118 Row size too large Changing some columns to TEXT or BLOB may help.

When restoring a MySQL database, i get error root@server:~# mysql production < db.sql ERROR 1118 (42000) at line 733: Row