From d3d32b60b7021eb3826fabd09649fd16223630f7 Mon Sep 17 00:00:00 2001 From: q Date: Tue, 22 Aug 2023 20:52:17 -0500 Subject: [PATCH] vault backup: 2023-08-22 20:52:17 --- .obsidian/appearance.json | 2 +- .obsidian/workspace.json | 33 ++++++++++++------------------- Tenmado/Git.md | 4 ++++ Tenmado/Linux - Commands & CLI.md | 15 ++++++++++++++ 4 files changed, 33 insertions(+), 21 deletions(-) create mode 100644 Tenmado/Linux - Commands & CLI.md diff --git a/.obsidian/appearance.json b/.obsidian/appearance.json index 5e0946d..bbc6444 100644 --- a/.obsidian/appearance.json +++ b/.obsidian/appearance.json @@ -1,5 +1,5 @@ { "accentColor": "", "cssTheme": "Atom", - "baseFontSize": 18 + "baseFontSize": 15 } \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index fdccae3..c4c5f01 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -30,37 +30,29 @@ { "id": "a072d1b7e91691d6", "type": "leaf", - "state": { - "type": "graph", - "state": {} - } - }, - { - "id": "9f432a9bce2719b4", - "type": "leaf", "state": { "type": "markdown", "state": { - "file": "Tenmado/Linux - Desktop Entries.md", + "file": "Tenmado/Git.md", "mode": "source", "source": false } } }, { - "id": "854472b104f6e806", + "id": "0a85e7f4077badd4", "type": "leaf", "state": { "type": "markdown", "state": { - "file": "Tenmado/Linux - Neovim.md", + "file": "Tenmado/Linux - Commands & CLI.md", "mode": "source", "source": false } } } ], - "currentTab": 4 + "currentTab": 3 } ], "direction": "vertical" @@ -126,7 +118,7 @@ "state": { "type": "backlink", "state": { - "file": "Tenmado/Linux - Neovim.md", + "file": "Tenmado/Linux - Commands & CLI.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -143,7 +135,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "Tenmado/Linux - Neovim.md", + "file": "Tenmado/Linux - Commands & CLI.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -166,7 +158,7 @@ "state": { "type": "outline", "state": { - "file": "Tenmado/Linux - Neovim.md" + "file": "Tenmado/Linux - Commands & CLI.md" } } }, @@ -195,14 +187,15 @@ "command-palette:Open command palette": false } }, - "active": "854472b104f6e806", + "active": "0a85e7f4077badd4", "lastOpenFiles": [ - "Tenmado/Docker Compose.md", - "Tenmado/Linux - Neovim.md", - "Tenmado/Dotfiles.md", "Tenmado/Git.md", - "Tenmado/Linux - Desktop Entries.md", + "Tenmado/Linux - Commands & CLI.md", + "Tenmado/Linux - Neovim.md", "Tenmado/Linux - Games Live Streaming.md", + "Tenmado/Linux - Desktop Entries.md", + "Tenmado/Dotfiles.md", + "Tenmado/Docker Compose.md", "Git", "Tenmado/Linux - Desktop Entries 1.md", "README.md", diff --git a/Tenmado/Git.md b/Tenmado/Git.md index 1fe6013..93670aa 100644 --- a/Tenmado/Git.md +++ b/Tenmado/Git.md @@ -4,6 +4,10 @@ **Most use command:** ```bash git clone url ## Clones a repo +git add -A ## Stages all current changes +git commit -m "message" ## Commits all changes located in the Staged area and adds a message + + ``` **Setting up a new git dev environment:** diff --git a/Tenmado/Linux - Commands & CLI.md b/Tenmado/Linux - Commands & CLI.md new file mode 100644 index 0000000..42e0491 --- /dev/null +++ b/Tenmado/Linux - Commands & CLI.md @@ -0,0 +1,15 @@ +### Creating new user/settings +*add new user* +```bash +adduser username #adds new user +``` +*change user group to* `sudo` +```bash +usermod -aG sudo user_name #changes user group to a different one, in this case `sudo` +``` +*check how many users are using the same machine* +```bash +cat /etc/passwd +``` + +