Sunday, February 10, 2013

What is the linux command to obtain the PID number of a specific program running?

Q. I'm tired to use the "top" and search around for the PID of a program that I know is running on a remote terminal, left open by someone else, and that I want to kill. I wonder if there is a linux command that would return the PID of only that program.

A. ps aux | grep processname
or
pidof processname

How to enter password by linux command?
Q. As the title.I would like to find out How to enter password by linux command?

eg: when you write a script to sudo root. then you will be asked to enter password.
how can i do it by linux script? Is there a command can do the job?
Thanks in advance.

A. Don't. just run sudo script instead of trying to put sudo into the script.

What does it mean for windows users if basic knowledge of linux commands are required?
Q. For example FTP and Telnet both run Linux. So that would indicate that some basic konwledge of Linux commands is necessary. However, I am a Windows user...

A. FTP can run on Linux, but it doesn't always run on Linux.

You can run an FTP server on Windows and an FTP client on Windows. Same for Mac.

It is just a File Transfer Protocol. The protocol is cross-platform, not Linux-specific.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

No comments:

Post a Comment