home.social

#linuxtip — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #linuxtip, aggregated by home.social.

  1. #linuxTip: create alias ghist (stands for grep history). It allows you to check how you called your command (I'm mostly checking how I ran #xrandr

    `alias ghist="history | grep $1"`

    ```
    9763 history | grep xrandr
    9765 xrandr --query
    9786 xrandr --listmonitors
    9787 xrandr --eDP1 --mode 1920x1080 --output DP1 --mode 2200x1650 --left-of eDP1
    9905 xrandr-tv
    9951 xrandr --auto
    ```

    You can call commands by writing `!<num-before-command>` in your terminal if you just want to repeat it.