B.2. Managing Directories, Files, and Disks in the Service Console

Without a graphical interface available, you will have to use the ESX CLI to create, manage, and delete files and directories. The following commands provide basic instructions for moving, copying, creating, and deleting files and directories. In all these examples, the hash sign (#) represents the shell prompt.

mv

Used to move or rename files. By default, mv defaults to an interactive setting (equal to mv -i), which confirms each operation.

Example 1: # mv oldfile newfile

Example 2: # mv file1 /newfolder/file1

cp

Used to copy directories or files. You can rename a file during the copy process. Use the -f parameter to force the copy, the -p parameter to preserve the permissions, ...

Get Mastering VMware vSphere™ 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.