Workbench allows you to visually manage files in Elastic Compute Service (ECS) Linux and Windows instances. This topic describes how to use Workbench to view, add, delete, modify, upload, and download files in an ECS instance.
Prerequisites
ECS instances are connected. For more information, see Connect to a Linux instance by using a password or key or Connect to a Windows instance by using a password or key.
Your account is granted the permissions to create, edit, upload, and download files in the corresponding directories.
Procedure
Linux instance
View files
Method 1: View files by using a file navigator window
In the left part of the top navigation bar, choose File > New Navigator to open a file navigator window.
View folders and files.
The following figure shows a file navigator window.
Method 2: View files by using a file manager window
In the left part of the top navigation bar, choose File > New File Manager Window to open a file manager window.
View folders and files.
The following figure shows a file manager window.
Create a file
Method 1: Create a file by using a file navigator window
In the left part of the top navigation bar, choose File > New Navigator to open a file navigator window.
In the file tree, right-click the location where to create a file and select New File.
In the New File dialog box, enter a name for the file and click OK.
Method 2: Create a file by using a file manager window
In the left part of the top navigation bar, choose File > New File Manager Window to open a file manager window.
In the left-side file tree, click the location where to create a file. Then, choose Create > Create File above the right-side file list.
In the New File dialog box, enter a name for the file and click OK.
Edit a file
Method 1: Edit a file by using a file navigator window
In the left part of the top navigation bar, choose File > New Navigator to open a file navigator window.
In the file tree, right-click a file and select Open.
Enter content in the text editor and click the Save icon in the upper-right corner.
In the Confirm Saving message, click OK.
Method 2: Edit a file by using a file manager window
In the left part of the top navigation bar, choose File > New File Manager Window to open a file manager window.
In the right-side file list, find the file that you want to edit and click Edit in the Actions column.
Enter content in the text editor and click the Save icon in the upper-right corner.
In the Confirm Saving message, click OK.
Upload a file
Method 1: Upload a file by using a file navigator window
In the left part of the top navigation bar, choose File > New Navigator to open a file navigator window.
In the file tree, right-click the location to which to upload a file and select Upload File.
Select the file that you want to upload.
The message shown in the following figure indicates that the file is uploaded.
NoteFiles that do not exceed 100 MB in size can be uploaded.
If a file fails to be uploaded, you can re-upload or delete the file. If multiple files fail to be uploaded, you can click Upload All Failed Items Again to re-upload the files.
After the file is uploaded, you can modify, delete, download, or rename it in the file list.
Method 2: Upload a file by using a file manager window
In the left part of the top navigation bar, choose File > New File Manager Window to open a file manager window.
In the left-side file tree, click the location to which to upload a file. Then, click Upload File above the right-side file list.
Select the file that you want to upload.
The message shown in the following figure indicates that the file is uploaded.
NoteFiles that do not exceed 100 MB in size can be uploaded.
If a file fails to be uploaded, you can re-upload or delete the file. If multiple files fail to be uploaded, you can click Upload All Failed Items Again to re-upload the files.
After the file is uploaded, you can modify, delete, download, or rename it in the file list.
Download a file
Method 1: Download a file by using a file navigator window
In the left part of the top navigation bar, choose File > New Navigator to open a file navigator window.
In the file tree, right-click a file and select Download File.
The message shown in the following figure indicates that the file is downloaded.
NoteFiles that do not exceed 100 MB in size can be downloaded.
If the file fails to be downloaded, you can re-download or delete the file. If multiple files fail to be downloaded, click Download All Failed Items Again to re-download the files.
Method 2: Download a file by using a file manager window
In the left part of the top navigation bar, choose File > New File Manager Window to open a file manager window.
In the right-side file list, find the file or folder that you want to download.
To download a folder, click Download in the Actions column corresponding to the folder.
To download a file, choose
> Download in the Actions column corresponding to the file.
The message shown in the following figure indicates that the folder or file is downloaded.
NoteFiles that do not exceed 100 MB in size can be downloaded.
If the file fails to be downloaded, you can re-download or delete the file. If multiple files fail to be downloaded, click Download All Failed Items Again to re-download the files.
Delete a file
Method 1: Delete a file by using a file navigator window
In the left part of the top navigation bar, choose File > New Navigator to open a file navigator window.
In the file tree, right-click a file and select Delete.
In the Confirm Deletion message, click OK.
Method 2: Delete a file by using a file manager window
In the left part of the top navigation bar, choose File > New File Manager Window to open a file manager window.
In the right-side file list, find the file or folder that you want to delete and click Delete in the Actions column.
In the Confirm Deletion message, click OK.
Windows instance
In the examples, an instance that runs Windows Server 2022 is used.
Upload a file
In the search box, enter This PC.
In the Redirected drives and folders section, double-click the workbench on <Your Alibaba Cloud account> drive.
Drag and drop a file from your on-premises computer to the directory of the preceding drive. In this example, the test.txt file is used.
Copy the file from the directory to the C drive or another drive.
ImportantWhen you connect to or exit the instance, Workbench clears the information of all files that are uploaded to the instance to free up storage space. Store uploaded files properly.
Download a file
In the search box, enter This PC.
In the Redirected drives and folders section, double-click the workbench on <Your Alibaba Cloud account> drive.
Copy a file from the C drive or another drive to the Download directory. After the file is copied, it is downloaded to the directory.
Delete a file
In the search box, enter This PC.
In the Redirected drives and folders section, double-click the workbench on <Your Alibaba Cloud account> drive.
Right-click a file and select Delete to delete the file.