Linux Journal 10 commands

17 views
Skip to first unread message

Bill Jacqmein

unread,
May 30, 2025, 7:20:36 AMMay 30
to uc...@googlegroups.com

Darrell Lee

unread,
May 30, 2025, 4:26:35 PMMay 30
to uc...@googlegroups.com
Thanks Bill

Darrell Lee
Advanced Data LLC

On May 30, 2025 7:20:40 AM Bill Jacqmein <wrjac...@gmail.com> wrote:

-- 
You received this message because you are subscribed to the Google Groups "Upstate Carolina Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uclug+un...@googlegroups.com.

George Law

unread,
May 30, 2025, 5:09:10 PMMay 30
to uc...@googlegroups.com
Hey Bill,

I've been using `rg` now for a while as opposed to `grep -ir` - saw it used on another case I was working and it works good

years ago I used `inotify` when I was doing some work for Eric - looks like `entr` is similar

#10 on the list, asciinema - been using the `script` command for years to capture a terminal session, works the same and I think its generally a part of most base distros without having to install anything extra - my only pet peeve with both is the output file contains escape codes to show things like the prompts and special characters.

to add to the list, I recently converted to Wezterm https://wezterm.org/ for my preferred terminal - at Red Hat I do most of my analysis on remote "bastion" servers - so I do a lot of copy/paste via SSH sessions.  Wezterm supports OSC52 escape sequences which interacts with the terminal emulator to allow you to copy/paste - 

I think this is what got me started - https://oroques.com/2020/11/27/vim-osc52.html 

I am using a VI plugin  - vim-oscyank - configured like so :
~~~
$ cat .vimrc
Plug 'ojroques/vim-oscyank', {'branch': 'main'}

let g:oscyank_max_length = 0  " maximum length of a selection
let g:oscyank_silent     = 1  " disable message on successful copy
let g:oscyank_trim       = 0  " trim surrounding whitespaces before copy
let g:oscyank_osc52      = "\x1b]52;c;%s\x07"  " the OSC52 format string to use

map <leader>c <Plug>OSCYankOperator
map <leader>cc <leader>c_
vmap <leader>c <Plug>OSCYankVisual
~~~

So this lets me shift+V to highlight parts of a VI buffer on a remote system, then leader+c (leader=space) to copy to the clip board. 

So this allows me to do all of that mouse free, then puts that on the clipboard to use on my local machine.

Cool thing about wexterm is that it also supports sixel graphics which allows me to use the ranger file manager tool over the same SSH session and let's me view image files within my terminal window as well (no remote X to view via eog or some other image viewer).

~George


On Fri, May 30, 2025 at 7:20 AM Bill Jacqmein <wrjac...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages