Find all .txt files with find:
find / -name \\\*\.txt Find all files with pattern:
find /path/to/files -type f -exec grep "pattern" {} /dev/null \\; Finding Files Less than 5MB…
find / -name '\*' -size -5000k Finding Files Greater than 1 GB…
find / -size +1000000k Finding Files modified in the last 10 Minutes…
find / -amin -10 -name '\*' Finding Files modified in the last 10 hours…
find / -atime -2 -name '*' Finding Files excluding the Mounted filesystems…...
Use the command:
vmkfstools -X xxG -X - Grow the virtual disk. xxG and xxM - GB or MB in size.
Had this crazy customer who wanted to set static IP addresses for her View Desktops.
Here are her requirements:
I dont want a DHCP server Sysprep is not allowed ..and I want to automate configuring my VM’s with static IP addresses with quick prep! I have a file with the desktop names and their static IP addresses.
Solution:
Copy the file to the parent/master VM Create a batch script that reads off the file and sets the static IP In the parent VM, use the RunOnceEx registry key to run the batch file once
ls -ld */ find * -prune -type d -exec ls -ld {} \; ls -l |grep ^d ls -al -d \* | egrep "^d" ls -p | grep "/" tree -d -L 1 find . -type d find . -type d -exec ls -d {} \; ls -d .*"/" *"/"
How do you create the vmdk descriptor file when you have just the flat vmdk file?
Find the size of the -flat.vmdk file.
"ls -l" will list the files and their sizes
Use vmkfstools to create a thin vmdk disk with the same size as the “-flat.vmdk disk in a temporary folder”
syntax: "vmkfstools -c m -d thin -a lsilogic /tmp/[filename]" -c : can be specified in kilobytes, megabytes or gigabytes....