Skip to content
Learn Linux

Learn Linux

Have You Tried The Man Page?πŸ““

  • Start Here!
  • Blog
  • Resources
  • About

Tag Archives: bash

Re-run a command with sudo permissions

Here’s how to quickly re-run your previous command with sudo permissions. !! is the same as !-1 But you can also do

Posted byraylech1986itJuly 31, 2026July 31, 2026Posted inUncategorizedTags:bash, sudoLeave a comment on Re-run a command with sudo permissions

Linux Bash Tip | chmod

If you’re changing the user & group ownership to the SAME person.. You can streamline it from 2 commands: To 1 command, only typing the username once:

Posted byraylech1986itApril 11, 2026April 11, 2026Posted inbash, chmodTags:bash, chmodLeave a comment on Linux Bash Tip | chmod

Advanced Hot Keys (Bash)

Command Summary Bash’s default is to use these Emacs-style commands: Video Demo:

Posted byraylech1986itNovember 16, 2025November 26, 2025Posted inUncategorizedTags:bashLeave a comment on Advanced Hot Keys (Bash)

Supercharge your bash prompt w/ git info

Here’s the source code for the bash function and PS1 variable: Full Demo:

Posted byraylech1986itOctober 26, 2025November 9, 2025Posted inUncategorizedTags:bash, gitLeave a comment on Supercharge your bash prompt w/ git info

Clear the Bash Screen FAST πŸ’¨πŸƒ

Tired of typing clear all the time in bash?? Hitting ^L (Control+L) will immediately clear the screen: Even better, you can clear the screen WHILE mid-typing 😌: Also, here’s a demo I recorded a while ago on ^L:

Posted byraylech1986itJune 29, 2025Posted inUncategorizedTags:bash, clearLeave a comment on Clear the Bash Screen FAST πŸ’¨πŸƒ

Re-direct Output to A File AND the Terminal

Posted byraylech1986itJanuary 30, 2025November 2, 2024Posted inUncategorizedTags:bash, LinuxLeave a comment on Re-direct Output to A File AND the Terminal

Run Shell Commands in VIM

Did You Know?.. You can run shell commands from within VIM? Here’s how πŸ‘‡

Posted byraylech1986itDecember 31, 2022Posted inUncategorizedTags:bash, Linux, vimLeave a comment on Run Shell Commands in VIM

BASH Script On Raspberry Pi To Show Filehandles

How to get file handles from ANY file.

Posted byraylech1986itJune 6, 2020June 6, 2020Posted inUncategorizedTags:bash, file handles, fuser, raspberry pi, shell scriptingLeave a comment on BASH Script On Raspberry Pi To Show Filehandles

Recent Posts

  • Quickly Compile Your 1st C Program September 4, 2026
  • Vim Searching – Advanced Tips August 17, 2026
  • Re-run a command with sudo permissions July 31, 2026
  • What Process is listening on each port? June 20, 2026
  • AI πŸ€– is getting so good.. April 22, 2026
Learn Linux, Create a website or blog at WordPress.com
  • Subscribe Subscribed
    Learn Linux

    Have a WordPress.com account? Log in now.

  • Learn Linux
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar