• support[@]kurinchilion.com
  • +1 (888) 666-4252

A shell script to find the memory-consuming processes in Linux

Jan 31, 2023 - by kurinchilamp / / Post Comment
Bash script #!/bin/bash # Function to sort processes by memory usage function sort_by_memory() { # Get the process information and sort by memory usage ps -eo pid,comm,pmem --sort=-pmem | head } # Call the function to get the list of processes sorted by memory usage sort_by_memory This script uses the ps command to get the process information, including the process ID (pid), the process name (comm), and the percentage of physical memory used by the process (pmem). The information is sorted in descending order by the memory usage (pmem) and the top 10 processes with the highest memory usage are displayed. You can adjust the number of processes displayed by changing the number after the head command in the script.    
Continue Reading

Bash Script: Single server multiple wordpress application setup

Mar 22, 2022 - by kurinchilamp / Linux Server / Post Comment
A simple bash script to download latest wordpress version and update the needed client wordpress folders with it. Idea is to execute the shell script along with the name of the client destination folder so that the wordpress files could be copied over the destination folder. (more…)
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.