Sunday, April 13, 2014

5:12 AM

Good day!

Hello and welcome to another article on my howto; this time we will learn the basics on how to use the passwd and ps commands effectively on *nix.These commands are to be run from the shell command prompt.

This is the fourth part of my howto in "Learning Linux/UNIX"


passwd

usage          :    passwd [optoins][LOGIN] or just simple passwd for the current user
 

change user password. Password changing seems to be a big thing among the savants. It is also a good idea to change your password every month or at least every four months. You should use a password with at least 10 combination characters. 

Anyway to change the password one would use the `passwd` command as shown screenshot below:

passwd




ps

report a snapshot of the current processes. It is sometimes necessary to see what command processes you are running, this command lets you see that.

usage:

ps [-a all processes except group leaders]
ps [-e all processes]
ps [-f the whole list]
ps [-x list processes that have no controlling terminal or daemons]

Also, it work without the `-` options.

$ ps


ps

The systems reports (PID - process identification number which is a # from 1-30,000 assigned to UNIX processes).
It also reports the TTY, TIME and the COMMAND being executed at the time.

To stop a process enter:
$ kill -9 [PID] (this case its 3045)

That's all for today, hope this gives you basic insight on how to use these commands :-)

0 comments:

Post a Comment