Listing files in a subdirectory, Navigating through the filesystem, Showing the current directory – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 128
![background image](/manuals/427254/128/background.png)
Creating and Managing Files
Software Reference for x310 Series Switches
6.4
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
Listing files in a subdirectory
To list the contents of a directory, enter Privileged Exec mode and enter the command:
Tip
You can specify the directory with or without a / after the directory name.
Example
To display the contents of a directory called “example”, enter the command:
Listing files in NVS memory or on a USB storage device
To list the contents of a directory in NVS, enter Privileged Exec mode and enter the
command:
To list the contents of a directory on a USB storage device, enter the command:
Example
To display the contents of a directory in NVS called “example”, enter the command:
Displaying the contents of configuration and
text files
To display the contents of a file, enter Privileged Exec mode and enter the command:
Example
To display the contents of the file called “example.cfg”, enter the command:
Navigating through the filesystem
Showing the current directory
To see which directory you are currently in, enter Privileged Exec mode and enter the
command:
For the top-level directory, the output looks like this:
awplus#
dir <directory-name>
awplus#
dir example
awplus#
dir nvs:<directory-name>
awplus#
dir usb:<directory-name>
awplus#
dir nvs:example
awplus#
show file <filename>
awplus#
show file example.cfg
awplus#
pwd
flash:/