Back to basics with this one, the linux wc command (word count) can be used to count lines, words and bytes in a file and
Back to basics with this one, the linux wc command (word count) can be used to count lines, words and bytes in a file and
Linux directory listing command ls is another must. This command lists files oldest to newest piped to grep which excludes directories piped to awk which
This php class will take two strings and return a html diff of them with the <ins> and <del> html tags representing what was deleted
Grep is often most powerful when examining the output of other shell commands. This example searches the Linux processes from the ps command for apache.
The Linux sort – it’s incredibly fast, runs well on files larger than ram, and a must to master for any good sysadmin. Here are
A few examples on using the Linux find command to list out all files matching a file type. The find command is on just about
Finding out the version of redhat or centOS you’re running is easy, you simple cat out the release version file standard on any red hat
You can use PHP’s built in directory iterator (in php 5 or 7) to loop over a directory and perform operations on the files easily.
The uname shell command will print out in any Debian or RedHat variant like Ubuntu and Centos Linux much of the main system information, here
Needed a function to test if a date was valid in PHP. This function does that but it also requires an expected date format. Example