Teknikal

January 3, 2012

Most used Linux Command for SSH

Below is the most used command in Linux including the description. You may use Putty as a platform to enter the command line and connect to your server. If you do not have Putty installed, you may download it via the link below:-

Download Putty

Port number for SSH is 22

Command and description

# su - // Login as Super user

# cd /home // Go to Main directory

# ls –al // List all file including hidden files

# cd longfolder* // ‘*’ for Shortcut

# cd .. // Go back to higher directory

# chown apache.apache filename // Change folder ownership to apache

# chown apache.apache foldername –Rf // Change folder ownership to apache and inherit

# chmod 777 filename // Change folder permission to 777

# chmod 777 foldername -Rf // Change permission to 777 and inherit

# nano filename // Open file for editing

# rm filename // Remove file

# mv filename filename1 //Rename file

# zip-r filename.zip filename //Zip a file

# unzip filename.zip //Unzip a file

# tar –cvzf filename.tar.gz filename //Tar zip

# tar –xvzf filename.tar.gz //Tar unzip

# ftp//Connect FTP

# clear //Clear screen

# free //Check server disk space

# uptime // Check server uptime

# reboot // Reboot server

# top // View task manager

# df –h // All server disk usage

# cat filename // Display Only

# pwd // See current path

# mv filename /home/directory/ //move file

# cd /etc // Go to /etc directory

# nano resolv.conf // Change preferred DNS

# service httpd status // View Web status

# service exim status // View Email status

# service mysqlid status //View Mysql status

# services mysql restart // Restart Mysql

# cp filename filename1 // Copy/ duplicate file

# cp folder –Rf // Copy folder including file inside

# cd /var/log // Go to log file directory

# cd /etc/tmp //Go to tmp directory

# locate php.ini // Search file

# traceroute //Tracerout IP address

# telnet // Telnet IP address

# dig mx domain.com // Lookup domain name

# cd /var/lib/mysql // Go to database directory

Please make sure that you had enter the command correctly as some mistake may result data lost.






 
 

 
mysql

How to Backup and Restore MySQL Database from PhpMyadmin

Guidelines to backup and restore MySQL database
by admin
0

 
 
windows

Windows Profile Error / Corrupted

Windows cannot load the locally stored profile. Possible causes of this error include insufficient security rights or a corrupt local profile. If this problem persists, contact your network administrator.
by admin
0

 
 
text-html

How to Remove Link Border

When you are adding a link to a picture, sometime there will be a blue line/border in your picture by default.
by admin
0

 

Malaysia Free Job Posting
 
Facebook Lawsuit

How to Create Facebook ‘Like’ Box

Below is the step-by-step guidelines on how to create Facebook ‘Like‘ box, which later you can copy the script and install to your website:- https://developers.facebook.com/docs/reference/plugins/like-box/ If you ar...
by admin
0

 
 
wordpress

WordPress Unable to Login, wp-login.php just refresh

1. Suddenly unable to login Wordpress, although username and password is correct. 2. Login to page wp-login.php and wp-admin, but the page just refresh. 3. Try to re-install the Wordpress but still unable to login. No specifi...
by admin
0

 

 
google apps

Maximizing Google Apps

Google Apps is a service provided by Google, whereby you can use your own domain for Gmail, Google Docs, Google Calendar etc. This services is Free for domain that have less or equal to 10 users.
by admin
0

 
 
phishing

Fraudulent / Phishing Site

What is Fraudulent/Phishing Site and Why is it matters?
by admin
5

 
 
seo

1st Youtube upload – How to Increase Website Traffic / Alexa Rank

This is my 1st Youtube video uploaded. Its about How to Increase Website Traffic / Alexa Rank.
by admin
0

 

 
website jimat

How to Check Domain Whois Records

WHOIS (who is) is a query and response protocol which widely used to check when and by whom a domain was registered, expiry date, IP address, contact information etc. There are allot of website can be use to check WHOIS record...
by jieeba
1

 
 
SEO
seo

How to Change Pretty Permalink for Linux and Windows Server

Below is the guidelines on how to change pretty permalink in Wordpress
by jieeba
0

 



0 Comments


Be the first to comment!


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>