ACE-P-ALE1-04 practice question 14 of 35
Which of these characters is not valid for filenames?
Full set: 100 questionsArista 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.
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.
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").
Keep practicing
Take the free ACE-P-ALE1-04 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ACE-P-ALE1-04 practice questions
- Question 1When using the sudo command to run something as root, which password is required?
- Question 2Which utility can be used to remove sections or columns of each line of input?
- Question 3The ps –ef command is from which UNIX variant?
- Question 4In file globbing, which symbol matches any single character?
- Question 5If the system is swapping, what can be done to alleviate the problem?
- Question 6When scripting in bash, it is recommended to always use which symbols around your variabl…
