I used Ubuntu Linux as development environment heavily in my daily work. It took me some time to find some useful tools. In this post, I record two of them as below: 1) vnc client Vinagre is the default remote… Read More
variable indirect expansion in bash
Usually in Bash scripting, we define a variable by giving it a name. and reference it later by using that name in the form of ‘${variable_name}’. This is the usual use case. However, there is another unusual use case. The… Read More
use ip command to show statistics about transferred and received packages
The traditional ifconfig command can show the statistics about transferred and received packages on any network interface card in Linux. However, ifconfig command has been deprecated. ip command is the successor. The -s option can be used in ip command… Read More
a good book about iptables
iptables is widely used in Linux to manipulate network packets. There are a lot of blog posts about its usage. I also recommend one here: https://www.frozentux.net/documents/iptables-tutorial/ This book contains many use cases and command parameter explanation about iptables. It alos… Read More
stop vim from adding a newline at the end of a file
The below option can be set to prevent vim from add a newline at the end of a file :set nofixendofline This option is useful when you edit a file under version control system or the extra new line may… Read More
add a desktop entry for intellij idea
The software package for Intellij Idea community version is a self-contained standalone package, which can be run by executing the idea.sh script under the bin directory, as long as a Java Runtime Environment has been installed and correctly configured. However,… Read More
curl command examples
I post a few curl command example for future reference curl -f –create-dirs -o /path/to/local/file http://foo.com/path/to/remote/file -f: fail silently on server errors. –create-dirs: create missing directories -o: the path of the local file curl -f -v –user “username:password” –upload-file /path/to/local/file… Read More
use lsof to list open files in linux
Recently I encountered a situation, in which I need to list open files under a directory. I searched the quick start tutorials of lsof command and found a few useful snippet. I posted them here. 1. List open file or… Read More
change network interface setting in debian linux
I have been using RHEL Linux for a long time. However, I seldom have a chance to use a Debian Linux. These days I am working on an application deployed in Debian Linux. To make this application applicable by outside,… Read More
an introduction to wine
Recently I have changed my working city from one to another. At the same time, my working laptop also has changed. It now has stricter rules on installing software. My favorite pdf reader, foxit pdf reader, is not in the… Read More