GNU Screen is an often overlooked application which allows you to run programs in a console section, detach from them and then later resume them. They even keep running when you logout.
SELECT * FROM tablename
WHERE columname BETWEEN '2012-12-25 00:00:00' AND '2012-12-25 23:59:59'
Example of etching data with a between statement
Type the following ps command to display all running process:
# ps aux | less
- -A: select all processes
- a: select all processes on a terminal, including those of other users
- x: select processes without controlling ttys
When creating new folder/directories in the /var/www folder you will need to make sure the Apache2 service has read access.
In my limited experience this the user/group is www-data
You can change the owner of a folder using the “chown” command
Chmod is used to change the permission for the current owner, group and other
Chown is used to change the owner, group and other
u – User who owns the file.
g – Group that owns the file.
o – Other.
a – All.
r – Read the file.
w – Write or edit the file.
x – Execute or run the file as a program.