Free Web Hosting

Useful Linux Shell Commands

ls : List files/directories in a current directory, equivalent to dir command in dos/windows.
ls -al : Shows all files and directories with the details attributes for each file.

cd : Change directory
Examples:
cd ~ : Change your directory to your home directory.
cd - : Change to the last directory you were in.

tail : Reads and display the end of the file
Examples:
tail /var/www/me.txt : Display last 20 lines (by default) lines of the given file.
tail -f /var/www/me.txt : Watch the file continuously, while it’s being updated.
tail -400 /var/www/me.txt : Print last 400 lines of the file to the screen.

more : Open file one screen at a time.
Examples:
more /etc/log.txt : Opens the file one screen at a time rather than all at once. Press Space to go to next page.

pico : easy to use file editor
Examples:
pico /home/mysite/public_html/you.html : edit the you.html file from the public_html directory.

vi : popular editor in linux, have lots of features but harder to use
Examples:
vi /home/mysite/public_html/you.html : edit the you.html from the public_html directory.

grep : looks for certain patterns in files
Examples:
grep root /etc/passwd : shows all matches of root in /etc/passwd
grep -v root /etc/passwd : shows all lines that do not match root

touch : create an empty file
Examples:
touch /home/mysite//public_html/new.html : create an empty file called new.html in the directory /home/mysite//public_html/

ln : create’s “links” between files and directories
Examples:
ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf : Now you can edit /etc/httpd.conf rather than the original. changes will affect the orginal, however you can delete the link and it will not delete the original.

rm : delete a file
Examples:
rm filename.txt : Deletes filename.txt, It will confirm you before deleting file.
rm -f filename.txt : Deletes filename.txt without confirmation.
rm -rf tmp/ : Recursively deletes the directory tmp, and all files in it, including subdirectories.

last : shows who logged in with the time
Examples:
last -20 : shows only the last 20 logins
last -20 -a : shows last 20 logins, with the hostname in the last field

netstat : shows all current network connections.
netstat -an : shows all connections to the server, the source and destination ips and ports.
netstat -rn : shows routing table for all ips bound to the server.

top : shows useful live system info
processes in a table format, memory information, uptime and other useful info. This is excellent for managing your system processes, resources and ensure everything is working fine and your server isn’t bogged down. top then type Shift + M to sort by memory usage or Shift + P to sort by CPU usage

ps: ps is short form of process status, equivalent to the top command. It’s used to show currently running processes with their PID.

A process ID is a unique number that identifies a process, with that you can kill or terminate a running program on your server (see kill command).
Examples:
ps U username : shows processes for a certain user
ps aux : shows all system processes
ps aux –forest : shows all system processes like the above but organizes in a hierarchy that’s very useful!

file : attempts to guess what type of file a file is by looking at it’s content.
Examples:
file * : prints out a list of all files/directories in a directory

du : shows disk usage.
Examples:
du -sh : shows a summary of total disk space used in the current directory, including subdirectories.
du -sh * : same as above, but for each file and directory. helpful when finding large files taking up space.

wc : word count
Examples:
wc -l filename.txt : tells how many lines are in filename.txt

