diff --git a/cheatsheets/apk b/cheatsheets/apk new file mode 100644 index 0000000..1d50596 --- /dev/null +++ b/cheatsheets/apk @@ -0,0 +1,14 @@ +# Install a package +apk add $package + +# Remove a package +apk del $package + +# Update repos +apk update + +# Upgrade all packages +apk upgrade + +# Find a package +apk search $package diff --git a/cheatsheets/gcc b/cheatsheets/gcc new file mode 100644 index 0000000..fa8b245 --- /dev/null +++ b/cheatsheets/gcc @@ -0,0 +1,8 @@ +# Compile a file +gcc file.c + +# Compile a file with a custom output +gcc -o file file.c + +# Debug symbols +gcc -g diff --git a/cheatsheets/grep b/cheatsheets/grep new file mode 100644 index 0000000..ec307dc --- /dev/null +++ b/cheatsheets/grep @@ -0,0 +1,6 @@ +# Basic +grep pattern file + +# Advanced +grep -R pattern folder +cat file | grep pattern diff --git a/cheatsheets/vim b/cheatsheets/vim new file mode 100644 index 0000000..3b79d77 --- /dev/null +++ b/cheatsheets/vim @@ -0,0 +1,8 @@ +# Appending +a - drops vim into append mode +i - enters append mode without character skip + +# File management +:w - writes (saves) file +:q - quits +;q! - quits without saving changes