From 0b774b2c7d2624564f12d2c4f74ec2061394aaa8 Mon Sep 17 00:00:00 2001 From: Aaron Van Vyve Date: Wed, 15 Apr 2020 16:10:37 +0200 Subject: [PATCH] made command list for cd --- docs/addendum-10-crazy-command-list/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/addendum-10-crazy-command-list/README.md b/docs/addendum-10-crazy-command-list/README.md index 03952cc..350aea5 100644 --- a/docs/addendum-10-crazy-command-list/README.md +++ b/docs/addendum-10-crazy-command-list/README.md @@ -45,3 +45,12 @@ title: X - Crazy Command List | `ls [OPTIONS] [PATH]` | List information about files | | **Examples** | `ls -al`, `ls ~`, `ls /boot` | | **Common Options** | `-l` long listing
`-a` include hidden files
`-h` human readable format | + + + +| Command | Description | +| --- | --- | +| `cd [OPTIONS] [DIRECTORY]` | to change the current directory, the directory wherein the user is currently working | +| **Examples** | `cd Downloads`, `cd ..`, `cd /` | +| **Options** | `-L` (default) Follow symbolic links
`-P` Don’t follow symbolic links. When you try to navigate to a symbolic link that points to a directory, cd will change into the directory. | +| **Common Descriptions** | `/` goes to the root, the first directory in the filesystem hierarchy
`.` stays in current directory
`..` goes to the parent directory of the current directory
`../[name]` goes to the directory with that name, which has the same parent directory
` ` goes to home directory
`[name]` (relative path), goes to the directory inside the current directory with that name
`/[dir1]/[dir2]` (absolute path), to go to the directory "dir2", even if you are in a totally different directory than "dir1"
`~` also goes to home directory
`[dir1]/[dir2]` goes to a directory(dir2) inside a directory(dir1)
`"[name dir]"` for directory names with black spaces
`[name]\[dir]` also for directory names with black spaces, but here the space is replaced with "\"
`-` goes to the previous directory the user used|