# tail -n 50 'file name'
Shows last 50 lines of a file
# tail -f 'file name'
Outputs continuously what is being written to the file
# more 'file name' | grep -C 10 'search string'
Outputs the line with the word you search for including 10 lines on each side of the entry.
# less 'file name'
A good alternative to 'more' and 'cat'. Lets you navigate back and forth with the keyboard arrows. Use 'w' for page up and 'z' for page down
# find / -name 'search string'
Search for something. Further described in this post.
# find -iname "*-flat.vmdk" -mtime +7 | xargs ls –alh
Finds files older than 7 days and list them including when they've last been changed. See this post for more info on xargs.
Using the vi text editor. See this post.
Typen characters with ASCII code (hold the Alt key while inputting the number on the numeric keyboard). See more here.
@ - Alt+64
| - Alt+124
# esxcfg-scsidevs –a
# esxcli storage core adapter list
Both commands show info on the SCSI controller type, HBA type, WWNs. Here's more info.
# esxcfg-scsidevs –l
# esxcli storage core device list
# esxcfg-mpath -l
# esxcli storage core path list
Shows info about the storage paths. Will show naa device id, LUN id, and state of the paths. You can grep for the word 'dead' for finding dead paths.
Will show the yellow/grey ESXi console menu in a Putty session
# esxcli software vib list
# esxcli software vib update -v 'VIB file name'
Updates the VIB package. See here for more info
Show working directory
Change password for current user (can be used for root as well)
Show date and time.