clear vs CTRL + L in Your Shell

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 7

  • @balloth
    @balloth 5 месяцев назад +8

    One thing that is interesting whit CRTL + L is that you can use it even when the current line is not empty.

    • @NickJanetakis
      @NickJanetakis  5 месяцев назад +5

      That's a really good tip, thanks for sharing it.

  • @samoylov1973
    @samoylov1973 4 месяца назад +4

    Interesting. Checked man clear. There's the history of clear command. One of the options might be useful in some scripts - printf '\033[2J' - it is also some type of clear command as it is. It clears all output above the current cursor position and itself (printf '\033[2J') of course, but cursor moves just one line down. Check it out - it is in man page also. )

  • @wisteela
    @wisteela 4 месяца назад +1

    Great that you've covered this. I keep using CTRL+L since I found out about it. Subscribed.

    • @NickJanetakis
      @NickJanetakis  4 месяца назад

      No problem, happy to have helped. Thanks for the sub!

  • @RobertJohnson-lb3qz
    @RobertJohnson-lb3qz 4 месяца назад +1

    I’m a hot key fan, so thanks very much ❗️🤓

  • @greensheen8759
    @greensheen8759 4 месяца назад +1

    I'm way too forgetful for ctrl-L, I've had to scroll up after clearing so many times. I mean I know there's history too but scrolling up is easier on a desktop.