Shell Scripts

Monitor server processes

Show processes that are currently running on the server.


The "grep" param will filter the name or the task we want to check (ex "process").

ps axf | grep process

With the "watch" task will automatic update the list of the running processes. The "-n" number will set the number of seconds that it will refresh the data.

watch -n 1 "ps axf | grep process"

Compress files with gzip

Compress the Javascript and CSS files on the server for optimize web speed. It will be compressed into new files with a .gz extension. [ read ]

List files with options

List files on the current path on vertical display with invislible files, file permisions, owner and size in human readable format. [ read ]