Posts

Showing posts with the label cli

How to Write, Compile and Run a C/C++ Program in Fedora Terminal

Image
In this tutorial we will see how to how to write, compile and run a C or C++ program in fedora terminal itself i.e writing, compiling and execution of the program will be done within the terminal itself. For writing any program we need a console (terminal) based text editor. I 'll be using vim editor, there are many more like nano, jed, emacs... Read more »

How to Comment and Uncomment Multiple Lines in Vim

Image
There are several ways you can comment and uncomment a range of lines in vim editor. Commenting  Method I (easiest) Step 1:  Make sure your are in command mode by pressing Esc key Step2: Move your cusor to the start of the starting line of the block that you want to comment out press Ctrl + v for visual mode and now press the down arrow key to select till the last line you wanna comment. Step 3: Press upper case I (shift + i) and type # or // for commenting depending on the programming language. and finally press Esc key wait a sec and it's done! Read more »

Best command-line Password Manager for Linux/ubuntu - kpcli

Image
kpcli is a command line password manager for linux/unix. We can store login credential of various accounts in a databases and access the database with a master password. All kpcli commands  are almost same as linux commands, so it will be nice if you are familiar with them already. kpcli database file can work with keepassx (gui) and vice versa. Let's quickly go through this tutorial to see how to install and use it. Read more »

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) ...

Some basic Terminal commands for ubuntu linux

Image
What is sudo ? - It stands for  S uper  U ser  DO and   is a command that allows users to have root/super user access without logging as a root Read more »