File SpaceLast update on Friday, 23-Mar-2007 13:40:45 CDT. | ||||||||||||||||||||||||
Allocation Areas & QuotasThere are three main directories or filesystems of importance that exist on the Altix. You are allocated a finite amount of diskspace on each.
PoliciesOf the three filesystems mentioned above only your /home directory is backed up. Files can be restored upon request. Extensions to your /home space will be strongly resisted beyond the standard allocation. The staff will consider increases to your /scratch space only for justifiably legitimate needs. During batch job execution, if at all possible, avoid file transfers involving the tape archive or a remote host. Needed input files that are unavailable on cosmos should first be copied locally, say, to /scratch. These files can then be copied to a job's $TMPDIR using the standard 'cp' command. Large output files resulting from batch job execution should be handled similarly. User files on any SC medium, disk or tape, must be be files that are directly relevant to your work on a SC system. Such files are the following:
The saving of data files on cosmos that are unrelated to processing
on it is NOT allowed. Users should also delete all files that are no longer
needed. Please cooperate with the staff in this important task.
The four leftmost columns indicate the filesystem, blocks used, quota, and upper limit. The system will prevent you from writing files beyond your upper limit. Numerical amounts of disk space are given in kilobytes. Display files and directories: ls
Sizes are given in bytes. The -a option lists files preceded by a dot. Consult the ls man page for more information about the ls command.. Recursively display disk usage for directories: du
This indicates the amount of disk space used for each directory including the current working directory. Consult the du man page for more information about the du command. Locate files in a directory tree: findFiles can be searched according to a variety of conditions. Options that are most commonly used are -name and -size. The full list is given in the find man page.
In this example, we are searching for files that are greater than 5 megabytes. Consult the find man page for more information about the find command. Protection & File SecurityFile security in unix involves three different catagories of users. Files and directories may be owned by user, group and other. Each of class of user can possess read, write, and execute permissions. Permissions for a particular file are listed with the 'ls -al' command.
The left column indicates what class of user and what kind of permission belongs to a file. The first field indicates whether or not it is a directory. The next three indicate permissions for the user class. Three more indicate permissions for the group class and the last three highlight permissions for all others. As an illustrated example, we see that 'dira' is a directory that has read, write, and execute permissions available to user 'aggie'. Execute permissions for directories permit traversal for that class of user. 'filea' has read and write permissions for the user 'aggie' and the group 'user'. 'fileb' has read and write permissions for the user 'aggie' and all other users not in the group user. This is undesirable if 'fileb' is intended to be a private file. Notice that the current directory, as indicated by the single dot, has full permissions for aggie and no other. If this is aggie's home directory then no other user would be allowed to view the directory contents. Under normal circumstances, modifications to the default home directory permissions are not needed. Alters permissions to files and directories: chmodThe chmod command adds or removes specified permissions for any of the three classes of users.
Here we have revoked read and write permissions for all other users not in the group 'user'.
'aggie' has now applied user execute permissions to the file 'scriptb'. Consult the chmod man page for more information about the chmod command. Additional InformationAll of the commands outlined above are described in detail in on-line manual pages. To call up the manual page for the 'find' command simply type at the command prompt:
An introduction to UNIX commands can be found here. |