ls -r command in Linux
ls -r option lists all files and directories in the current directory in reverse order....
ls -l command in Linux
ls -l option lists all files and directories in the current directory in long listing format....
ls -a command in Linux
ls -a option lists all files and directories in the current directory, including hidden files starting with "."...
How to display full path/absolute path with ls command
linux ls full path, you can use the ls -d option combined with the environment variable $PWD. syntax: ls -d $PWD/*...
list directory with ls command in linux/unix
In linux, with the ls command -d option, you can only list the directories of the current directory, not recursively....
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 display the file size in megabytes with ls in linux/unix
Display the file size in megabytes, which can facilitate us to browse the file storage size. Syntax: ls -lh , to display the file size...
How to list hidden files and folders in linux/unix
In linux/unix, when it comes to listing files and folders, everyone will think of the ls command. Yes, there are many options for the ls...
List directories recursively in linux/unix
Recursive listing of directories can help us begin to understand the current directory structure. In linux/unix, we can use any of the following commands to...
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...
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...
ls command tutorial in linux/unix with examples and use cases
linux ls command – list directory contents Linux ls command is the most commonly used command in our daily use of linux. ls can not...
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...