Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: ps

26 Dec

pstree Command

Shows a tree system processes


pstree
admin Posted in Command Line, Linux command, filler, Linux, process, ps, pstree, system, tree Leave a comment
18 Sep

PS Command Forest Mode

Displays linux tasks in a hierarchical mode


ps -e -o pid,args --forest
admin Posted in Command Line, Linux command, filler, forest, Linux, process, ps 1 Comment
14 Dec

Pid Command

Create a command that will return the pid of the given command string..


#!/bin/sh
ps aux|grep 1|head -n1|awk '{print2}'
admin Posted in Command Line, Linux command, grep, head, Linux, pid, process, ps, sed Leave a comment
14 Sep

Better Way to find Process ID of an Application in Linux

A better way to get the process id of an application. I recommend giving an alias for this command…


ps aux|grep firefox|awk '{print 2 "\t\t"12}'|head -n1

Replace firefox with the name of the application you are searching for.

admin Posted in Command Line, Linux awk, cli, command, grep, id, Linux, process, ps Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