|
UNIX Standard Commands
Navigating | Moving, Copying and Deleting Files | Creating, Moving, Copying and Deleting Directories |
You will need to use a program supporting SSH to log into our server.
If you are using a Windows environment, there’s a freeware program called “Putty” that you can download from http://www.chiark.greenend.org.uk/~sgtatham/putty/latest/putty.exe.
If you are using a Mac, there’s a free program called “Nifty SSH” you can download from http://www.lysator.liu.se/~jonasw/freeware/niftyssh.
Within the program, make sure you select SSH. This will change the Port to 22. Your host name is your domain name (do not put "www" or "http://" in front of your domain name). Your username and password are the same as your FTP login.
/
(refers to the root directory on the
server) pwd (shows what your current directory
is - giving the full path) ls (lists all the files in your
current directory) cd
(changes you to a new directory) Moving, Copying and Deleting Files: mv [old
name] [new name] (move/rename a file) cp
[filename] [new filename] (copy a file) rm
[filename] (delete a file) mkdir
[directoryname] (creates a new directory) ls -d
*/ (lists all directories within current
directory) cp -r
[directoryname] [new directoryname] (copy a directory
and all files/directories in it) rmdir
[directoryname] (remove a directory if it is
empty) Searching Files and Directories find /
-name [filename] -print (search the whole server for
a file) grep
[text] [filename] (search for text within a
file) sed
s/[oldtext]/[newtext]/g [filename] (searches file and
replaces all occurances of [oldtext] File and Directory Permissions There are three
levels of file permission: read, write and execute. In addition,
there are three groups to which you can assign permission, the
file owner, the user group, and everyone. The command chmod followed
by three numbers is used to change permissons. The first number is
the permission for the owner, the second for the group and the
third for everyone. Here are how the levels of permission
translate: Here are the
most common file permissions used: chmod
604 [filename] (minimum permission for www HTML
file) |
Call toll-free 1-877-903-2475
Web Hosting | Domain Names | Web Site Design | Marketing | Reseller Hosting
© Copyright 1998-2008 Identity Website Hosting, Inc. All rights reserved.