Command line tips - listing with ps

Listing processes is quite a common task you might have to perform if you're messing around with your command line interface.

There are actually two great command line tools for listing processes, but in this tip post, I'm going to focus on ps.

If you run the command just on its own, you won't get all that many processes show up:

$ ps
  PID TTY          TIME CMD

3475 ...

Click through to read more...

Command line tricks - sending yourself email

It might sound like a rather strange thing to do, but sending yourself email from the command line can prove extremely handy in a lot of circumstances. For example, I have a script that runs every week on my server that emails me and reminds me to copy the latest backups off that actual machine (in case of hard drive failure).

Now there are certain prerequsites for this process, namely ...

Click through to read more...

Command line tips - colour your ls output

Now some distributions do this for you already, but some don't. What am I talking about? Colouring the output of our great command line friend, ls.

Coloured output from ls can serve many purposes. It can help you to identify directories from files, and it highlights other things, like whether a file is executable or not, whether a symlink is broken or not and many other things.

If you ...

Click through to read more...

  1. 1
  2. ...
  3. 21
  4. 22
  5. 23
  6. 24
  7. 25
  8. ...
  9. Go to