Commit 64eb745e authored by Vincent Tam's avatar Vincent Tam

Forgot to add unsaved edit

parent 604c917b
Pipeline #28905153 passed with stages
in 32 seconds
......@@ -4,6 +4,40 @@ subtitle: "My commonly used commands"
date: 2018-08-28T17:18:27+02:00
---
### Background settings
Take the local Git repo of this blog as an example.
# Show current path
$ pwd
/home/vin100/quickstart
# distinguish files from folders
$ ls -l
total 28
drwxrwxr-x 2 vin100 vin100 4096 Jun 28 21:00 archetypes
-rw-rw-r-- 1 vin100 vin100 2734 Aug 28 17:30 config.toml
drwxrwxr-x 4 vin100 vin100 4096 Jun 29 00:47 content
drwxrwxr-x 3 vin100 vin100 4096 Aug 25 15:29 layouts
drwxrwxr-x 9 vin100 vin100 4096 Jun 29 00:47 public
drwxrwxr-x 4 vin100 vin100 4096 Aug 25 13:36 static
drwxrwxr-x 3 vin100 vin100 4096 Aug 27 18:06 themes
### du
Disk usage. Only folders <i class="fa fa-folder-o" aria-hidden></i> are shown
by default
# display every folder (including hidden ones)
$ du
...
<i class="fa fa-info-circle" aria-hidden></i><i class="fa fa-tag"
aria-hidden></i><i class="fa fa-sort-alpha-asc" aria-hidden></i> Tags
explanations: (in alphabetical order)
- `-a`: also include all files
### ls
List files <i class="fa fa-file-o" aria-hidden></i> in a directory <i class="fa
......@@ -31,21 +65,6 @@ explanations: (in alphabetical order)
aria-hidden></i> and subfolders_ <i class="fa fa-folder-o" aria-hidden></i>
illustrates my doubts.
# Show current path
$ pwd
/home/vin100/quickstart
# distinguish files from folders
$ ls -l
total 28
drwxrwxr-x 2 vin100 vin100 4096 Jun 28 21:00 archetypes
-rw-rw-r-- 1 vin100 vin100 2734 Aug 28 17:30 config.toml
drwxrwxr-x 4 vin100 vin100 4096 Jun 29 00:47 content
drwxrwxr-x 3 vin100 vin100 4096 Aug 25 15:29 layouts
drwxrwxr-x 9 vin100 vin100 4096 Jun 29 00:47 public
drwxrwxr-x 4 vin100 vin100 4096 Aug 25 13:36 static
drwxrwxr-x 3 vin100 vin100 4096 Aug 27 18:06 themes
# see what '-d' does on current path '.'
$ ls -ld
drwxrwxr-x 9 vin100 vin100 4096 Aug 27 22:04 .
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment