

|
Getting Connected |
FTP | Virtuals Only |
Additional Resources |
| Your Directory | Web FAQ | Stats Interp | Virtual Control Panel | Web E-mail | Page Counters | Pine |
| Change Password | Command Line FTP | UNIX Commands |
Password Protected Directory |
CGI | Cgiemail | MySQL |
Some Basic UNIX CommandsGetting Around Your Directory Structure
Example:web2:/u1/home/sclaus$ ls
Example:web2:/u1/home/sclaus$ ls -la
Understanding the Listing The first character above shows the file type (d indicates it is a directory, - is a file) and the rest of the column shows the permissions. The second column shows who owns the file. In this case, our user, sclaus, is the owner of most files. The third and fourth show the file's last modification date, size, and file name. Understanding Permissions
What The Codes Mean
In the following example, we can find out what permission is of the file, -rw-rw-r--
Changing Permissions (chmod)
Syntax: chmod who[opcode]permission filename Who
Op Codes
Permission
Example:
-rw-rw-r-- 1sclaus  users 7450 May 13 16:17 news.html Using the above, let's say that you wish to change the permissions so that the world (the third set of characters which has the values r--) to be able to do more than just read the file; let's change the permissions on this file so that the world can also write to it. The proper syntax would be: chmod o+w news.html Breakdown: chmod is the command, o is who it applies to, + is to add permission, and w is write. Using Numerical Commands
Let's look at our example file again: -rw-rw-r-- 1sclaus  users 7450 May 13 16:17 news.html The first character is a -, but that particular place states whether or not the file is a directory, as we talked about above. Move to the next character. The next character's place is worth 4, and there is a 4 there. The place after that has a value of 2, and we do have a 2. The third place has the value of 1, and it is off, indicated by the -, which is a value of 0. Add the three values, 4 + 2 and you have a value of 6. Make note of the 6. The next trio of values are also rw-. The r has a value of 4, the w a value of 2 and x is off, so that has a value of 0. Make note of this second value as 6. The third, r--, has the first value of 4, and 0 values for w and x, so this third value is 4. So, the numerical equivalent of the command chmod o+w news.html is chmod 664 news.html. -rwxr-xr-x breaks down as follows:
Therefore, -rwxr-xr-x is equivalent to 755. To create this condition, type chmod 755 filename.
More Commands to Help You Get Around
Other Commands
Defining Files with Wildcard CharactersWildcard characters can be used to represent many other characters. Use them whenever you need to define a string of characters, such as a file name with the use of a command.
Text EditorsThere are several editors available for you to use with your shell account: joe, pico, vi and emacs. If you are unfamiliar with using text editors, it is advisable to start with pico. It is the most user-friendly editor, with the commands shown at the bottom of the screen to help you along. Tin: Shell-Based News ReaderTin allows you to view, subscribe to, and read your newsgroups via your shell account. Launch Tin by typing tin at your command prompt. Once the program has launched, type h for an extensive help section which will get you started using Tin. Sending and Receiving E-Mail with PinePine is a menu-driven program which will allow you to receive and send e-mail from your domain via a telnet window. Click here to read up on how to get started with Pine. |
| Your Directory | Web FAQ | Stats Interp | Virtual Control Panel | Web E-mail | Page Counters | Pine |
| Change Password | Command Line FTP | UNIX Commands |
Password Protected Directory |
CGI | Cgiemail | MySQL |
|
Getting Connected |
FTP | Virtuals Only |
Additional Resources |