Linux - ls (List directory content)

Bash Liste Des Attaques Ovh

Linux - ls (List directory content)


ls is a Linux Command utility that lists the contents of a directory

  • ll is an alias of “ls -la”
  • You can also list files and directories with the find command



ls -alt

How to monitor a directory for file changes?

cd /your/Directory/Path
while :; do ls -A1; sleep 1; clear; done;

This script will:

  • list the name of the files ls -A1 of the current directory
  • sleep one second
  • clear the screen
  • repeat until you break it with Ctr+C


ls [option] [file}


long format (l)

The -l option lists files and directories as a table with the following structure:

  • the number of child's (directory and file)
  • the owner name
  • the group owner name
  • the size of the file in bytes
  • the date and time of the last modification
  • the name of the file or directory

order (t)

The -t option orders files and directories by the time they were last modified.

hidden files and directory (a)

include hidden files and directories

Only file name

ls -A1

Discover More
Bash Liste Des Attaques Ovh
Bash - Alias (of a command) - Builtin command

Alias allows to define shortcuts and synonyms for commonly used: shell commands (of group of command) or script The basic syntax is: where: p is to only print the aliases [name[=value]...
Bash Liste Des Attaques Ovh
Bash - Read (Builtin Command) that capture a line

Read is a bash builtin command and read: by default one line or a number of characters (by option) from: the standard input, or from the file descriptor fd supplied as an argument to the...
Bash Liste Des Attaques Ovh
Bash - While

This article is dedicated to the while syntax in Bash. where: : is the no-op command; its exit status is always 0 The command: lists the file with the ls executable (ls -l) pipe the...
Undraw File Manager Re Ms29
File System - Analytics

See also: Every file system has a way to dump file system information. Disk usage Example on Linux with the find command to list information recursively where: Path: %p is the relative...
Linux - /etc/passwd (public user information)

User (name normally all lower case) Password (only contains the letter 'x' as the password has moved to the shadow file) User ID (a unique number of each user) Primary Group ID Comment (Normally the person's...
Bash Liste Des Attaques Ovh
Linux - File

Linux file management See Using Parameters Expansion Removal From a path string where the file does not exist dirname returns the first parent of an existing path file. ...
Bash Liste Des Attaques Ovh
Linux - find command

Search, print information and takes actions on files in a directory hierarchy. Find use stat to extract its information File Metadata Synbol Default Description '-H', '-L' and '-P' options control...
Linux File System - inode (index node)

inode (or index node) is a data structure that describes the linux file-system of one object such as a file or a directory. They are also known as filesystem objects (e.g. files and directories). Each...
Bash Liste Des Attaques Ovh
Sh - Hidden files

Files which the name start with a dot, are hidden. You can see them with the “-a” option of the ls command.
Card Puncher Data Processing
Shell Data Processing - Awk (grep and sed) - Output filtering

The awk command is a filter that implements a language that is dedicated to text processing and combines the functions of: grep and sed AWK is a (tool|language) for event-based data processing....

Share this page:
Follow us:
Task Runner