To better understand the bash special variables, I wrote a script to help myself. #!/bin/bash #Usage of $#echo ------------------------------------------------------------echo -e You have entered $# arguments. #Usage of $*echo ------------------------------------------------------------export IFS='-'echo -e The arguments are: "$*" \(seperated by -\) #Usage of $@echo ------------------------------------------------------------n=1for arg in "$@"do echo -e The $n argument is: "$arg" let n+=1done #Usage … Continue reading Bash Special Variables
Category: Linux
RecordRoutingInfo: Unable to collect IPv4 routing table
One of my VMware Linux virtual machine takes a long time to boot. And there are couple warnings on the screen complaining RecordRoutingInfo: Unable to collect IPv4 routing table. According to VMware KB2048572, this issue occurs when the Linux iputilis package causes a delay in the boot process. A warning message appears when the guestinfo … Continue reading RecordRoutingInfo: Unable to collect IPv4 routing table
Find out open files of a process
Some one asked me yesterday how to find out the open files of a process. I could not answer it. But I knew it has something to do with the /proc folder, as I restored the apache access log once from the /proc folder after a user deleted the access log in the /var folder … Continue reading Find out open files of a process
Windows Style Ubuntu Desktop
For those users who have already gotten used to the Windows desktop style (e.g. Start button, Taskbar at the bottom, minimize/maximize/close button at the right top). Here is how to make the Ubuntu Gnome desktop work in the similar style. 1) Super + Left Alt + Right click the panel that you want to edit, … Continue reading Windows Style Ubuntu Desktop
Create Linux instance in AWS
Follow the same process described in Create Windows instance in AWS to build the Linux instance. The only two differences are the security group settings and the remote connection method. 1) Create a new security group to allow the SSH (and VNC) inbound traffic. 2) There are 3 ways to connect to the remote Linux … Continue reading Create Linux instance in AWS