Specifications

VMware, Inc. 171
Chapter 5 Using the VMware Service Console
!
Table 5-1. Linux commands used on the service console
Command Example and Explanation
cd Change!directories.
cd /home/user
Change!to!the!directory /home/user!(the!home!directory!for!a!user!with!the!
user!name!user).
cd ..
Go!up!one!level!from!the!current!directory.
cp Copy!a!file.
cp oldfile newfile
Make!a!copy!of!the!file!oldfile!in!the!current!directory.!The!copy!is!named!
newfile.
cp oldfile /home/user
Make!a!copy!of!
the!file!oldfile!in!the!current!directory.!The!copy!has!the!name!
oldfile!and!is!in!the!directory!/home/user.
ln Create!a!link!from!one!file!or!directory!to!another!file!or!directory.
ln -s /bin/program prolink
Create!a!soft!link!(shortcut)!from!the!existing!file!/bin/program!to!prolink.!
The!link!prolink!is!created!in
!the!current!working!directory.!If!you!enter!the!
command!prolink,!you!run!the!program!/bin/program.
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!wildcard!
character!that!represents!any!number!of!characters.!The!?!is!a!wildcard!
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.