To list all files in a directory – including subdirectories then use this command: # find /data/jord01 -type f If you want a count of all the files in a directory: # find /data/jord01 -type f | wc -l
Author: Jordansphere
Disable Firewalld in CentOS 7
Simple instructions on how to stop, disable and the check the status of firewall 1) Stop the firewalld service # systemctl stop firewalld 2) Disable the firewalld service from starting # systemctl disable firewalld 3) Check the status of the firewalld service # systemctl status firewalld
Guest Customization Placing Local Domain in Workgroup Rather Than Domain
I had a Windows 7 machine that I wanted to customize in order to enter a domain in a VMware Horizon 7 environment. However the customization wasn't working correctly and the local domain was incorrectly placed put into the WORKGROUP. In order for the customization to work correctly you need to use the following format Read More…
Move MySQL Directory in WHM \ cPanel
We originally installed an image from the cPanel website. The /root parition holds the system information and the /data houses the users web and mail data. Unfortunatley the /root partition is NOT installed as an LVM which makes it difficult to expand. What I did notice is that the users MySQL data is actually stored in the /root Read More…
Useful Exim Commands
Here are some useful CLI commands when dealing with mail queues on EXIM: List amount of messages in the queue /usr/sbin/exim -bpc List all messages in the queue /usr/sbin/exim -bp Get a summary of the current mail queue /usr/sbin/exim -bp | exiqsumm Here is an example output Count Volume Oldest Newest Domain Read More…
Install Unbound on FreeBSD 10
Below are instructions on how to install Unbound on FreeBSD Firstly install Unbound from the ports tree: # cd /usr/ports # make search name=unbound Port: unbound-1.5.7 Path: /usr/ports/dns/unbound Info: Validating, recursive, and caching DNS resolver Maint: [email protected] B-deps: autoconf-2.69 autoconf-wrapper-20131203 automake-1.15_1 automake-wrapper-20131203 expat-2.1.0_3 indexinfo-0.2.4 ldns-1.6.17_5 libtool-2.4.6 m4-1.4.17_1,1 perl5-5.20.3_8 R-deps: expat-2.1.0_3 ldns-1.6.17_5 Read More…
PowerCLI Script to Get Number of CPUs, RAM and Provisioned HDD Size
The following script looks at particular folder (finance) on a vCenter Server then for each VM gets the number of CPUs, memory in GB and calculates the combined size of all HDDs. This is then exported to a csv file. Connect-VIServer -Server {hostname} -User {username} -Password {password} Get-Folder 'Finance' | Get-VM | Sort Name -descending| Select-Object Read More…
Telnet Using Source IP Address On a Cisco
I ran into a spot of bother trying to get to a remote router due to incorrect access list. To save me a long drive I came across the following command so I could telnet using the source IP address rather than just the interface. # telnet {ip} /source-interface {interface} /route:{sourceIP} eg # telnet 192.168.61.152 Read More…
Copying a File to Flash on a Cisco Router Using SCP
In this scenario I had a router with the same config as a live router . I wanted to configure everything correctly for the customer so they could just replace the current router. To get everything ready I would have to install a license key on the router. As the router could not connect to the Read More…
You must be logged in to post a comment.