Wait… before I try to copy this directory recursively, how big is it?
du -sh /path/to/directory
-s : Display for the entire folder, not for all subfiles separately
-h : Display size in human-readable format: KB, GB, TB..
Wait… before I try to copy this directory recursively, how big is it?
du -sh /path/to/directory
-s : Display for the entire folder, not for all subfiles separately
-h : Display size in human-readable format: KB, GB, TB..
When using Cloudflare, all the hits to your web server will come from a Cloudflare IP address. So in order to retrieve the actual IP address from the visitor you must install mod_cloudflare. 1. Connect to your server through SSH and log in...
grep can search one or many files for a word or phrase. To search one file for the phrase “Libby the dog”, try this: grep "Libby the dog" file.txt Note that you use quotation marks around your phrase because you are searching for a...
In order to change the SSH port and protocol, you will have to edit sshd_config nano /etc/ssh/sshd_config Change Protocol 2,1 -> to Protocol 2Change #Port 22 -> to some other port and uncomment it Example: Protocol 2 Port 2255 Then restart ssh...
To view the first lines of a text file, use the head command. head file.txt = show first 10 lines of filehead -25 file.txt = show first 25 lines of file To view the last lines of a text file, use the tail command. tail...
I did a little research the other day with regards to Time Dimensions and I thought I would share my findings here. Background:Traditionally a data warehouse will have at least one “Time” dimension that will have one record for...
A common issue for users of SQL Server databases is disk space and the size of the physical log file and database. While I’m not going to attempt to make a “one size fits all” statement on database maintenance plans, I thought...
This directory contains some sample scripts that can be dropped into /etc/postwwwacct.dir. Note that you need to be root to set up this stuff, which means usually that you’ll need a dedicated server or VPS to run these scripts (a very...