Archive for Uncategorized

Linux common commands

1. Check folder size

$ du -hs /path/to/directory

2. Zip a folder

$ zip -r filename.zip /path/to/folder

3. Mount a portable harddrive / usb drive

$/sbin/fdisk -l

4. Check memory usage

$ free -m

by look into the free column of -/+ buffers/cache line, it’s the free memory that can be used by applications.

5. Check if a package is installed (RedHat Enterprise/Fedora/Suse/CentOS)

$rpm -qa | grep PACKAGE-NAME

Comments

How to enable asp.net / asp for IIS 7.0 on Windows Vista

If you find you self in a situation that an aspx page cannot be accessed from IIS 7 on Windows Vista, read this.

go to Control Panel –> Program –> Turn Windows Features on or off

then expand Internet Information Services –> World Wide Web Services –> Application Development Features

Last, just check what features you need: ASP, ASP.NET, CGI, ISPI and etc.

enable ASP, ASP.NET, CGI on IIS 7 on Windows Vista

Comments (2)