ACE-P-ALE1-04 practice question 14 of 35

Which of these characters is not valid for filenames?

Full set: 100 questions
Answer options
A:

A. *

B:

B. !

C:

C. /

Correct answer
D:

D. &

E:

E. <space>

Correct Answer:
C. C. /
Explanation

Arista EOS is a Linux-based network operating system. In Linux and other UNIX-like systems, the forward slash (/) character is fundamentally reserved as the separator for directories and files within a path. It is used to define the hierarchical structure of the filesystem (e.g., /mnt/flash/config). Consequently, the operating system kernel prohibits the use of / within a filename itself, as it would create ambiguity in parsing file paths. While other characters like , !, &, and are valid in filenames, they often require quoting or escaping at the command line to prevent the shell from interpreting them as special operators.

Why Incorrect

A. : Valid in a filename, but it is a shell wildcard character and must be quoted or escaped.
B. !: Valid in a filename, but it is a shell history expansion character and must be quoted or escaped.
D. &: Valid in a filename, but it is a shell control operator and must be quoted or escaped.
E. : Valid in a filename, but it is a shell argument delimiter and must be quoted or escaped.

References

1. Arista EOS User Manual: In the section "Navigating the Filesystem," the manual consistently uses the / character to separate directories in file paths for commands like dir, cd, and copy. For example, dir /mnt/flash demonstrates / as the root directory and path separator, confirming its special role. (Arista EOS User Manual, Release 4.28.0F, Page 103-104, "Navigating the Filesystem").

2. MIT OpenCourseWare: Course materials for "6.NULL The Missing Semester of Your CS Education" explicitly state the rule for filenames in Unix-like systems. "A filename can contain any character except / (which is the path separator) and \0 (the null character)." (MIT Missing Semester, Lecture 2: Shell Tools and Scripting, "Navigating the Command Line" section).

3. Arista CLI Partner Guide: This guide, while for partners, details the structure of the CLI and underlying system. It describes file transfer and management commands where the URL format filesystem:/path/filename is used, reinforcing that / is the path delimiter and not part of the filename. (Arista CLI Partner Guide, Section on "File Transfers").

Scroll to Top