Command line tip - peek into the start and end of files

Sometimes, especially when dealing with log files, you might want to peek at the start and/or end of a file to see just that bit of the file and not the whole thing. Of course, there are a couple of easy commands that allow you to do this.

The commands are head and tail and work with almost any Unix-like operating system.

As the name suggests, head is for ...

Click through to read more...

Use scp to securely transfer files

OpenSSH is a great tool for remotely logging in to other computers in a secure manner and then being able to use them from anywhere around the world. What the ssh command doesn't offer you normally however is a way to securely transfer files between your local machine and the remote machine.

That's where scp comes in. It stands for Secure Copy and piggybacks off the SSH infrastructure ...

Click through to read more...

Command line fundamentals - redirect a command’s output to a file

This is a pretty basic command line tip, but if you're new to all this CLI goodness, you might not be aware of it.

When you run a command normally, the output from that command gets sent to the terminal you're working on, so you can see what happened. Sometimes, though, this isn't what you want to do.

All modern command line shells support something called redirecting ...

Click through to read more...

  1. 1
  2. ...
  3. 43
  4. 44
  5. 45
  6. 46
  7. 47
  8. ...
  9. Go to