What if you want to get information about any specific process? For that, you can use the ps -ef command and pipe it with the gre command alongside its process name, as we did here to find all the information of the process named firefox: $ ps -ef | grep firefoxĪlthough the output is quite messy, you can find the relevant information easily, such as username process id, parent process id, and much more, as highlighted in the above image. You have seen in the above output that all the running processes are listed. TIME: The CPU time used by the process.Įxample 2: Display Information About Specific Process.TTY: The controlling terminal associated with the process.PPID: The parent process ID (PPID) of the running process.PID: The process ID (PID) of the running process.UID: The user ID (UID) who started the process.The output of the ps -ef command has several columns that are explained as follows: The primary usage of the ps -ef command without examples is to get the list of all the running processes in the system. Until now, you have learned the basic syntax and the working of the ps -ef command in Linux let’s dig into some examples for a practical demonstration of the command. -f: An option to display the output in a full format, which includes additional details such as process owner, parent process ID ( PPID), CPU usage, and memory usage.-e: An option to include all running processes in the output, including those not associated with the current terminal session.ps: The command to display information about running processes on the system.The components of the ps -ef command are as follows: Well, let’s write it and elaborate on the entities in it. The basic syntax of the ps -ef command is the same as it is being written, i.e., ps – ef. However, all the practical demonstration shown in the post is carried out on Ubuntu 22.04. Considering the importance of the ps -ef command, this post will list a detailed explanation of the command with the help of suitable examples.Īlthough, the ps -ef command is applicable on all the Linux distributions. The ps -ef command has numerous benefits, such as process identification, system monitoring, process management, security auditing, etc. The ps command stands for “process status,” and the -ef option tells the command to display information about all processes in a full format. If you want to stop the command, press Ctrl + C.In Linux, ps -ef is a command that displays information about running processes on the system. ping : You can replace with any hostname or IP address.Type the following commands into your Terminal and press Return after each: Mac commands: If you have a Mac, you can use the following safe commands to fill your screen with what looks like hacking.This command will keep running until you stop it.Google is used as an example here, but you can use any website or IP address. ping -t : The ping command checks to see if a device is reachable on a network, but the common person doesn't know that).If you get tired of seeing the text scroll by, press Ctrl + C to stop it. For a longer version of this command, try tree \.Type each command in relatively quick succession to make your simulated hacking seem more complex: Windows commands: Type any of the following commands and hit ↵ Enter right after.There are many commands you can use that look impressive but won't damage your computer and are not illegal. Use the Command Prompt or Terminal to imitate hacking.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |