http://httpd.apache.org/docs/1.3/misc/howto.html#logreset
The correct procedure is to move the logfile, then signal Apache to tell it to reopen the logfiles.
Apache is signaled using the SIGHUP (-1) signal. e.g.
mv access_log access_log.old
kill -1 `cat httpd.pid`
Note: httpd.pid is a file containing the process id of the Apache httpd daemon, Apache saves this in the same directory as the log files.
(httpd.pid is in /var/run on plesk)
Posted in Computing, Linux
|
Α, α – alpha
Β, β – beta
Γ, γ – gamma
Δ, δ – delta
Ε, ε – epsilon
Ζ, ζ – zeta
Η, η – eta
Θ, θ – theta
Ι, ι – iota
Κ, κ – kappa
Λ, λ – lambda
Μ, μ – mu
Ν, ν – nu
Ξ, ξ – xi
Ο ο – omicron
Π, π – pi
Ρ, ρ – rho
, ς – sigmaf
Σ, σ – sigma
Τ, τ – tau
Υ, υ – upsilon
Φ, φ – phi
Χ, χ – chi
Ψ, ψ – psi
Ω, ω – omega
This obscure error can sometimes be fixed by the following steps:
- Go to Settings
- Click on Language and Input
- Click the cog image next to the Samsung keyboard options (even if greyed out)
- Click on Input Languages
- On English (UK), click update.
- Wait for the update to complete, then try to reopen S-note.
Movement:
h, j, k, l – left, down, up, right
spacebar – right
Copy/paste:
Y – copy one or more lines
p – paste line below current cursor
P – paste line above current cursor
Line numbers:
:set number
Posted in Computing, Linux
|
Hard links:
ln /path/file1 /path/file2
Associates one physical file with another name (file2). Both access the same file. Can’t be used with directories. Can’t cross file system boundaries.
Soft (symbolic) links:
ln -s /path/source /path/alias
Creates an alias to a file. Can be used with directories. Can cross system boundaries. Doesn’t update if file deleted or moved.
Misc. Commands:
chown [owner] file
chgrp group file
chown/chgrp on a symbolic link (use -h):
chown -h myuser:mygroup mysymbolic
Find files over 100m:
find . -type f -size +100M
Posted in Computing, Linux
|
Notes:
A regular expression is enclosed between two forward slashes “//“. Hash signs # or tildes ~ can also be used (these characters are called delimiters).
eg. $exp = “/php/“; – search for the occurence of string ‘php’
Special/meta-characters:
* Match zero or more of the preceding expression
+ Match one or more occurences of the preceding expression
? Match zero or one of the preceding expression
() brackets can be used to mark out sub patterns.
Hatch covers:
Made by Holt-Allen, size: 4″, product code: HA 337