Posts

Showing posts with the label terminal

Monitor Network traffic & Live up/down speed in linux terminal with vnstat

Image
Vnstat is an Open Source, command-line based network traffic monitoring tool for Linux and BSD. It keeps track of network traffic for different network interfaces. It always runs in the background to do so. It can also show current/live Internet  download/upload speed. It uses network interface information from the Kernal and is not a packet sniffer therefore it ensures light use of system resources. Install vnstat Open up your terminal (ctrl+alt+t) and enter (for Ubuntu/Debian/Linux Mint) sudo apt-get install vnstat After installation it will automatically start and it will auto start at each system boot. you can check this using systemctl aman@vostro:~$ systemctl status vnstat ● vnstat.service - vnStat network traffic monitor Loaded: loaded (/lib/systemd/system/vnstat.service; enabled; vendor preset: e Active: active (running) since Mon 2017-01-09 11:46:21 IST; 25s ago Docs: man:vnstatd(1) man:vnstat(1) man:vnstat.conf(5) Main PID: 8511 (vnstatd) ...

How to change tty virtual console font (Alt+Ctrl+F1) in ubuntu linux

TTY consoles(virtual consoles) are accessed by Ctrl+Alt+F1 or Ctrl+Alt+F2 1. Type the following command in your regular terminal(gnome-terminal..etc) or the TTY console itself, to launch configuration menu for tty. sudo dpkg-reconfigure console-setup Read more »

Writing a C/C++ program on ubuntu terminal

Image
Here is a simple 5 step instruction to compile and execute C/C++ program on the linux terminal. I have also included a sample C/C++ example to demonstrate. In order to write the program in the terminal itself, we need a console  (terminal)  based  text editor so,  I am using Vim in this tutorial since vim is the most popular console text editor, but  you are free to write your program in any editor like nano,  pico, jed  or  vim etc. Now, lets follow the instructions but it would be really helpful if you learn some vim basics here  (won't take much time)  before proceeding to the instructions or its perfectly okay if you are in a hurry :) Read more »