Advertisement
Guest User

ask1

a guest
Nov 21st, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/bin/bash
  2. #ask1
  3. #prints the required columns from the system processes and sorts the output using #the cmd column
  4. ps a -o pid,cmd | sort -k 2
  5.  
  6. #execute with ./ask1.sh in the folder cd /home/christina/Documents/scripts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement