diff --git a/cli/containers.md b/cli/containers.md new file mode 100644 index 0000000..1012540 --- /dev/null +++ b/cli/containers.md @@ -0,0 +1,17 @@ +# Docker Commands + +## Entering a Container + +To enter a container: +```bash +docker exec -it [container name] +``` + +## Working inside a Container + +Generally, once inside the container you can act the same as you would in any other terminal instance. However, containers are restricted by what has been natively integrated into the container. For example if you need to run a curl command you would need to ensure curl is installed, or use wget which is more common inside containers. + +To exit the container: +```bash +#/ exit +``` \ No newline at end of file diff --git a/cli/git.md b/cli/git.md new file mode 100644 index 0000000..9a77b7e --- /dev/null +++ b/cli/git.md @@ -0,0 +1,28 @@ +# Git Commands + +## Cloning Repository + +To clone a git repository (onto one of your devices with ssh key) use git clone and then the ssh url. For example: +```bash +git clone git@github.com:LeLawnGames/mind-palace.git +``` + +## Saving Changes + +To save and push changes back to github you need to do the following: + +### Add changed files +```bash +git add . # Adds all changed files +git add syno.md # Adds only the syno.md file +``` + +### Commit the additions +```bash +git commit -m "Your Commit Message" +``` + +### Push the changes +```bash +git push +``` \ No newline at end of file diff --git a/cli/network.md b/cli/network.md new file mode 100644 index 0000000..97369f9 --- /dev/null +++ b/cli/network.md @@ -0,0 +1,16 @@ +# Network Stuff + +## Finding IP Address + +To find the IP address of your computer there are two general directions to think about, Public IP and Private IP. + +To find your public ip: +```bash +curl ifconfig.me # When curl is installed +wget ifconfig.me # When wget is installed +``` + +For your private ip: +```bash +ip addr +``` \ No newline at end of file diff --git a/readme.md b/readme.md index e1880e9..895e27d 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,19 @@ # A physical mind palace to combat my poor memory ## Command Line Tools + +### File Management - [ZIP Commands](cli/zip.md) -- [Misc. Synology Commands](cli/syno.md) -- [Setting Permissions](cli/permissions.md) \ No newline at end of file +- [Networking](cli/network.md) + +### Folders & Permissions +- [Setting Permissions](cli/permissions.md) + +### Docker +- [Working Inside Containers](cli/containers.md) + +### Github +- [Github Commands](cli/git.md) + +### Synology +- [Syno CLI Commands](cli/syno.md) \ No newline at end of file