tee command tutorial in linux/unix with examples and use cases
linux tee command - read from standard input and write to standard output and files. Copy standard input to each FILE, and also to standard...
How to replace strings in files in the Linux command line
There are many ways to replace strings in Linux. You can use vim/vi to edit files, you can also use the sed command to replace,...
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...
Create a file in linux, you can do this!
Create a file in linux, Examples:
use the linux touch command create an empty file;
use the linux vim/vi command;
use the linux cp...
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 print tree directory structure in linux/unix
Print tree directory structure in linux. Print the tree directory structure using the tree command;
Print multilevel tree directory structure using the find and awk combined...
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 find and delete old linux files or directories
linux delete old files script,linux delete old files by date,linux delete old files cron, scheduled task delete files older than,find and delete files older than...
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...
mv command tutorial in linux/unix with examples and use cases
linux mv command - move (rename) files or directories. Examples:Move multiple files,move just files, move overwrite files and backup,move multiple files ......
How to grep folder name in linux
How to grep folder name in Linux? Example: Use the find and grep commands grep folder name, Use the ls and grep commands grep...
cp command tutorial in linux/unix with examples and use cases
linux cp command - copy files or group of files or directories. Examples:Copy a file, Copy multiple files to directory, Copy directory and files, using...