Unix time to human readable format

Some log files such as squid log uses uses Unix time as timestamp, which looks like some random number generated number. To convert to human readable format, eg in yyyy-mm-dd hh:mm:ss format, …

Linux Version

To find out the Ubuntu version the server is running, the information can be found in file /etc/issue. Alternatively, run this command: lsb_release -a To find out the kernel version, …

Ubuntu server: Setup website

Copy files to destined directory. Go to /etc/apache2/sites-availabe, edit the ’site’ file. The default is ‘default‘. If creating a new site file, after creating and editing the file, run sudo …

grep Special Characters

To type special characters, such as tab key, on command line, use <ctrl>+V to escape the special character. grep “<ctrl>+V+<key>”

Convert file format for DOS and Unix

Most of my development works are done on Linux/Unix. I use / evaluate a lot of open source projects and some files has ^M when edited from this platform. This is …