12/30/2023 0 Comments Rhel htopWhile the tree command is mainly used to list files recursively, you can look at /proc to get the process tree.īut it requires manual installation as it does not come pre-installed and if you're on an Ubuntu-based distro, the following command should do it: sudo apt install tree Similarly, you can use -p option to get process IDs: pstree -p Use the tree command to show the process tree Now, you can simply use the pstree command and it should give you the following output: pstree Personally, this is what I prefer to have as even without any options, it works fine.īut your distro may not have it pre-installed and if you're on Ubuntu-based distros, the given command should do it: sudo apt install psmisc Use the pstree command to show the process tree You can use the -tree option to show the process tree with the ps command: ps -ef -forest The ps command in Linux is used to find ongoing processes in Linux and it also avails you to print the exact info in a tree manner. Use the ps command to show the process tree ![]() ![]() Well, I went through the same so it is always a better idea to check the parent processes, and listing the ongoing processes in tree manner is a good idea. So you used the killall command and it killed the parent process making your hours of work at waste?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |