Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: process

08 Jun

Find the Process that Listen to a Port

Find the process that are listening to a said port…


lsof -i :80
admin Posted in Command Line, Linux command, Linux, list, listen, lsof, port, process Leave a comment
07 May

Restrict Top to Current User’s Commands

Show only your processes in the top list using this command…


top -u `whoami`
OR
top -u binnyva(your username)
admin Posted in Command Line, Linux command, Linux, process, restrict, show, top, user 1 Comment
19 Jan

Using strace

Display system calls made and received by a process


strace -c ls >/dev/null 
admin Posted in Command Line, Linux call, command, filler, Linux, process, strace, system, trace Leave a comment
12 Jan

List of Open Files

Display a list of files opened by processes


lsof -p NUMBER
admin Posted in Command Line, Linux command, file, filler, fuser, Linux, lsof, open, process 1 Comment
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
↑