# cpus
nproc # simple count of cores
cat /proc/cpuinfo # detailed information about each individual core and processor

# memory
free -h