More information on almost any of the commands that follow can be found in the on-line manual pages. Type ``man command-name'' at the command line to look at the manual page for the command ``command-name''. |
|
Environment |
Directories |
Processes |
drwx------ 3 ertle 512 Jul 16 13:38 LaTeX/The first part of the line tells you the file's permissions. For example, the ``X'' file permissions start with a ``d'' which tells that it is a directory. The next three characters, ``rwx'' show that the owner has read, write, and execute permissions on this file. The next three characters, ``r-x'' shows that people in the same group have read and execute permission on the file. Finally, the last three characters ``r-'' show that everyone else only has read permission on that file ( To be able to enter a directory, you need read AND execute permission ). Users can use ``chmod'' to change these permissions. If the user didn't want anybody else to be able to enter the ``X'' directory, they would change the permissions to look like those of the LaTeX directory, like this : ``chmod og-rx X'' - this means remove the read (``r'' ) and execute (``x'') permissions from the group (``g'') and others (``o'').
drwxr-xr-- 2 ertle 512 Jun22 12:26 X/
drwxr-xr-x 3 ertle 512 Jul 13 16:29 Xroff/
-rw-r--r-- 1 ertle 373 Oct 3 1992 o.me
-rw-r--r-- 1 ertle 747 Nov 21 1992 profile
-rwxr-xr-x 1 ertle 244 Jul 16 23:44 zap*
ertle@newton (55)> file *
useful.dvi: data
useful.hlp: English text
useful.tex: ascii text
xwin.dvi: data
xwin.tex: English text
ertle@newton (56)>
find ./ -name ``t*'' -printWhich searches the current directory ( and all of its sub-directories ) for any files that begin with the letter 't' and then prints them out. If you are looking for a specific filename, then replace ``t*'' with ``filename'', and ``find'' will print out all incidences of this file.
[1] 21998 Suspended emacs useful.tex
[2] - 22804 Suspended (signal) elm
[3] + 22808 Suspended badb
drwx------ 3 ertle 512 Jul 16 13:38 LaTeX/The first part of the line tells you the file's permissions. For example, the ``X'' file permissions start with a ``d'' which tells that it is a directory. The next three characters, ``rwx'' show that the owner has read, write, and execute permissions on this file. The next three characters, ``r-x'' shows that people in the same group have read and execute permission on the file. Finally, the last three characters ``r-'' show that everyone else only has read permission on that file ( To be able to enter a directory, you need read AND execute permission )
drwxr-xr-- 2 ertle 512 Jun 22 12:26 X/
drwxr-xr-x 3 ertle 512 Jul 13 16:29 Xroff/
-rw-r--r-- 1 ertle 373 Oct 3 1992 o.me
-rw-r--r-- 1 ertle 747 Nov 21 1992 profile
-rwxr-xr-x 1 ertle 244 Jul 16 23:44 zap*
Click Here for more advanced UNIX commands.