Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

ls file added #716

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions _commands/basics/ls.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
---

ls
-------

`ls` ls command lists the contents of, and optional information about, directories and files.
With no options, ls lists the files contained in the current directory, sorting them
alphabetically.

~~~ bash
$ ls [option ...] [file]...
ls [option ...] [file]...
~~~

<!--more-->

### Useful Options / Examples

### `ls -a`

Shows the hidden files in the directory as well.

~~~ bash
$ ls -a
a.txt b.txt c.txt
~~~

### `ls -l`

Shows file or directory, size, modified date and time,
file or folder name and owner of file and its permission.

~~~ bash
$ ls - l
$ -rw-r--r--. 1 <directory> 683 Aug 19 09:59 a.txt
$ -rw-------. 1 <directory> 1586 Jul 31 02:17 b.txt
~~~