Why do command names and filenames usually not have embedded SPACEs? How would you create a filename containing a SPACE? How would you remove it? (This is a thought exercise, not recommended practice. If you want to experiment, create a file and work in a directory that contains only your experimental file.)

What will be an ideal response?


From a command line, when you want to refer to a file whose name con-
tains an embedded SPACE, you must quote the SPACE. A SPACE is a special
character to the shell; it typically separates tokens or words on the com-
mand line. Because it is tedious to refer to this type of file, most filenames
do not include SPACEs.
You can remove a file whose name contains a SPACE by quoting the SPACE:
$ rm dumb\ filename
or
$ rm "dumb filename"

Computer Science & Information Technology

You might also like to view...

Click the item marked ____ in the accompanying figure to change a particular instance of a word to the selected correction.

A. 1 B. 2 C. 3 D. 4

Computer Science & Information Technology

A field ________ references a field in a data source

Fill in the blank(s) with correct word

Computer Science & Information Technology

Global variables are only meaningful when used in expressions or statements inside the function that declares them.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The asterisk (*) is the wildcard used to represent one and only one character in criteria.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology