Installation guide

www.vmware.com
198
VMware ESX Server Administration Guide
ls List the files in the current directory.
ls -al
List all (-a) the files in the current directory in long (-l) format.
ls *.html
List files in the current directory that end with .html. The * is a wild-card character that
represents any number of characters. The ? is a wild-card character that represents a
single character.
ls /home/user
List the files in the directory /home/user.
mkdir Make a new directory.
mkdir newdir
Make a new directory called newdir beneath the current directory.
mkdir /home/newdir
Make a new directory called newdir beneath the /home directory.
mv Move a file to a new directory or rename the file.
mv myfile /home/user
Move the file myfile from the current directory to the directory /home/user.
mv myfile yourfile
Rename the file myfile. The new filename is yourfile.
pwd Show the path to the present working directory.
rm Remove a file.
rm deadfile
Remove the file deadfile from the current directory.
rmdir Remove a directory.
rmdir gone
Remove the directory gone, which exists beneath the current directory.
Command Example and Explanation