]> Freerunner's - dotfiles.git/commitdiff
add bash cheat-sheet
authorAndre Ramnitz <tux.rising@gmail.com>
Wed, 17 Jan 2024 23:28:17 +0000 (00:28 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
banner-bash.asc [new file with mode: 0644]

diff --git a/banner-bash.asc b/banner-bash.asc
new file mode 100644 (file)
index 0000000..95bd03f
--- /dev/null
@@ -0,0 +1,55 @@
+Line movement:
+ctrl+a
+    Move cursor to the beginning of the line (home).
+ctrl+e
+    Move cursor to the end of the line (end).
+ctrl+f
+    Move the cursor forward one character.
+ctrl+b
+    Move the cursor back one character.
+alt+f
+    Move cursor forward one word.
+alt+b
+    Move cursor backward one word.
+ctrl+xx
+    Toggle the cursor between the current position and the beginning of the line.
+ctrl+]-<char>
+    Move cursor to the first occurrence of the entered character to the right.
+ctrl+alt-]-<char>
+    Move cursor to the first occurrence of the entered character to the left.
+
+Directory movement:
+cd /path
+    Change to /path directory.
+cd -
+    Change to previous directory.
+cd
+    Change to home directory.
+
+Screen control:
+ctrl+s
+    Stop (pause) output on the screen.
+ctrl+q
+    Resume output on the screen (after stopping it with the previous command).
+ctrl+l
+    Clears the screen preserving the current command (very similar to the clear command).
+
+Text manipulation:
+ctrl+u
+    Remove text relative to the cursor's current position to the beginning of the line.
+ctrl+k
+    Remove text relative to the cursor's current position to the end of the line.
+alt+d
+    Remove one word moving forward from the cursor's current position.
+ctrl+w
+    Remove one word moving backward from the cursor's current position.
+ctrl+y
+    Paste deleted text.
+
+Command history:
+ctrl+p
+    Scroll backward through previous command history for the current session.
+ctrl+p
+    Scroll forward through next entry in command history for the current session
+ctrl+r
+    Reverse search through history (type parts of the command to initiate query).