Chapter 2
Managing the GSS from the CLI
Renaming GSS Files
OL-10410-01
-rw-r--r--
1 root
sysMessages.log
drwxr-xr-x
2 root
drwxrwxrwx
2 root
-rw-r--r--
1 root
To list the filenames and subdirectories of the current working directory, enter:
gssm1.example.com# ls
gss-1.0.2.0.2-k9.upg
gss-1.0.904.0.1-k9.upg
To display the present working directory of the GSS, enter:
gssm1.example.com# pwd
/admin
The GSS software allows you to rename files located in the current directory or
subdirectory, such as backup files and log files. To rename a GSS file, use the
rename command. The syntax for this command is as follows:
rename source_filename new_filename
The arguments are:
•
source_filename—Alphanumeric name of the file that you want to rename.
new_filename—Alphanumeric name to assign to the file.
•
Quotation marks are not required around filenames. The following special
characters are not allowed in the renamed filenames: apostrophe ('), semicolon
(;), asterisk (*), and space ( ).
To view the files available in the current directory or subdirectory, use the dir, lls,
ls, or pwd commands. See the
details.
For example, to rename the current GSS startup-config file as newstartupconfig,
enter:
gssm1.example.com# rename startup-config newstartupconfig
root
49 Mar
root
4096 Mar
root
4096 Mar
root
41652 Mar 14 21:23 system.log
id_rsa.pub
megara.back.1_0.full
gss_sample.full
megara.back.1_1.full
"Displaying Files in a Directory"
Cisco Global Site Selector Administration Guide
Managing GSS Files
7 18:05
7 15:40 sysmsg
8 21:02 sysout
rpms
section for
2-21