Configuration Guide File System Configuration
Enter the current-level directory
The following example enters the document directory in the mnt directory at the
root:
Ruijie# cd mnt/document
After that, the operations will be performed in the mnt/document directory.
Copying Files
This copies the files to a directory or a file.
In the privileged mode, copy files to a directory or files by using the cp
command:
Ruijie# cp dest directoryname sour
filename
Copy the file to the specified directory
Ruijie# cp dest filename sour
directoryname
Copy the file to the specified file
The following example shows how to copy a file to a directory and another file:
Ruijie# cp dest ../bak sour config.text
Ruijie# cp dest con_bak.txt sour config.text
Showing Directories
This shows the contents of the current working directory or specified directory:
Show the contents in the current directory
Show the contents in the specified directory
The following example shows the contents of the current directory and specified
directory:
Ruijie# dir
Ruijie# dir ../bak
Formating the System
In the privileged mode, format the device to be managed and operated by the
file system by using the following command:
Ruijie# makefs dev devname fs
fs_name
Format the device named dev for the file system named
fs_name