代码搜索结果
找到约 10,000 项符合
L 的代码
l7.1a
#print
Sometimes ? is too flexible, and you
only want to allow a few characters. For example,
you might want to abbreviate
ls memo.ab memo.ac
without picking up "memo.ad", memo.ae", etc.
You can ma
l5.1a
#print
Most UNIX commands, like "ls" and "cat", let you
specify any number of file names after the command.
To make this as easy as possible, there are some
ways to abbreviate file names. This is usu
l1.1a
#print
The "ls" command will list the names of the files
in your directory. Is there a file named "junk"
present? Find out and then type "yes" or "no".
#copyin
#user
#uncopyin
#match no
#log
#next
2
l10.2a
#print
The way to get rid of a file you are finished with
is with the "rm" (remove) command. For example,
rm junk
will get rid of the file named "junk".
In this directory there is a file named "har
l4.2a
#print
If a file name is given with the "ls" command,
it tells you whether that file exists.
The file name is listed if the file exists;
if it doesn't, a complaint is typed.
For example,
ls george
w
l11.3a
#print
To make a copy of a file, you can use the
"cp" (copy) command. For example
cp old new
will make a copy of file "old", named "new".
This directory contains a file named "old";
try the "cp" com
l3.1a
#print
The "cat" command prints the contents of one or more files.
In fact, it is named "cat" as an abbreviation
for "concatenate". To print the files named "dog"
and "mouse" in succession, you could
l11.2a
#print
To make a new copy of a file, the easiest
way is to use the "cp" command.
If you type
cp x y
a copy of file "x" is made and named "y".
This directory contains a file named "george";
make a c
l7.3a
#print
Sometimes ? is too flexible, and you
only want to allow a few characters. For example,
you might want to abbreviate
ls memo.ab memo.ac
without picking up "memo.ad", "!"memo.ae", and so forth
l3.2a
#print
The command "cat" will print files. For example, you
can print the file named "food" by typing "cat food".
Your current directory has a file named "sam" and a
file named "steve". Which is lon