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. Exercise caution about security issues with the rdfile
- Enter the following command:
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 may have indeterminate output.
Example of rdfile command
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