Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of ps -A | grep -c process in Windows?

Tags:

I am looking for an equivalent/alternative of Linux's ps -A | grep -c script.php for ms windows ?

cheers, /Marcin

like image 894
Marcin Avatar asked Apr 14 '12 11:04

Marcin


People also ask

What is the equivalent of ps on Windows?

In computing, tasklist is a command available in Microsoft Windows and in the AROS shell. It is equivalent to the ps command in Unix and Unix-like operating systems and can also be compared with the Windows task manager (taskmgr).

How do I grep a process in Windows?

The findstr command is a Windows grep equivalent in a Windows command-line prompt (CMD). In a Windows PowerShell the alternative for grep is the Select-String command.

What is ps CMD?

CMD is the name of the command that launched the process. TTY (which now stands for terminal type but originally stood for teletype) is the name of the console or terminal (i.e., combination of monitor and keyboard) that the user logged into, which can also be found by using the tty command.

What is ps in operating system?

The ps command, short for Process Status, is a command line utility that is used to display or view information related to the processes running in a Linux system. As we all know, Linux is a multitasking and multiprocessing system. Therefore, multiple processes can run concurrently without affecting each other.


1 Answers

Simple commands:

tasklist | FIND "script.php" 
like image 72
Dmitry Reznik Avatar answered Oct 06 '22 00:10

Dmitry Reznik