Command line tip - add a user from the command line

You're probably reasonably familiar with your Linux distribution's graphical method for creating new users, but if you're curious about how to create a user from the command line, this tip is for you.

It's actually possible (but just a little clunky) to manually create users by editing the /etc/passwd file. I wouldn't recommend it though, unless you really know what you are doing.

Most ...

Click through to read more...

Command line tip - determine a file’s type with file

Unlike some popular operating systems you might know of, Linux is clever enough to actually look inside the contents of a file and not just its extension (if any) to work out what type a file is.

This functionality isn't just hidden away - if you want to quickly peek at a file's type, or you have a binary file that you want to try and identify, you can ...

Click through to read more...

Finding files Part 2 - By Content

Yesterday's post detailed how you can find files by their name, permissions, time, or other descriptors. But you probably also want to be able to find files based on what is inside them. Grep is a tool that picks up where find left off, and can search inside files (though cannot do the same things that find can).

Again, we'll start with the syntax of the command:

grep ...

Click through to read more...

  1. 1
  2. ...
  3. 11
  4. 12
  5. 13
  6. 14
  7. 15
  8. ...
  9. Go to