Posts

Showing posts from 2020

Mac terminal environment setup - zsh + Powerline + tmux

Image
Mac terminal environment setup - zsh + Powerline + tmux Powerline font Install nerd-font or powerline font . Nerd-font brew tap homebrew/cask-fonts brew cask install font-hack-nerd-font Powerline fonts # clone git clone https://github.com/powerline/fonts.git --depth = 1 # install cd fonts ./install.sh # clean-up a bit cd .. rm -rf fonts Oh My Zsh Install Zsh. brew install wget sh -c " $( wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O - ) " Change default zsh theme. You can see all the themes here or using powerlevel10k theme . ohmyzsh themes vim ~/.zshrc > ZSH_THEME = "agnoster" powerlevel10k theme brew install romkatv/powerlevel10k/powerlevel10k echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >> ~/.zshrc After setup, enter the following command to apply the configuration. exec $SHELL Insecure Problme fix: # [oh-my-zsh] Insecure completio...

Understanding htop value

Image
Understanding htop value htop columns meaning Here is a list that explains what each column means. PID: A process’s process ID number. USER: The process’s owner. PRI: The process’s priority. The lower the number, the higher the priority. NI: The nice value of the process, which affects its priority. VIRT: How much virtual memory the process is using. RES: How much physical RAM the process is using, measured in kilobytes. SHR: How much shared memory the process is using. S: The current status of the process (zombied, sleeping, running, uninterruptedly sleeping, or traced). %CPU: The percentage of the processor time used by the process. %MEM: The percentage of physical RAM used by the process. TIME+: How much processor time the process has used. COMMAND: The name of the command that started the process. The difference between VIRT, RES and SHR VIRT stands for the virtual size of a process, which is the sum of memory it is actually using, memory it ...