Useful command in DOS for searching within a directory : findstr /spin /d:\dir1\dir2\ “searchstring” Note: Flags: /s : Searches for matching files in the current directory and all subdirectories. /p : Skips files with non-printable characters /i : Specifies that the search is not to be case-sensitive. /n : Prints the line number before each line that matches.
Author: Jordansphere
Get the top 20 largest files in a directory
ls -lhS | head -20 To delve further into sub directories set the R (for recursive) flag. ls -lhRS | head -20
Veeam/VMware Error: Failed to parse “.”
OS: Centos6.2 (64bit) running on ESXi5 / Veeam 6.0 Scenario: I tried to backup a freshly created VM with Veeam Backup but get the message: Error: Failed to parse “.” Looking at the .vmx file there appeared to be an incomplete value: isolation. =”true” I removed this then, bingo! Please note that you”ll need to switch Read More…
Adding a new disk in FreeBSD
OS: FreeBSD 8.2 (64bit) Scenario: I need to add a new disk to my VMware guest. In this example I will be adding a 60GB disk and mounting it as /data So you’ve added your disk in VMware. Now you need to configure and mount it. On the FreeBSD console type sysinstall. This will take Read More…
FreeBSD: How much is each CPU utilising ?
How much CPU is my FreeBSD box using? The following command should help you out. This also breaks down each CPU: top -P In the following screenshot you will see that I have 4 x CPUs
.htaccess file disappearing?
Server OS: Centos 5.x / VSFTPD Client: Windows 7 /Filezilla You have uploaded an .htaccess file to your FTP space. You click refresh and the file disappears. Do not worry. The file is there – it is simply not displaying as it is classed as a hidden file. If you have shell access then SSH Read More…
BOOTMGR is Missing – Press CTRL+ALT+DEL to Restart
Yep. Your Windows 2008 R2 server wont boot. This is quite common if you mistakenly make your C: partition active when no bootmgr is on this volume. Steps to fix are: 1) Insert Windows 2008 disk and boot from DVD/CD drive. 2) Follow the Install guide -> Select the Repair option -> Click Next 3) Read More…
Clear your Bash History?
Simple! history -c
Adding a 2nd disk to a Debian VM and formatting as a partition
In this guide I am going to set up a new disk 100GB disk in a VM called v-debian After adding the disk to the VM log into the guest OS: Check the output using the following command: fdisk -l You’ll noticed that /dev/sdb is free Partition the new disk cfdisk /dev/sdb Select Read More…
What version of Centos am I running?
Simple tail /etc/redhat-release The output of this command will display something along the lines of: CentOS release 5.8 (Final)
You must be logged in to post a comment.