SSH

Amplify Logo ImageAmplify provide web and digital media solutions.

Amplify offer a diverse range of services for business wanting to succeed online, and take a primary focus on consultancy, development and support for e-Commerce, e-Learning and Joomla! Content Management System projects... ...
we just mention these in particular, because we cannot fit in this space all of the other things we can help with!

Please find some useful and common Unix commands listed below. SSH (Secure Shell) is a protocol for creating a secure connection between two computers. This guide will continue to be updated and should not be considered a complete list of SSH commands or linux shell commands, but commands that we often use. If you would like to add to this guide, please email us and let us know.

Change Directory (cd)

cd /path/to/directory/

Change up a Directory (cd ..)

cd ..

List Files in Directory (ls)

ls

Print Working Directory (pwd)

pwd

Remove/Delete Files (rm /path/to/filename.htm) -DANGER- always verify

rm -vf

Copy Files (cp)

cp

Move Files (mv)

mv filename.abc /new/path/filename.abc.123

Create Empty File (touch)

touch filename.123

Copy a File to a Directory (cp -a)

cp -a /var/www/html/* /var/www/html/somefolder/

Make a Directory (mkdir)

mkdir

Extract a Tarball (tar xvfz)

tar xvfz tarfilename.tgz

Create tar of directory (tar -cf archive.tar contents/)

tar -cf archive.tar contents/
Creates everything from contents/ and puts it into archive.tar

Unzip a File (unzip filename)

unzip filename.zip

Restart Apache (service httpd restart)

service httpd restart

Note: "restart" can be replaced with "stop" to quit the service and "start" to start a stopped service.