ls -la output explanation

Show files `ls`

Will provide basic overview of files and folders present in the directory

fniko@server:~$ ls
some_folder

Show files with details `ls -l`

With file / folder details

fniko@server:~$ ls -l
total 4
drwxrwxr-x 3 fniko fniko 4096 Mar 28 00:45 some_folder

Show hidden files `ls -la`

Will show hidden files with `.` prefix

fniko@server:~$ ls -la
total 76
drwxr-xr-x 8 fniko fniko  4096 Mar 28 01:23 .
drwxr-xr-x 4 root  root   4096 Mar 25 10:32 ..
-rw------- 1 fniko fniko  5422 Mar 28 00:03 .bash_history
-rw-r--r-- 1 fniko fniko   220 Mar 25 10:32 .bash_logout
-rw-r--r-- 1 fniko fniko  3771 Mar 28 01:23 .bashrc
drwx------ 3 fniko fniko  4096 Mar 25 11:07 .cache
drwx------ 3 fniko fniko  4096 Mar 27 16:28 .config
drwx------ 3 fniko fniko  4096 Mar 25 10:35 .gnupg
drwx------ 5 fniko fniko  4096 Mar 28 00:29 .local
-rw------- 1 fniko fniko    64 Mar 26 12:30 .mysql_history
-rw-r--r-- 1 fniko fniko   807 Mar 25 10:32 .profile
-rw------- 1 fniko fniko     0 Mar 27 15:53 .python_history
-rw-rw-r-- 1 fniko fniko    75 Mar 25 10:53 .selected_editor
drwxr-xr-x 2 root  root   4096 Mar 25 10:34 .ssh
-rw------- 1 fniko fniko 16048 Mar 28 01:23 .viminfo
drwxrwxr-x 3 fniko fniko  4096 Mar 28 00:45 some_folder

Output exmplanation

┌───────────── '-' for file, 'd' for dictionary, 'l' for symlink
│   ┌───────── permissions for 'user' - 'group' - 'others'
│   │       ┌─ number of links
│   │       │   ┌───────────── owner
│   │       │   │        ┌──── owner group
│   │       │   │        │                 ┌──────────── file size in bytes                 
│   │       │   │        │                 |        ┌─── last modification time
│   │       │   │        │                 |        |         ┌─── file name
|   |       |   |        |                 |        |         | 
|   |       |   |        |                 |        |         | 
-rw-r-----  1 syslog    adm             399687 Mar 28 01:08 syslog

Bonus

Running this command will add alias `ll` to run `ls -la` where this shortcut is not present yet.

echo alias ll='ls -la --color=auto' >> ~/.bashrc