linux chmod/chown syntax and chmod/chown examples
linux chmod change file modes or Access Control Lists. chmod [options] mode file;linux chown change file owner and group. chown [options] owner[:group] file...
linux file properties and permissions
In Linux system, there are three most common file permissions: read (R), write (W) and execute (X) permissions. In Linux system, each file clearly defines...
rename file linux – use rename cmd or mv cmd or awk cmd
Rename file in linux has two ways: linux rename command and linux mv command. linux rename command rename command – renames multiple files. Ubuntu is...
linux iostat syntax and iostat examples
linux iostat command is an abbreviation for I/O statistics (input/output statistics). Iostat is a computer system monitor tool used to collect and show operating system...
Linux load average high, Java project
Linux load problems, in daily development, often suffer from us; below to sort out several factors that lead to changes in Linux load. Case 1:...
linux ps command and ps examples
Linux ps command is an abbreviation of Process Status. The linux ps command is used to list those processes currently running on the system. The...
Open SSH service in Ubuntu
SSH is divided into client (openssh-client) and server (openssh-server). If you just want to log in to SSH of other machines, you only need to...
AWK tutorial: awk group by count
When we are dealing with log files, we often need to count the number of times some keywords appear. For example, count the number of...
awk custom function and examples
Here, you need to use the awk custom function to implement the abs function. awk 'function abs(x){return (x < 0) ? -x : x;} {print...
AWK tutorial: find and kill process use awk
Step 1. View the process ID pid of the top command.
Step 2. Use the awk command to get the process ID.
Step 3. Use...
AWK tutorial: awk -F and awk BEGIN{ FS … }
Usually, when I use awk for text processing, I prefer to use the awk -F option for text field separation. Of course, we can also...
AWK tutorial: awk regex example
What Is Regex?
Types of Regex:BRE and ERE. Awk using BRE regex Patterns, Special Characters; Awk using ERE regex Patterns, matches the start...
How to split large files by line or by file size in Linux
When Linux splits large files, we usually use the linux split command to split files by line or by size.
When you split the file,...
grep multiple words/patterns/strings, and/or condition, use -e or regex
grep multiple words You can use grep -e parameters and pipes ("|") to implement grep multiple words "and" query, "or" query ......
linux grep process by name/by id and kill example, and grep -v example
linux grep process
- grep process name;
- grep process by port;
- grep process id and kill;
- grep process without itself;
-...