2-21
Cisco Global Site Selector Administration Guide
OL-10410-01
Chapter 2 Managing the GSS from the CLI
Managing GSS Files
-rw-r--r-- 1 root root 49 Mar 7 18:05
sysMessages.log
drwxr-xr-x 2 root root 4096 Mar 7 15:40 sysmsg
drwxrwxrwx 2 root root 4096 Mar 8 21:02 sysout
-rw-r--r-- 1 root root 41652 Mar 14 21:23 system.log
To list the filenames and subdirectories of the current working directory, enter:
gssm1.example.com#
ls
gss-1.0.2.0.2-k9.upg id_rsa.pub megara.back.1_0.full rpms
gss-1.0.904.0.1-k9.upg gss_sample.full megara.back.1_1.full
To display the present working directory of the GSS, enter:
gssm1.example.com#
pwd
/admin
Renaming GSS Files
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
“Displaying Files in a Directory”
section for
details.
For example, to rename the current GSS startup-config file as
newstartupconfig
,
enter:
gssm1.example.com#
rename startup-config newstartupconfig