Skip to content

Commit

Permalink
Add post: bash tricks (#326)
Browse files Browse the repository at this point in the history
* add post bash tricks

* improve style

* fix: hidden detail from article due to <
  • Loading branch information
64J0 authored Feb 19, 2025
1 parent 012eb0a commit b7e413b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions posts/2025-02-18-bash-tricks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: "Bash tricks"
date: "2025-02-18"
show: true
tags: ["shell", "bash", "linux"]
---

Notes on bash tricks that could help you become more productive by leveraging
keyboard instead of using the mouse.

## Creating new terminal tabs

In order to create a new bash terminal tab using the keyboard one can use the
following keys:

- *Ctrl + Shift + t*
- *C-S-t* using Emacs terminology

## Switching between tabs

And to switch between different terminal tabs one can use:

- *Alt + tab_number* (example: *Alt + 1*)
- *M-{number}* using Emacs terminology

## Searching at the history

Other than this, you can search through the terminal history using *C-r* which
will use the **reverse-i-search** utility.

## Kill a tab

Finally, to kill the terminal you are currently in, the **exit** command must be
enough.

## References

- <https://askubuntu.com/a/423532>

0 comments on commit b7e413b

Please sign in to comment.