VERSION
Vmware -v
VMware -l
FINDING FILES
Use the / and then -iname (which is not case sensitive)
Find / -name vmkrnel.log
Alternatively...
tail /var/log/hostd.log | grep -i Power
CHECKING SIZES
du -h
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.
VIEW PARTITIONS
FDisk -l
LIST DIRECTORIES
ls –l | less. Use -a to show hidden files.
ls -l | more
mkdir - Makes a directory mkdir <name>
less and more # less /var/log/vmkernel.log
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
DCUI - Go into DCUI. How do you come out???? CTRL+C
mdir - Removes an empty directory rmdir <directory>
rm - Removes a file (or directory)
Reboot - Reboot with out warning!
Shutdown - Shut down the computer.
Shutdown -h 5 - Completely halt (-h) the computer in 5 minutes.
Shutdown -r now - Shut down and restart (-r) the computer immediately.
cp - Copies a file or directory
mv - Move or renames files and directories. Example, mv myfile.txt ../ will move the current directory lower than the one you are in (very handy!!!!!). Use mv <filename> -i to prompt before overwrite
find - find a file. Example, find -name '*.vmx' -exec grep -il 'SOMETHING' {} \;
# 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.
Grep - Search all the files in the current directory for the text string log file. Example, grep "log file" *
No comments:
Post a Comment