My terminal settings include thousand lines scrolling buffer. And clear
and <ctrl>-l
actually clear only visible part of of this buffer, i.e. terminal height
lines. That is why I use terminal menu Terminal > Reset and clear
option.
Just got used to it, but I guess I'll use that more often now
I often use clear
in conjunction with another command (e.g., clear
;eza --long --header
) so I accomplish a clear screen before the output of the subsequent command.
Also, I use xrdp
to connect my Mac to my MATE server, and keyboard mappings don't always translate the expected way.
204 ls
112 cd
67 seek
50 sudo
44 mkdir
44 7z
26 strings
23 mv
20 whereis
20 df
seek is a bash script that recursively searches for directories and files using any substring of names, and reports the results as full paths relative to the current directory. I like it a lot.
#!/bin/bash
#echo "$1"
tree -a -i -f | grep -i --color=always "$1" | less -R