Difference between revisions of "LS"

From Void-Byte
Jump to navigation Jump to search
(Created page with "== Description == The '''ls''' command is used to list the contents of a directory. == Structure == '''ls''' <options> <path/file> = Options =")
 
Line 1: Line 1:
== Description ==
+
==Description==
 
The '''ls''' command is used to list the contents of a directory.
 
The '''ls''' command is used to list the contents of a directory.
  
== Structure ==
+
==Structure==
 
'''ls''' <options> <path/file>
 
'''ls''' <options> <path/file>
  
= Options =
+
==Options==
 +
{| class="wikitable"
 +
|+
 +
!Option
 +
!Description
 +
|-
 +
| -a
 +
|List all files including hidden.
 +
|-
 +
| -d
 +
|List directories, but omit contents.
 +
|-
 +
| -h
 +
|Human readable format.
 +
|-
 +
| -l
 +
|Long listing format.
 +
|-
 +
| -R
 +
|List all files in directories recursively.
 +
|-
 +
| -t
 +
|Sort by time of file in numerical order.
 +
|}
 +
 
 +
== Examples ==
 +
<br />

Revision as of 14:54, 7 June 2020

Description

The ls command is used to list the contents of a directory.

Structure

ls <options> <path/file>

Options

Option Description
-a List all files including hidden.
-d List directories, but omit contents.
-h Human readable format.
-l Long listing format.
-R List all files in directories recursively.
-t Sort by time of file in numerical order.

Examples