Commands list-useful terminal commands-deep learning

By | September 11, 2018

In this blog, I am listing some useful commands for deep learning and data science. I will add new commands to the list from time to time. The below listed commands are for Ubuntu terminal. Some of them could be used with Mac terminal as well.

  • uname : prints the name of the OS we are working on
  • uname -v : prints the version of Linux
  • uname -a : all information about system
  • lsb_release -a : version of the ubuntu – 16.04 – xenial in our case
  • find path-to-dir/* -maxdepth 0 -type d | wc -l : count the number of directories within a directory
  • find path-to-dir/* -maxdepth 0 -type f | wc -l : count the number of files within a directory
  • lshw : print hardware information on Linux
  • lshw -short
  • lscpu – gives cpu information
  • lsblk – block or storage information like hard disk etc.
  • nvidia-smi : gpu summary
  • lshw -numeric -C display : this one is better to know about the gpu device
  • glances : It displays GPU memory usage, processor usage, main memory, processes etc. You need to install glances first (pip install glances)
  • htop : wonderful command to monitor CPU cores usage
mac terminal using glances command - commands for deep learning