cp : copy a file
Examples:
cp filename filename.backup : copies filename to filename.backup
cp -a /home/mysite/old/* /home/mysite/new/ : copies all files, retaining permissions form one directory to another.

kill: terminate a system process
Examples:
Syntax: kill -9 PID Examples: kill -9 431
Syntax: kill PID Examples: kill 10550

Popularity: 1% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

August 7th, 2008 Bala Krishna Posted in General, Linux, Linux Commands, PHP Programming, PHP Tutorial, Tips and Tricks, Web Technology | No Comments »

AddThis Social Bookmark Button

How to Use Microsoft Office Document Imaging As An OCR Tool

Microsoft Document Imaging is the tool to scan paper documents and convert them in the digital format for storing in physical media such as CD, DVD or magnetic tape device. Microsoft Office Document Imaging allow you to convert and save documents in TIFF or MDI graphic format. TIFF stands for Tagged Image File Format which is universally accepted format for digital graphics interchange. make high resolution graphics. MDI document format is developed by Microsoft for document imaging.

Microsoft Document Imaging also provide you facility to work as OCR (Optical Character Recognition). It can translate images of text into actual text character that can you can copy into word processor software.

How to use Microsoft Office Document Imaging as OCR

Microsoft Office Document Imaging has two components listed in the program Microsoft Office group.  The scanning component used to scan document from available scanner device and make available on you PC for processing.  Several presets available to use for optimization. The another Imaging Component allow you to easily view scanned documents and re-format them according to your need. The precessed document then can be send as email or online fax.

Where to Find Imaging Component on Your PC

Start -> Programs -> Microsoft Office - > Microsoft Office Tools - > Microsoft Office Document Scanning
Start -> Programs -> Microsoft Office - > Microsoft Office Tools - > Microsoft Office Document Imaging

Popularity: 5% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

August 4th, 2008 Bala Krishna Posted in Tips and Tricks | No Comments »

AddThis Social Bookmark Button

Cuil New Search Engine

Cuil ( Irish word meaning knowledge) is a new search engine launched by ex-Google engineers Anna Patterson and her husband Tom Costello on 27th July,2008. They claim that cuil have been indexed 120 billion we pages more then Google indexes and can index web pages much faster then Google. There are too much buzz in the industry related to cuil indexing algorithm and its search pattern

I tried search term (bala-krishna) and found my site already in Cuil index. All other site page that have this keyword also showing in result including social media profile page that Google does not show.

Popularity: 12% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

August 1st, 2008 Bala Krishna Posted in Advertising, Product Review, Search Engine, Security, Social Networking, Web Technology | No Comments »

AddThis Social Bookmark Button

How To Make Speaker - Video Tutorial

A complete guide for electronic guy to make speaker at home with the help of daily usable items.

Popularity: 13% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Read Related Post

July 30th, 2008 Bala Krishna Posted in General | No Comments »

AddThis Social Bookmark Button

How to fix “Task Manager has been disabled by your administrator” Error

Sometime you try to open Windows Task Manager, the following error message appear: “Task Manager has been disabled by your administrator”.  This could happen due to change in registry setting by some unauthorized program or Trojan.  You may also be restricted or block to use Task Manager by changing “Local Group Policy” or “Domain Group Policy”.

Solution:

Follow these step to resolve the issue.

  • Go to “Start” -> “Run” -> Write “Gpedit.msc” and press on “Enter” button.
  • Navigate to “User Configuration” -> “Administrative Templates” -> “System” -> “Ctrl+Alt+Del Options”
  • In the right side of the screen verity that “Remove Task Manager”" option set to “Disable” or “Not Configured”.
  • Close “Gpedit.msc” MMC.
  • Go to “Start” -> “Run” -> Write “gpupdate /force” and press on “Enter” button.

Registry Setting Change

Note: Backup your registry before doing any change. Changing registry can cause serious problem and unstable your computer.

Go to “Start” -> “Run” -> Write “regedit” and press on “Enter” button.

Navigate to the following registry keys and verity that following settings set to default:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
“DisableTaskMgr”=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\CurrentVersion\Policies\System]
“DisableTaskMgr”=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\]
“DisableTaskMgr”=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
“DisableCAD”=dword:00000000

Reboot your computer.

Popularity: 14% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

July 30th, 2008 Bala Krishna Posted in General | No Comments »

AddThis Social Bookmark Button

Difference between H.323 & SIP VoIP Protocols

In the last decade, the Internet has been grown tremendously. The current and hot hot technology is the Voice Over Internet Protocol (VoIP). VoIP is the Internet technology that enables user to use better audio and visual communication from our home computers over Internet. This technology allow you to communicate easily from wherever you are and you have Internet access. Most important factor is, this is cheaper then the regular phone services.

To deliver voice, two types of VOIP protocol used:

H.323

  • Well known and commonly used VOIP protocol.
  • Created solely for the multimedia communication over IP networks.
  • It provides provisions for videoconferencing, data sharing, and audio transmission (VoIP).
  • It merges the IETF and ITU-T protocols to form a unified system.
  • Though it is still in the early phases, it has been successful to some extent in matching the clarity and speed provided by PSTN networks.
  • Ability to recover connection failures and source of connection failure.
  • Support Message encoding, Load balancing, Call signaling, Address resolution

SIP

  • Designed to setup a “session” between two points.
  • No support for multimedia conferencing.
  • SIP has large number of problems and has been deployed successfully only in PSTN gateways
  • Detection can only be done through timer expiration and re-establishment takes long periods
  • Like H.323, SIP also performs the functions of message encoding, load balancing, and address resolution.
  • No address-resolution protocol support.
  • No ability to detect network failures.
  • No backward compatibility which can cause operational failure.

Popularity: 18% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Read Related Post

July 27th, 2008 Bala Krishna Posted in Product Review, Tips and Tricks, VOIP, Web Technology, Window Application | No Comments »

AddThis Social Bookmark Button

Unix Timestamp Conversion Tool Launched

Just launched Unix Timestamp Conversion Tool. All of users of my website are welcome to test and use this tool. Please feel free to share your comments, bugs etc..

Popularity: 19% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

July 26th, 2008 Bala Krishna Posted in Browser Stuff, PHP Programming, PHP Tutorial, Tips and Tricks, Web Technology, Word Press | No Comments »

AddThis Social Bookmark Button

Control PHP Error Reporting With .htaccess

Create .htaccess file or use existing .htaccess file in your hosting site. Add below line at the top of file content.


# to stop php startup errors
php_flag display_startup_errors off
# to stop all php errors and warning
php_flag display_errors off

You can also control level of error reporting. Here is the .htaccess syntax:


# php directive for setting error level
php_value error_reporting integer

Example:


# report everything except run-time notices.
php_value error_reporting 8191
# report both fatal and non-fatal compile-time warnings by the Zend Engine
php_value error_reporting 128
# report run-time notices, compile-time parse errors, run-time errors and warnings
php_value error_reporting 8
# report fatal run-time errors and unrecoverable errors
php_value error_reporting 1

Popularity: 55% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

July 6th, 2008 Bala Krishna Posted in Blogging, Error Log, Linux, Linux Commands, Web Development, Web Technology | No Comments »

AddThis Social Bookmark Button

Web Hosting With CloudFS Cloud Hosting Technology

Cloud Hosting Technology is advanced new technology adapted by few web hosting providers. The technology works over the fleet of computers called hosting cloud that built to meet certain goals set by the hosting provider.  In the cloud hosting, deployed application automatically inherit clustered processing, load-balancing, and redundant storage depend on the application requirement you are going to deploy. for example, if you are going to load .Net based application then the application will be set to processed on windows cluster. The process is completely automatic without user intervention. In the same way, Linux based application will be processed on Linux cluster.

This technology has several new features that certainly make the process of web development easier and faster:

  • Cloud Hosting manged over set of computer clubbed together to meet certain requirement. So there is No Server, OS or device virtually to setup or manage. User simply need to load your application and rest of the things handled automatically.
  • This technology is extremely flexible because provider are open to load lot of technology that beneficial for users to use. You can switch to different framework easily if you want to move from old technology framework you use.
  • Upgrades are very easy to achieve in Cloud Hosting Environment. The technology upgrade that is obsolesce allow user to adapt new technology quickly.

Popularity: 55% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

July 5th, 2008 Bala Krishna Posted in Browser Stuff, CentOS, Web Development, Web Hosting, Web Technology | No Comments »

AddThis Social Bookmark Button

What is Difference Between DNS CNAME & A Record

CNAME stands for Canonical Name for a domain. CNAME is an alias records that create association between a sub-domain and antother domain or subdomain.

And, A Record simply creates an association between a domain/sub-domain name and an IP Address.

Example CNAME
gallery.bala-krishna.com -> gallery.another-domain.com -> 64.1.236.65

you can see above CNAME require two DNS lookup to translate domain/subdomain to an IP Address. If client request for gallery.bala-krishna.com then DNS record will return gallery.another-domain.com then gallery.another-domain.com has to query DNS to translate gallery.another-domain.com into IP Address.

CNAME Record Syntax:
www   14400   IN   CNAME   bala-krishna.com

Example A Record

gallery.another-domain.com -> 64.1.236.65

In case of gallery.another-domain.com, A record directly point to an IP Address so the DNS lookup directly returns IP Address to the client rather then domain/subdomain. hence only one DNS lookup required.

A Record Syntex:
ftp     14400   IN    A    67.159.45.3

Popularity: 64% [?]



Rate this Post:
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Read Related Post

July 1st, 2008 Bala Krishna Posted in Godaddy Hosting, Linux, Linux Commands, Tips and Tricks, Web Development, Web Hosting, Web Technology | No Comments »

AddThis Social Bookmark Button




|