Randomly Selected Linux Commands

11 Nov 2018

  1. tar -cjvf archive.tar.bz2 stuff creates tar.bz2 file where stuff is a folder with files to be compressed.
  2. sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL prints drive tree for each disk partition in a linux system.
  3. grep MemTotal /proc/meminfo prints total RAM.
  4. cat /proc/cpuinfo | grep processor lists all logical CPUs.
  5. lscpu | grep -i "Mhz" prints min/max CPU clock-speed.