![]() |
![]() |
Newbie's Linux Manual |
Files |
by Laurence Hunter |
[ Home ] [ Contents ] [ Download*] [ Previous ] [ Next ] |
* In Linux enter: unzip nlm.zip |
Filename Guidelines |
space < > ' " * { } [ ] ( ) ^ ! \ | & $ ? ~ ...although you can use them by enclosing filenames in ' ' or " " whenever filenames contain these characters.
|
Note |
The above 4 rules also hold true for "directorynames", since technically a directory is just a file that holds special information. |
Wildcards |
+-------+-----------------------------------------------------+ | * | Represents any mix of characters. | +-------+-----------------------------------------------------+ | ? | Each ? represents any character, and only one. | +-------+-----------------------------------------------------+ | [...] | Represents a range of user-specified characters. | +-------+-----------------------------------------------------+ Any time a filename is used, you can replace parts of the filename or all of it with wildcards. Any sensible combination you can think of can be used. You can even use wildcards to specify directories. |
Examples |
Consider the following directory: cartoon.gif ex2.html ex10.html logo.gif ex1.html ex3.html index.html rm e* ls *.gif rm ex[13]* ls ex[1-3].txt rm ex?.html rm ex??.html |
[ Home ] [ Contents ] [ Download*] [ Previous ] [ Next ] |
* In Linux enter: unzip nlm.zip |
The Newbie's Linux Manual is reproduced on LinuxMall.com by permission. The Newbie's Linux Manual is written and maintained by Laurence Hunter. You can find much more of Laurence's work at his site: www.Linuxdot.org |
© 1999 Linuxdot.org | Manual's Copyright Terms