. is the relative reference for the current directory.
.. is the relative reference for the parent directory.

This is why cd .. makes the parent directory the new working directory.

Answer from Shawn J. Goff on Stack Exchange
🌐
IBM
ibm.com › docs › ssw_aix_71 › l_commands › ls.html
ls Command
We cannot provide a description for this page right now
🌐
Pluralsight
pluralsight.com › tech insights & how-to guides › cloud
Linux Commands for Beginners: LS | Pluralsight
But if you're new to Linux or just ... in any directory or anywhere on the command line, all it does is list the contents of your current working directory....
🌐
University of Cambridge
maths.cam.ac.uk › computing › linux › unixinfo › ls
The ls command | Computing
ls -a will list all files including hidden files (files with names beginning with a dot).
🌐
High Performance Computing
hpc.ncsu.edu › Documents › unixtut › unix1.html
Linux Tutorial One
ls is an example of a command which can take options: -a is an example of an option. The options change the behaviour of the command. There are online manual pages that tell you which options a particular command can take, and how each option modifies the behaviour of the command.
🌐
Ucla
bookstack.kb.ucla.edu › books › macos-windows-and-linux › page › 15-basic-ls-command-examples-in-linux
15 Basic 'ls' Command Examples in Linux
I learned at least three things from this list, and I’ve been using ls for years.15 Basic ‘ls’ Comma...
🌐
Reddit
reddit.com › r/linux › try to explain linux shell ls command in short
r/linux on Reddit: Try to explain linux shell ls command in short
December 8, 2020 - Edit: For what it's worth, I would generally recommend using find/stat/du/other commands to get file sizes in scripts. ... Oh, I've certainly encountered such. And generally don't need "some other application", just generally pay due attention and use due care. Unix filenames (of any type, including directories) can contain any ASCII characters except ASCII null and / (slash). $ ls -a1 | cat .
🌐
Kubesimplify
blog.kubesimplify.com › everything-you-need-to-know-about-the-linux-ls-command
Everything you need to know about Linux ls command.
June 9, 2022 - Hidden files in Linux are those ... called hidden files. The -a parameter with the ls command is used to display hidden files alongside normal folders and files....
🌐
Linux Man Pages
man7.org › linux › man-pages › man1 › ls.1.html
ls(1) - Linux manual page
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. dircolors(1) Full documentation <https://www.gnu.org/software/coreutils/ls> or available locally via: info '(coreutils) ls invocation'
Find elsewhere
🌐
Cisco
ipcisco.com › home › linux ls options
Linux ls command | Linux ls Options | -l | -a | -t | -S | File Listing ⋆
September 26, 2022 - When you use ls without -a option, these hidden files are not listed. But if you would like to see linux ls hidden files also, you can use linux ls -a command. To show you this option better, we will use this option with -l option as ls -la.
Top answer
1 of 2
40

The ls -al command is a combination of ls -l (use a long listing format) and ls -a (do not ignore entries starting with .)

The result is a long list (the ls -l part) with (from left to right):

  • filetype
  • file permissions
  • number of links
  • owner name
  • owner group
  • file size
  • time of last modification
  • the name of the file or directory

while the ls -a means that hidden files are listed as well.

see also man ls (as always man is the first source of information), and this link.

A little more explanation on what you see

The output starts with the number of disc blocks, used by the directory (in your case 76). From the GNU docs:

For each directory that is listed, preface the files with a line ‘total blocks’, where blocks is the total disk allocation for all files in that directory. The block size currently defaults to 1024 bytes, but this can be overridden.

Then:

  • the first character describes wether it is a directory (d) or a file (-) (or some other file type, see the docs for a complete listing)

File permissions:

  • the permissions in a nine-character section (3x3 for owner / group / other users)

Links

  • The number of links is the number of hard links to the file. For a directory, the number of hard links is the number of (immediate) subdirectories plus the parent directory and itself.

Owner

  • name of the owner
  • name of the (owner) group

File size

  • You see many files with the size of 4096, which is the minimum size for a directory on ext3 and ext4.
2 of 2
4

ls - list directory contents

You have 76 directories in /home/blog

drwxrwxr-x - These are the permissions for each one

The number after the permissions is the number of file/folders/links in this folder

After that the current user

After that the folders owner

Next is the group ID for the group the file belongs too.

Next is date and time the file was modified

The far right entery is the name of the folder

You can append ls with other commands for example

ls -a

Displays hidden files (starting with .)

You can find all the commands here

🌐
DigitalOcean
digitalocean.com › community › tutorials › ls-command-in-linux-unix
ls command in Linux/UNIX | DigitalOcean
August 4, 2022 - The ls command without any options lists files and directories in a plain format without displaying much information like file types, permissions, modified date and time to mention just but a few.
🌐
LinuxTeck
linuxteck.com › basic-ls-command-in-linux-with-examples
The Most 17 Useful 'ls' Command In Linux With Examples | LinuxTeck
December 28, 2025 - This guide will teach you how to use the various options of 'ls' command. All the below examples of the 'ls' command are tested on RHEL/CENTOS 7.6.
🌐
High Performance Computing
hpc.nmsu.edu › onboarding › linux › commands › ls
List the Directory :: High Performance Computing
Upon further consideration, you ... example, different directories can be created for cats, dogs, fish, so on. The command ls is used to list the contents of your current directory....
🌐
Red Hat
redhat.com › en › blog › ls-command-options
Sysadmin tools: 11 ways to use the ls command in Linux
November 20, 2025 - The ls command is a basic, useful, and obvious utility that Linux users have been putting to work for decades. Originally debuted in an AT&T build of...
🌐
Quora
quora.com › What-is-the-difference-between-ls-a-and-ls-f-commands-in-Linux
What is the difference between ls -a and ls -f commands in Linux? - Quora
Answer (1 of 4): Good question and its excellent that you are interested to learn more! ls command is essentially used to list directory contents. But that can be achieved in multiple ways, depending what do you desire.
🌐
Computer Hope
computerhope.com › unix › uls.htm
Linux Ls Command
Linux ls command with help, including examples, syntax, and related commands to efficiently list files and directories from the command line.
🌐
University of Connecticut
www2.math.uconn.edu › ~vince › MathDoc › GSGuide › s1-navigating-using-ls.html
View Directory Contents with ls
If you want to see the size of a file or directory, when it was created and more, just add the "long" option (-l) to the ls -a command:
🌐
LinuxConfig
linuxconfig.org › home › ls command in linux with examples
ls command in Linux with examples
September 22, 2025 - The options you can use with ls are mostly just to list additional information, or to format the output differently. Running the ls command by itself, without any additional options, will list the contents in your present working directory, which is just a technical way of saying the directory that your terminal is currently in.