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

Blog

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

Jan 31, 2023 - by kurinchilamp // 324 Views
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

Git message: does not have a commit checked out

Jan 25, 2023 - by kurinchilamp /Linux Server/ 329 Views
If you have a git repository and a sub-folder inside it with another git repository (.git folder), you will get this message. Have only one .git folder inside the repository for code management.  
Continue Reading

Git: Could not open a connection to your authentication agent

Jan 24, 2023 - by kurinchilamp // 267 Views
This message is shown when the ssh-agent is not running. You will need to start the ssh-agent before running the ssh-add command $ eval `ssh-agent -s` $ ssh-add yourkey eval is a built in command that is used to execute the arguments as a shell command Note: in the eval command used, we need to use the backtick and not the single quote.  
Continue Reading

Git: Display log of commits with author name and date in single line

Dec 20, 2022 - by kurinchilamp /Linux Server/ 271 Views
To display the git logs in a single line, we use the command $ git log --oneline To display git logs in a single line with commit id, author name and date we can use $git log --pretty=format:"%h%x09%an%x09%aI%x09%s" For more variations of the command, you can refer to kernel.org.
Continue Reading

MacOS: Setup latest java version with different JDK version using Homebrew

Dec 05, 2022 - by kurinchilamp /Linux Server/ 339 Views
Homebrew installs java at /usr/local/Cellar/openjdk/. There may be a requirement where you may need to run multiple version of java on the same MacOS. It involves few steps that we need to follow to setup and configure the needed version on our machines. (more…)
Continue Reading

Git: How to update a forked repository from a main Git repository?

Nov 30, 2022 - by kurinchilamp // 290 Views
i) Add an upstream to the remote github URL $ git remote add upstream <GIT_REPO_URL> ii) Retrieve all branches from upstream $ git fetch upstream iii) Merge the repo to your local branch $ git merge upstream/master iv) Now, push the changes to your remote forked repository $ git push origin master
Continue Reading

TECHNOLOGY DEV STACK

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