The 2009 COMP300E class taught at Hong Kong University of Science and Technology by Steven Skiena.
bmon is a command line utility for linux based systems to monitor the real-time upload - download network speeds on all network interfaces.
sudo apt-get install bmon
Here is a screenshot showing bmon in action.
Use the following command for getting pip to do network related operations via a proxy
pip --proxy=username:password@proxy_server:proxy_port install pkg_name
--proxy option can be used with all pip commands that require network, like search etc.
There are many instances when you wish that the current command being exexuted in the terminal goes to the background or that you get a second terminal to execute another command. This use case is pretty common when accessing server without a Graphical User Interface (GUI).
An extremely useful and powerful tool called Byobyu is the answer to this problem. In layman terms you can say that it is a “multi-window” terminal. While that definition is wrong on so many counts, it somehow would help the layman understand byobu.
To install byobu on debian based distributions (Ubuntu / Linux Mint etc.) use the following command:
sudo apt-get install byobu
Following are some of the useful commands for byobu
New Window - F2
Previous Window - F3
Next Window - F4
Reload Byobu - F5
Detach - F6
Scrollback Mode - F7
Re-title Window - F8
Configure Byobu - F9
Lock Termnal - F12
The sizes of small, medium and large texts in sp are as below:
Small Text -> 14sp
Medium Text -> 18sp
Large Text -> 22sp
hdparm is a command line tool to find the actual read/write speeds of hard disk. To find the read write speeds of a drive, simply exexute the following command in terminal:
sudo hdparm -tT /dev/sda
the -t flag is for read timings and -T is for write timings.
/dev/sda is the disk on which the read/write timing measurements are to be performed.
In case hdparm is not installed, you can install it via command (in debian based distros):
sudo apt-get install hdparm
To analyse disk usage using terminal, a very handy utility exists by the name of NCurses Disk Usage. To install it, type the following in Debian based distributions (Ubuntu, Linux Mint etc)
sudo apt-get install ncdu
The most common usage of ncdu is with the options -x and -q.
-q Quiet mode, doesn’t update the screen 10 times a second while scanning, reduces network bandwidth used
-x Don’t cross filesystem borders (don’t descend into a directory which is a mounted disk)
To use the program
ncdu -x -q