Data ONTAP enables you to read a file from the storage system and write its contents to standard output.
About this task
A user who has the capability to execute the
rdfile command can read any file on the storage system. You should exercise caution about security issues with the
rdfile command.
Step
- Enter the following command: rdfile filename
filename is the name of the file whose content you want to read. It must be a fully qualified path name.
Note: Files that contain non-ASCII characters might have indeterminate output.
Example of reading a WAFL file
The following example uses the
rdfile command to read the content of the
/etc/test file, which contains two lines,
"line#1" and
"line#2".
toaster> rdfile /etc/test
line#1
line#2
toaster>