Specifications

VMware, Inc. 173
Chapter 5 Using the VMware Service Console
Managing the Computer and Its Users
The!root!user!or!super!user!(su)!can!run!all!these!commands.!Some!of!the!commands,!
those!that!provide!information,!are!available!to!other!users.
grep Search!for!a!specified!text!pattern!in!a!specified!directory!or!list!of!files!and!
display!the!lines!in!which!the!pattern!is!found.
grep "log file" *
Search!all!the!files!in!the!current!directory!for!the!text!string!log file.
less Display!the!contents!of!a!specified!file!one!screen!at!a!time.!Use
!the!arrow!keys!
to!move!up!and!down!through!the!file.
less myfile
Display!the!contents!of!the!file!myfile.
grep "log file" * | less
Search!all!the!files!in!the!current!directory!for!the!text!string!log file!and!use!
less!to!display!the!results!so!you!can!scroll!up!and!down!through!them.
Table 5-3. Linux commands used on the service console
Command Example and Explanation
apropos Find!commands!with!descriptions! that!include!a!specified!word.!Displays!the!
name!of!the!command!and!the!first!line!of!the!description.
apropos file
Find!commands!with!descriptions! that!include!the!word! file.
apropos file | less
Find!commands!with!descriptions!that!include!the!word!file!and!use!less!to!
display!the!results!so!you!
can!scroll!up!or!down!through!them.
du Display!usage!in!kilobytes!for!contents!of!the!current!directory!or!for!a!specified!
file!or!directory.
du /bin
Show!how!much!disk!space!is!used!by!the!/bin directory.
du -h $HOME
Display!how!much!disk!space!is!used!by!the!users!home!directory,!using!
familiar!file!size!
terms.
vdf vdf!is!an!ESX!Servercustomized!version!of!the!df!command.!Use!vdf!in!place!
of!the!df!command.!vdf!works!with!all!the!standard!df!options.
Displays!free!space!for!all!mounted!file!systems.!The!list!also!shows!the!total!
space,!amount!of!space!used,!and!percentage!of!space!used
!for!each!file!system.
vdf -h
Display!the!free!space!in!familiar!file!size!terms.
Table 5-2. Linux commands used on the service console (Continued)
Command Example and Explanation