Change File Attribute And Permissions; Delete An Existing File - Alcatel-Lucent OmniSwitch 6450 Management Manual

Hide thumbs Also See for OmniSwitch 6450:
Table of Contents

Advertisement

File and Directory Management
In this first example, the user 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 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 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

The
chmod
and
attrib
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 current directory is the /flash file directory.
Note. You must have read-write privileges to a file to change that file 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 the
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
page 1-16
commands have the same function and use the same syntax. Use these commands
OmniSwitch 6250/6450 Switch Management Guide
delete
command from the directory containing
Managing System Files
June 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch 6350Omniswitch 6250

Table of Contents