All Questions
6
questions
2
votes
3
answers
4k
views
What does `grep -1` do?
I'm trying to make sense of the following shell command, to get a list of packages that can be updated:
dpkg --get-selections | xargs apt-cache policy {} | grep -1 Installed | sed -r 's/(:|Installed: ...
3
votes
2
answers
855
views
web-based interactive MAN pages [closed]
So, there was this website where you type a unix command and it would break the command into its arguments explaining what does what. I suppose it was based on MAN, but I'm not sure.
I lost the ...
4
votes
2
answers
5k
views
Debian - bash is default shell, but "man sh" gives dash
On Debian squeeze. Running ps -p $$ shows bash is my current shell, ls -l $(which sh) shows sh is a symlink to bash. So why, when I run man sh, do I get the man page for dash? Is this just a bug in ...
15
votes
4
answers
4k
views
bash: colorized man page
Where do I have to take a look at in the system to colorize the man pages?
The man pages are viewed with less, so I tried adding the following lines to my .bashrc to change the colors: (Which works ...
1
vote
1
answer
735
views
man pages don't line wrap correctly
Sometimes running man outputs badly line-wrapped text. If I run man, quit, then resize the terminal window and run man again, it formats it according to the new window width. But if I run man, resize ...
2
votes
1
answer
1k
views
Colored man pages but git --help is not in ZSH
I have colored man pages according to:
alias man="TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man"
so
man less
looks like
but git blame --help is uncolored