Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 478 Bytes

challenge_20200123.md

File metadata and controls

13 lines (7 loc) · 478 Bytes

Category: Linux

Difficulty: Intermediate

As systems admins and programmers we can forget that other people have had the same issues and it leads to us re-inventing the wheel. So, let's re-invent a wheel.

Write a bash script, using the output from the 'lsof' command, to implement something that provides output like the 'pstree -Ap' command. I strongly suggest you read the man page for lsof.

Bonus points for providing ANSI output, pstree without the -A flag.