Skip to content

itsmrval/cmds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

useful-commands

Table of contents
  1. ZFS
  2. NodeJS

ZFS

  • Used memory
    awk '/^size/ { print $1 " " $3 / 1048576 }' < /proc/spl/kstat/zfs/arcstats

NodeJS

  • Repo setup (20.X)
    curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
  • Package install
    apt install -y nodejs

Network

  • Display PPS
    cat /sys/class/net/vmbr0/statistics/tx_packets

PHP

  • Repo setup
    LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
    apt update
  • Package install
    apt install -y php8.1 php8.1-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip}

About

Draft of useful commands

Topics

Resources

Stars

Watchers

Forks