Re: Tumblerd? - Re: Really excessive screen behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 05, 2016 at 01:51:48PM -0700, Rick Stevens wrote:
> On 07/05/2016 01:36 PM, Joe Zeff wrote:
> > On 07/05/2016 11:35 AM, Rick Stevens wrote:
> >> Yeah, I use that one a lot, too. "pidof -x" is useful as well and you
> >> don't need the greps.
> > 
> > One of the wonderful things about *nix is the fact that there are so
> > many different ways to get exactly the same results, depending on
> > personal preference.
> 
> Since "pidof" doesn't do the grep, so you need to specify the entire
> process name (e.g. "pidof chron" gets nothing, "pidof chronyd" gets the
> PID of the chronyd process).
> 
> In that sense, your "ps aux | grep | grep -v grep" is a more flexible
> in that you only need to know part of the process name. I use it a lot
> myself--but not to the point of turning it into a script/utility. :)

There is also "pgrep"

$ pgrep chronyd
1542

$ pgrep chron
1542

$ pgrep fire
1535
8708
21777

$ pgrep -l fire
1535 firewalld
8708 firewall-applet
21777 firefox

$ pgrep -a fire
1535 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
8708 /usr/bin/python -Es /usr/bin/firewall-applet
21777 /usr/lib64/firefox/firefox

Jon
-- 
Jon H. LaBadie                  jonfu@xxxxxxxxxx
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux