Primal Habits
It is currently Thu Mar 30, 2017 12:46 am


Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Nov 29, 2010 1:56 pm 
User avatar

Joined: Sun Apr 25, 2010 1:02 pm
Posts: 115

The Most Commonly Used SSH/Shell Commands.


cd : change directory · · cd /usr/local/apache : takes you to /usr/local/apache/ directory. cd ~ : go to your home directory. cd - : go to the last directory you were in. cd .. : go up one directory.

cp : copies a file.

grep : looks for text in files.

ln : create's symbolic links. ln -s foo1 foo2 Creates a symbolic link to foo1 with the name of foo2.

ls : Lists the contents of a directory. ls -al : shows all files even files that start with a .(dot) permissions, owners, size, and when last modified.

rm : deletes a file. rm image.jpg: deletes image.jpg will ask for confirmation before deleting. rm -f image.jpg: deletes image.jpg, will not ask for any confirmation. rm -rf images/ : deletes the folder images, and all files in it, including subdirectories. DANGEROUS BE CAREFUL WITH THIS COMMAND!!!!!!

tail : like the name implies reads the end of a file.

touch : create an empty file. touch /home/account_name/public_html/index.html : create an empty file called index.html in the directory /home/account_name/public_html/.

top : see currently running processes and other information like memory and CPU usage with real time updates.

Check Out RouterHead8080 T.V.

Share on FacebookShare on TwitterShare on TuentiShare on SonicoShare on FriendFeedShare on OrkutShare on DiggShare on MySpaceShare on DeliciousShare on Technorati
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]

Related topics
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Shell command for mysql attack




Sun Apr 15, 2012 10:23 pm

RouterHead8080 View the latest post


Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

Affiliates    Terms of use    Privacy policy   

Primal Habits, a Sceptersoft Company
Copyright © 2010 - 2017 Sceptersoft LLC. All rights reserved.