
dir/dir/dir/dir/filename
dir/dir/dir/dir/dir
Filenames beginning with a slash, start at the root directory:
/usr/local/bin
A "." represents the current directory, so:
./dir/filename
dir/filename
are the same. A ".." represents the previous directory. In the C shell, the "~" represents your home directory. You can also prepend a "~" to a user name for another user's directory.
To find the pathname of the current directory, use the
larry%
larry%
fun mp.and.the.holy.grail.txt
hi
larry%
larry%
total 65
drwxr-xr-x 2 schallee 512 Jul 11 08:56 .
drwxr-xr-x 20 schallee 1536 Jul 11 08:57 ..
-rw-r--r-- 1 schallee 22 Jul 11 08:47 fun
-rw-r--r-- 1 schallee 23 Jul 11 08:46 hi
-rw-rw-rw- 1 schallee 60531 Jul 11 08:56 mp.and.the.holy.grail.txt
larry%
total 65
drwxr-xr-x 2 schallee 512 Jul 11 08:56 .
drwxr-xr-x 20 schallee 1536 Jul 11 08:57 ..
-rw-r--r-- 1 schallee 22 Jul 11 08:47 fun
-rw-r--r-- 1 schallee 23 Jul 11 08:46 hi
-rw-rw-rw- 1 schallee 60531 Jul 11 08:56 mp.and.the.holy.grail.txt
larry%
You can also include a pathname to get a listing of a certain file, or a different directory.
larry%
bin mnt tmp
dev n tmp_mnt
etc sbin usr
home security.script var
kadb security_script.log.185 vmunix
lib sys
larry%
-rwxr-xr-x 1 root 13352 Oct 14 1994 /bin/ls
larry%
To get information on all of the different
hi, you could
larry%
Hi there. How are you?
larry%
Or if you wanted to display both hi and fun, you
could include them both on the command line:
larry%
Hi there. How are you?
UNIX is a lot of fun!
larry%
The one problem with mp.and.the.holy.grail.txt, which is
1417 lines long, it will just scroll by as fast as it can. Most people can't
read this fast.
larry%
"The Script, of The Sound track, of The Movie, of the Python Presentation, of
The Retelling of the Great Classic, of The Myth, of The Legend, of The
Unproven Hearsay, of The See Webster's Dictionary for the Definition of the
Above - Better Known as...
(Alias) (Wik) *(Da Duh Da Daaaaaa)*
MONTY PYTHON AND THE MOST HOLY GRAIL
(and we really mean it)
(also also wik)
-- the strictly unofficial script of the movie, done in a fit of boredom
by a whole lot of people -- touched up again by Ralph the Wonder Llama
(How time flies), and Svend's Moose.
Assorted above silliness, commentary, and editing by Timothy 'Tronic a.k.a.
Andrew Mansfield
The Cast (in not too much of an order of appearance ):
KING ARTHUR : Graham Chapman
PATSY : Terry Gilliam
GUARD #1 : Michael Palin
--More--(1%)
The line at the bottom of the screen tells you that there is more, and that you have read 1% of the file. Once you have read the screen, you can type a space to get the next screen full. Or you could hit the "Return" key, and get just the next line. If you are really bored already, and hate this movie, type the "q" key to quit and go back to the prompt.
More also has it's own online help. If you type a "?", more displays a list of all it's commands, and then waits for your input again:
Most commands optionally preceded by integer argument k. Defaults in brackets.
Star (*) indicates argument becomes new default.
-------------------------------------------------------------------------------
<space> Display next k lines of text [current screen size]
z Display next k lines of text [current screen size]*
<return> Display next k lines of text [1]*
d or ctrl-D Scroll k lines [current scroll size, initially 11]*
q or Q or <interrupt> Exit from more
s Skip forward k lines of text [1]
f Skip forward k screenfuls of text [1]
b or ctrl-B Skip backwards k screenfuls of text [1]
' Go to place where previous search started
= Display current line number
/<regular expression> Search for kth occurrence of regular expression [1]
n Search for kth occurrence of last r.e [1]
!<cmd> or :!<cmd> Execute <cmd> in a subshell
v Start up /usr/ucb/vi at current line
ctrl-L Redraw screen
:n Go to kth next file [1]
:p Go to kth previous file [1]
:f Display current file name and line number
. Repeat previous command
-------------------------------------------------------------------------------
--More--(1%)
You can get more information on these by reading the man Removing Files
If you keep creating files, eventually your run out of disk space, and have to
delete some files. To remove a file, use the
larry%
Note:Unlike DOS, there is no undelete in UNIX. Once you delete a file, it is realisticly gone forever!
larry%
larry%
larry%
larry%
larry%
larry%