Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post: bash tricks #326

Merged
merged 3 commits into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]

Check notice

Code scanning / Remark-lint (reported by Codacy)

Warn when references to undefined definitions are found. Note

[no-undefined-references] Found reference to undefined definition

Check notice

Code scanning / Remark-lint (reported by Codacy)

Warn when shortcut reference links are used. Note

[no-shortcut-reference-link] Use the trailing [] on reference links
---

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>
Loading