Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
google-cloud-sdk /
lib /
surface /
storage /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
batch_operations
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
buckets
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
folders
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
hmac
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
insights
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
intelligence_configs
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
intelligence_findings
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
managed_folders
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
objects
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
operations
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
__init__.py
1.92
KB
-rw-r--r--
1980-01-01 08:00
cat.py
5.31
KB
-rw-r--r--
1980-01-01 08:00
copy.py
7.19
KB
-rw-r--r--
1980-01-01 08:00
cp.py
3.3
KB
-rw-r--r--
1980-01-01 08:00
delete.py
5.72
KB
-rw-r--r--
1980-01-01 08:00
diagnose.py
15.14
KB
-rw-r--r--
1980-01-01 08:00
du.py
6.81
KB
-rw-r--r--
1980-01-01 08:00
hash.py
7.22
KB
-rw-r--r--
1980-01-01 08:00
list.py
5.53
KB
-rw-r--r--
1980-01-01 08:00
ls.py
10.45
KB
-rw-r--r--
1980-01-01 08:00
mv.py
4
KB
-rw-r--r--
1980-01-01 08:00
restore.py
13.28
KB
-rw-r--r--
1980-01-01 08:00
rm.py
10.24
KB
-rw-r--r--
1980-01-01 08:00
rsync.py
12.8
KB
-rw-r--r--
1980-01-01 08:00
service_agent.py
2.76
KB
-rw-r--r--
1980-01-01 08:00
sign_url.py
14.95
KB
-rw-r--r--
1980-01-01 08:00
Save
Rename
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Implementation of Unix-like mv command for cloud storage providers.""" from googlecloudsdk.calliope import base from googlecloudsdk.command_lib.storage import cp_command_util from googlecloudsdk.command_lib.storage import errors from googlecloudsdk.command_lib.storage import flags from googlecloudsdk.command_lib.storage import storage_url _COMMAND_DESCRIPTION = """ The mv command allows you to move data between your local file system and the cloud, move data within the cloud, and move data between cloud storage providers. *Renaming Groups Of Objects* You can use the mv command to rename all objects with a given prefix to have a new prefix. For example, the following command renames all objects under gs://my_bucket/oldprefix to be under gs://my_bucket/newprefix, otherwise preserving the naming structure: $ {command} gs://my_bucket/oldprefix gs://my_bucket/newprefix Note that when using mv to rename groups of objects with a common prefix, you cannot specify the source URL using wildcards; you must spell out the complete name. If you do a rename as specified above and you want to preserve ACLs. *Non-Atomic Operation* Unlike the case with many file systems, the mv command does not perform a single atomic operation. Rather, it performs a copy from source to destination followed by removing the source for each object. A consequence of this is that, in addition to normal network and operation charges, if you move a Nearline Storage, Coldline Storage, or Archive Storage object, deletion and data retrieval charges apply. See the documentation for pricing details. """ _GA_EXAMPLES = """ To move all objects from a bucket to a local directory you could use: $ {command} gs://my_bucket/* dir Similarly, to move all objects from a local directory to a bucket you could use: $ {command} ./dir gs://my_bucket The following command renames all objects under gs://my_bucket/oldprefix to be under gs://my_bucket/newprefix, otherwise preserving the naming structure: $ {command} gs://my_bucket/oldprefix gs://my_bucket/newprefix The following command would clear all custom contexts from the destination object while moving the object to the destination bucket. $ {command} gs://my-bucket/object gs://destination-bucket/object \ --clear-custom-contexts """ _ALPHA_EXAMPLES = """ """ @base.UniverseCompatible @base.ReleaseTracks(base.ReleaseTrack.GA) class Mv(base.Command): """Moves or renames objects.""" hints = base.CommandHint(read_only=False) detailed_help = { "DESCRIPTION": _COMMAND_DESCRIPTION, "EXAMPLES": _GA_EXAMPLES, } @classmethod def Args(cls, parser): cp_command_util.add_cp_and_mv_flags(parser, cls.ReleaseTrack()) flags.add_per_object_retention_flags(parser) def Run(self, args): for url_string in args.source: url = storage_url.storage_url_from_string(url_string) if isinstance(url, storage_url.CloudUrl) and not url.is_object(): raise errors.InvalidUrlError("Cannot mv buckets.") if url.is_stdio: raise errors.InvalidUrlError("Cannot mv stdin.") # Must copy children of prefixes and folders. args.recursive = True self.exit_code = cp_command_util.run_cp(args, delete_source=True) @base.UniverseCompatible @base.ReleaseTracks(base.ReleaseTrack.ALPHA) class MvAlpha(Mv): """Moves or renames objects.""" detailed_help = { "DESCRIPTION": _COMMAND_DESCRIPTION, "EXAMPLES": _GA_EXAMPLES + _ALPHA_EXAMPLES, }