How to find empty lines in files in Linux
In Linux, there are three ways to find empty lines in files using grep and awk commands....
How to use curl to download 302 redirect files in linux
In linux, use the curl command -L option to download the 302 redirected file....
How to download files using linux command line
In linux, we can use curl command and wget command to download files....
How to fast search for specified content in large files in linux
In linux, to search for specified content in large files, we can use tail -c or head -c commands....
How to find all files containing specific text on Linux?
In linux, to find all files containing a specific text, we can use the grep command, which can search for the specified text in the...
40 practical examples of Linux Find command
This article will share with you 40 practical examples of the most commonly used find command....
Sort files or folders by size with ls command in linux/unix
The Linux ls -S option can be sorted by size from largest to smallest, or the ls -rS option can be sorted by size from...
How to find file by name in linux/unix
To find files by name, we can use the linux find command. For example: find directory -type f -name "filename"...
Sort files or folders by date/time with ls command in linux/unix
In linux/unix ls -t option can be sorted by date from newest to oldest, or ls -rt option can be sorted by date from oldest...
How does grep exclude directory, file, keyword in Linux/unix
Grep command supports multiple exclusion methods, including grep exclude directory, grep exclude file, grep exclude binary files, and grep exclude keywords....
How to grep ignore case in linux/unix
In linux/unix, we can use the grep -i option to ignore case matching search keywords. grep ignore case syntax: grep -i "keyword" file...
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...
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...
How to change permissions folder and all its subfolders and files in linux
Changing the permissions of a folder and its subfolders and files is often used in Linux operations.For example: To change all the directories and files...
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...