How’d you get my shell history?
Comment on new rule
TheEntity@kbin.social 11 months ago
ps aux | grep vim | grep -v grep
cheet@infosec.pub 11 months ago
Comment on new rule
TheEntity@kbin.social 11 months ago
ps aux | grep vim | grep -v grep
How’d you get my shell history?
rockSlayer@lemmy.world 11 months ago
I don’t know what exactly this will do, but I know enough about the terminal to get the feeling this is a bad idea
TheEntity@kbin.social 11 months ago
It searches for a process named
vim
usinggrep
(which searches within provided lines), but sincegrep vim
also containsvim
, we then excludegrep
too, so only the actualvim
process gets found without thegrep vim
process. Sounds a lot like this post, doesn't it?rockSlayer@lemmy.world 11 months ago
Well that’s anticlimactic. Here I thought grep would continuously ping ps aux and softlock the terminal or something
Vash63@lemmy.world 11 months ago
It’ll give a list of processes with vim in the name. You could also just
pgrep vim
but that’s too easy.