Change Process name in Linux while a process is running

Hi All,

I want to know if there's a way to change the name of the process from ps -ef output , while a process is still running.

CMD field in ps -ef output is what i need to customize as per my project requirement.

Thanks,
Preet

@Preeti_Mallhi, Hello Preeti, Welcome to forums. This is not clear. On forums we always encourage users to do add 3 things.

1- Sample of their input in CODE TAGS.
2- Sample of expected output in CODE TAGS.
3- Efforts of users in form of code in their question in CODE TAGS.

So kindly do add these 3 points and let us know then,cheers and happy learning and posting on forums :b:

Thanks,
R. Singh

2 Likes

There're plenty of similar questions/thread on the Internet - including this one on SO.
Not sure if you can achieve this for the ALREADY running process though.
Also some of the answers depend on your OS and/or the shell type you're using and not mentioning it here.
Just curious.. why do you need to do this?

3 Likes

ok