Alcatel-Lucent 6850-48 補足マニュアル

ページ / 312
File and Directory Management
Managing System Files
page 1-16
OmniSwitch AOS Release 6 Switch Management Guide
September 2009
In this first example, the user’s current directory is the flash directory. The following command syntax 
moves the testfile2 file from the user created testfiles directory into the working directory as shown in the 
illustration above. The screen displays a warning that the file is being renamed (or in this case, redirected).
-> move /flash/testfiles/testfile2 /flash/working/testfile2
WARNING:renaming file /flash/testfiles/testfile2 -> /flash/working/testfile2
In the next example, the user’s current directory is the /flash/testfiles directory as shown in the illustration, 
so it is not necessary to specify a path for the file being copied. However, the command syntax specifies a 
path to the destination directory. The screen displays a warning that the file is being renamed.
-> move testfile2 /flash/working/newtestfile2
WARNING:renaming file /flash/working/newtestfile2 -> /flash/working/newtestfile2
In this third example, the user’s current directory is the flash directory. Here, it is not necessary to specify 
a path for the destination file but a path must be specified for the original file. The screen displays a 
warning that the file is being renamed.
-> move /flash/testfiles/testfile2 newfile2
WARNING: renaming file /flash/testfiles/testfile2 -> /flash/testfiles/newfile2
In each of the above examples, a new file will be written to the specified or assumed path with the new 
filename. In each case, the file being copied will be removed from its original location.
Change File Attribute and Permissions
 commands have the same function and use the same syntax. Use these commands 
to change read-write privileges for the specified file. The following syntax sets the privilege for the 
config1.txt file to read-write. In this example, the user’s current directory is the /flash file directory.
Note. You must have read-write privileges to a file to change that file’s privileges. 
To set the permission for the config1.txt file to read-only, use the following syntax.
-> chmod -w /flash/config1.txt
To set the permission for the config1.txt file to read/write, use the following syntax.
-> chmod +w /flash/config1.txt
Delete an Existing File
The delete command deletes an existing file. If you use th
 command from the directory containing 
the file, you do not need to specify a path. If you are in another directory, you must specify the path and 
name for the file being deleted. The user of this command must have write privileges for any file being 
deleted.
-> delete /flash/config.txt