Latest Posts
Tags
awk awk -F awk examples background run script bash awk command grep linux curl disk space docker commands docker usage du find and grep Google Analytics grep -v grep examples java java example linux awk linux command linux find linux grep linux ls ls -al ls -lrt ls examples ls sort ls sort by size mkdir mv examples mysql mysql column to row mysql example rm rmdir sed sed examples sed tutorial seo Shell tutorial top vim vim examples vim tutorial w wordpress
Category Archives: File & Directory
How to Sort Files by Type in Linux: Complete Guide
In Linux, the ls command does not have a built-in option to sort files by type directly. However, you can use a combination of ls with other commands to achieve a sort by file type. Here’s how you can do … Continue reading
Posted in File & Directory, How to, Ls Command
Tagged linux ls, ls examples, ls sort, ls sort by type
Comments Off on How to Sort Files by Type in Linux: Complete Guide
How to Use the ls Command to Sort Files and Directories in Linux
In Linux, the ls command sorts files and directories by name in alphabetical order by default. Here are some examples of how to use ls to sort by name: Remember that the -r option reverses the sort order when used … Continue reading
Posted in File & Directory, How to, Ls Command
Tagged linux ls, ls examples, ls sort, ls sort by name
Comments Off on How to Use the ls Command to Sort Files and Directories in Linux
command grep linux
The grep command in Linux is a powerful utility for searching through text using patterns called regular expressions. Here’s a brief overview of how to use the grep command: Basic Usage: Options: Examples: grep is a versatile command that can … Continue reading
Posted in File & Directory, Grep Command
Tagged command grep, command grep linux, linux grep
Comments Off on command grep linux
Linux `ls` Command: 9 Ways to Sort File & Directory
In Linux, the ls command lists directory contents, and you can sort the output using various options. Here are some common ways to sort the output of the ls command: Remember that some of these options require a long listing … Continue reading
Posted in File & Directory, Ls Command
Tagged linux ls, ls, ls sort
Comments Off on Linux `ls` Command: 9 Ways to Sort File & Directory
How to Find Executable Files by Time Using the Find Command
In Linux and Unix systems, the find command is a powerful utility used to search for files and directories based on various criteria, including time-related conditions. One common use case is finding executable files based on their time attributes. By … Continue reading
Posted in Find Command
Tagged find, find file by time
Comments Off on How to Find Executable Files by Time Using the Find Command
Practical Guide to Using Find Command for Time-Based File Searches in Linux and Unix Systems
In Linux and Unix systems, the find command is a very useful tool for searching files and directories based on various conditions. Among its functionalities, finding files based on time is a common use case. By specifying different time conditions, … Continue reading
Posted in File & Directory, Find Command
Tagged find by time, find examples, linux find
Comments Off on Practical Guide to Using Find Command for Time-Based File Searches in Linux and Unix Systems
ls -r command in Linux
ls -r option lists all files and directories in the current directory in reverse order. Continue reading
Posted in File & Directory
Tagged linux ls, ls -r, ls -rl, ls -rlt
Comments Off on ls -r command in Linux
ls -l command in Linux
ls -l option lists all files and directories in the current directory in long listing format. Continue reading
Posted in File & Directory
Tagged linux ls, ls -al, ls -l, ls -lrt
Comments Off on ls -l command in Linux
ls -a command in Linux
ls -a option lists all files and directories in the current directory, including hidden files starting with “.” Continue reading
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. Continue reading
Posted in Awk Command, File & Directory, Text Processing
Tagged find empty lines, linux awk, linux grep
Comments Off on How to find empty lines in files in Linux
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. Continue reading
Posted in File & Directory
Tagged 302 download file, curl, download files
Comments Off on How to use curl to download 302 redirect files in linux
How to download files using linux command line
In linux, we can use curl command and wget command to download files. Continue reading
Posted in File & Directory
Tagged curl, download files, wget
Comments Off on How to download files using linux command line
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. Continue reading
Posted in File & Directory, Text Processing
Tagged grep examples, head examples, large file, tail examples
Comments Off on How to fast search for specified content in large files in linux
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 file. In the following example, we will introduce two methods to find all files containing … Continue reading
Posted in Find Command
Tagged find and grep, grep examples, linux command
Comments Off on How to find all files containing specific text on Linux?
The difference between ls, ls -a, ls -A, ls -l, ls -al, ls -lrt
ls -a : display all files and subdirectories in the current directory, including hidden “.” And “..” etc; ls -l : display detailed information of non-hidden files and directories. Continue reading
Posted in File & Directory
Tagged linux ls, ls -a, ls -al, ls -lrt
Comments Off on The difference between ls, ls -a, ls -A, ls -l, ls -al, ls -lrt