Command line tips & tricks - concatenation with cat

If you've done any sort of command line stuff on a Unix-like OS, you've probably come across cat. It stands for 'concatenate', but most often we use it to simply spit out the contents of a file, like this:

$ cat myfile

So hang on - why is it called concatenate if we're only showing the contents of one file? Well, if you give cat one file, it just ...

Click through to read more...

Use key-based authentication with SSH

Back in November, I took a quick look at how to set up secure remote login with SSH.

It's really simple to login with your username/password combination on the remote machine, but sometimes it can be a better idea to use key-based authentication.

Key-based authentication is where instead of authenticating that you are you with the remote machine credentials, you use a cryptographic key pair. I won't ...

Click through to read more...

Scheduling tasks with cron

When you want to run a particular task repeatedly, or run it at a scheduled time, Linux and other Unix-like operating systems offer you an easy way to do this and plenty more. It's called cron and it's a multi-purpose task scheduler on steroids. It's installed and enabled on virtually every Unix-like OS out there by default.

In this tutorial, I'm going to walk you through ...

Click through to read more...

  1. 1
  2. ...
  3. 23
  4. 24
  5. 25
  6. 26
  7. Go to