dCore Import Debian Packages to Mountable SCE extensions > dCore X86

grep

(1/3) > >>

nitram:

--- Code: ---tc@box:~$ which grep
/bin/grep

--- End code ---


--- Code: ---tc@box:~$ sudo find / -name "grep"
/bin/grep
/bb/grep
/tmp/tcloop/xorg-intel/bin/grep

--- End code ---

Clarification for wiki. Based on above my system uses faster grep? Does /bin/grep standard in all xorg-* extensions? Xvesa does not include grep. So only those running Xvesa or non-graphic would benefit from the extra GNU grep install for speed?

Rich:
Hi nitram
Actually, that does not tell you which  grep  is really being used since  /bin/grep  could be an executable or a link to an
executable. To find out, run:

--- Code: ---ls -l /bin/grep
--- End code ---

nitram:
Thanks Rich.

Actually it is a link to xorg-intel's /bin/grep, so looks like the faster grep is being used?


--- Code: ---tc@box:~$ ls -l /bin/grep
lrwxrwxrwx 1 root root 31 Jun  2 14:26 /bin/grep -> /tmp/tcloop/xorg-intel/bin/grep

--- End code ---

Does /bin always take precedence over /bb ?

Rich:
Hi nitram

--- Quote ---Does /bin always take precedence over /bb ?
--- End quote ---
Precedence is determined by the  $PATH  variable.

nitram:
Thanks again. For those learning like me, /etc/profile provides system wide profile and path info:

--- Code: ---# /etc/profile: system-wide .profile file for the Bourne shells
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bb"

--- End code ---

Not sure where /$HOME/.local/bin fits into this, will figure out with a bit of experimentation.

To wrap up, Jason or any dCore users know if GNU grep is automatically installed with all xorg-* SCEs?
If not, will just provide brief explanation in the wiki, thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version