Posts tagged command
phpinfo from the command line
Sep 21st
If you want to display information about your php install without creating a phpinfo page then you can do the following on the command line:
php -i
Copy directory structure without content.
Sep 16th
Handy command to run if you need the directory structure replicated without the content.
To demonstrate I am going to create an example directory:
mkdir /new/destination/root/
The go into the root directory you want to replicate:
cd /source/root/
and type:
find * -type d -exec mkdir /new/destination/root/\{\} \;
crontab
Sep 15th
![]()
What is crontab:
Cron is driven by a crontab, a configuration file that specifies shell commands to run periodically on a given schedule. Each line of a crontab file represents a job and is composed of a CRON expression, followed by a shell command to execute.
Crontab Syntax
Sep 13th
This guide is to help you with understanding the crontab syntax, this is not for information on how to create or edit a cron job (this will be in another tutorial).
Fields
A crontab file has five fields for specifying day , date and time followed by the command to be run at that interval.

What versions am I running on my Linux server.
Jul 15th
These are usefull commands to find to find out what you have running on your server.
Server Platform
uname -p
Result
i686
With uname there are a number of other options that you can apply
Uptime command
Jul 15th
![]()
The uptime command produces a single line of output that shows the current time, how long the system has been running (in minutes) since it was booted up, how many user sessions are currently open and the load averages.