linux view apache logs
In Linux, apache logs (error logs and access logs) provide useful information for system administrators to solve and locate problems....
Linux log view using linux command line
Linux log view using linux command line, tail -f: added log content for real-time monitoring, cat: view all log content, more: view log content by...
awk ternary condition judgment and examples
Awk ternary condition judgment is similar to the awk if else statement, providing branch control capability. Ternary syntax: ( Statement ) ? True :...
awk OFS field separator with examples
Awk OFS field separator variable, output field separator. It is a pair with the Awk FS variable; awk FS separates strings as fields, and awk...
awk FS field separate with examples
awk separate string, you can use awk FS variable or awk -F option to support single delimiter and multiple delimiter regular matching....
awk array operations with examples
Awk array, it supports associative array, the index is a number or a string. awk array syntax: array_name[index]=value...
How to find and locate php.ini in linux/unix
When we work in PHP development, we often encounter situations where we modify the php.ini configuration file. But many people don’t know how to locate...
htop – linux/unix monitoring tool usage example
htop is an interactive system-monitor process-viewer and process-manager, it shows a frequently updated list of the processes running on a computer, normally ordered by the...
I/O redirect in linux/unix with examples
I/O redirection is a process that captures the output of a command, application, or script, and then sends the captured output as input to a...
pipeline in linux/unix with examples
Pipeline is an inter-process communication in Linux and other Unix-like operating systems, similar to redirection, which transmits standard output to other target locations....
How to find and replace specified string with sed in linux/unix
find and replace content in linux: Use the grep command and sed command to search and replace, Use the find command and sed command to...
sed tutorial: sed in-place editing(-i option) with examples
Sed -i option, in-place editing of files, and can edit the operation file while the terminal does not output the sed execution result....
How to remove lines with specific line number from text file with awk or sed in Linux/unix
Remove specific line numbers in linux/unix, use awk NR variable to delete a specific line numbers, use sed command action option "d" to delete a...
How to use top command to monitor cpu usage in linux/unix
Linux top command monitor CPU: to monitor system CPU usage, to monitor the usage of multiple cores of the system CPU, to sort...
sed tutorial: sed append command
The sed append command can add a new line before or after the specified matching line. We do this by using sed a and i...