bash-4.3 and ulimit -T

2015-02-23 Thread William Bader
I am running bash 4.3.33 that I built from source on Fedora 20 
3.18.7-100.fc20.x86_64.
When I run help ulimit, the line for -Tthe maximum number of threads 
does not line up with the other options because the message in ulimit_doc[] 
around line 1443 of ulimit.c has 4 spaces after the -T instead of a tab.  Line 
53 of ulimit.def also has spaces instead of a tab.
Fixing this would also require fixing the string in the various *.po files.
ulimit on Fedora 20 does not implement -T, but could ulimit show the maximum 
number of CPUs, similar to grep allowed /proc/self/status or the taskset 
command?
William
  

Re: how to search for commands

2015-02-23 Thread Dan Douglas
On Mon, Feb 23, 2015 at 10:50 PM,  garegi...@gmail.com wrote:
 How do you search for commands? In powershell you have the get-command 
 cmdlet. Is there anything equivalent in unix?

Depends on the type of command. For shell builtins, bash has `help':

$ help '*ad'
Shell commands matching keyword `*ad'

read: read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [-N
nchars] [-p prompt] [-t timeout] [-u fd] [name ...]
Read a line from the standard input and split it into fields.
...

To search for commands found in PATH (or functions or aliases) use
`type'. See `help type' for how to use it.

Searching for commands by package is OS-specific. e.g. in Gentoo
`equery f -f cmd pkg' will show commands belonging to a package.
Cygwin's equivalent is `cygcheck -l'. Pretty much every distro has
something similar.

-- 
Dan Douglas



how to search for commands

2015-02-23 Thread garegin16
How do you search for commands? In powershell you have the get-command cmdlet. 
Is there anything equivalent in unix?