Home   Products   Members   Contact Us   Forums   Blog   Directory   About Us   Site Menu  


Virtual Solutions : Main : Blog : Webmaster Related

Print Page Email Page Bookmark Page

Archive for the ‘Webmaster Related’ Category



Tip: Estimate File Space Usage



Friday, April 24th, 2009

Yet another tip that I use from time to time which I feel may be of benefit of others. It allows you to estimate file space used in a given directory by executing the ‘du‘ command via SSH (Secure Shell) / Telnet. For example, to display usage of ‘content’ directory (that contains two subdirectories: 1subdirectory and 2subdirectory) in human readable format (Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte):

du -sh *

Example output would be:

25.3M 1subdirectory
1.35G 2subdirectory

Refer to the du man page for further details regarding the ‘du‘ command: du command

Tip: Changing File Time Stamp



Thursday, April 23rd, 2009

This is another tip that I use from time to time which I feel may be of benefit of others. It allows you to change the time stamp of files (or directories). If you want to change the time stamp of a file (e.g., file.log) to April 23 22:07, execute the ‘touch’ command via SSH (Secure Shell) / Telnet:

touch -t 200904232210 file.log

The format is: date CCYYMMDDhhmm. Refer to the touch man page for further details regarding the ‘touch‘ command: touch command

Tip: Changing Server Time



Thursday, April 23rd, 2009

Here is a tip for those who need to change their server time. For example, to adjust time if server clock running slow. Let’s say that your server clock displays 08:30:22 AM on April 23. However, actual time is 08:40:12 AM on April 23. You can set time by executing the ‘date’ command via SSH (Secure Shell) / Telnet:

date 042308402009.12

The format is: date MMDDhhmmCCYY.ss. Refer to the date man page for further details regarding the ‘date‘ command: date command




© Copyright 1997 - 2010 Virtual Solutions. All Rights Reserved.

Virtual Solutions Blog is proudly powered by WordPress
Page took 16 queries. 0.449 seconds


Valid XHTML 1.0 Transitional Valid 								CSS!