more command tutorial in linux/unix with examples and use cases
linux more command - a filter for paging through text one screenful at a time. Examples: Display file contents starting at line 20, search for...
How to merge/convert multiple files into one file in linux
Merge/convert multiple files in linux.Examples:
Merge multiple files into one file,
sort and deduplicate multiple files and import one file,
sort multiple files and export duplicate content to...
How to display the first line and the last few lines of a file in Linux
In linux, print the first line and the last few lines of the file. Print the first line and the last 10 lines of the...
How to count the number of lines of file in Linux
In Linux, Count the total lines number,Count the total number of non repeating lines,Count the total number of duplicate lines,Count the number of times specific...
uniq command tutorial in linux/unix with examples and use cases
linux uniq command - report or omit repeated lines. Which usually requires sorted input, compares and ranks only on adjacent lines....
sort command tutorial in linux/unix with examples and use cases
linux sort command - sort lines of text files.examples:separate fields and sort by key, sort file, sort file/directory sizes in human readable format, sort multi...
How to using multiple delimiters in awk and sed
Multiple delimiter-separated fields in awk or sed.
Using awk command:
➜ awk -F'[:=|]' '{print $1, $2, $3}' test.log;
Using sed command:
➜ sed 's/[:=|]/ /g' test.log...
head command tutorial in linux/unix with examples and use cases
Linux head command - output the first part of files. Print the first 10 lines of each FILE to standard output. With more...
cat command tutorial in linux/unix with examples and use cases
linux cat command - concatenate files and print on the standard output. This article shares the syntax, options, and usage examples for the cat command....
tail command tutorial in linux/unix with examples and use cases
linux tail command - output the last part of files, it corresponds to the linux head command. This article introduces the tail syntax, options, and...
ls only files or directories examples in linux
linux ls only directory:
➜ ls -d */ ;
➜ ls -l | grep "^d" ;
➜ find . -type d -maxdepth 1; linux ls...
How to sort by size, type, time, name using linux ls command
Linux ls command can use command options to sort files or directories. This article describes: ls sort by size, ls sort by time, ls sort...
How to use Linux cat, less, more commands
More powerful than cat, providing paging display function, less powerful than more, providing page turning, jump, find and other commands....
view linux file change time, modify time and access time, use linux stat or ls
How does Linux view change time, modify time and access time? linux stat, linux ls.
- atime: access time;
- mtime: modify time;
-...
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 ......