Login | Sign up

Posts for May 2010

May 30

Find files with setuid or setgid

You should check to make sure there are no unneeded setuid and setgid files on your computer. They might be a potential security risk.

May 29

How long did that command take

Bash has a built in command to tell you how long a command took to execute. There is also a gnu version for those not running Bash.

May 28

Save the output of commands

There are many reasons you may want to save the output of various commands. You may be establishing a baseline, documenting, keeping records, or just manipulating existing files. Learn how to do it and learn about saving errors too.

May 27

The power of grep

The grep command allows you to search files and filter command output based on your search criteria. This command is such a time saver, it is possibly my favorite Linux-only command.

May 26

Watching your logs in real time

It can be very useful to see logged messages as they are logged. You can get a better feeling for what event triggered the message. You can easily view appended log messages using a basic Linux command, tail.

May 25

Intro to piping

Piping is one of the many great features of Linux that makes its command line so superior. You can send the output of one command to the input of another.

May 24

How many lines is this?

Using the wc command to count lines, words, characters and bytes in files and command output.

May 23

Intro to setuid and setgid

setuid and setgid are useful file permissions. Learn what they are, how to add and remove them and check if they were set successfully.

May 22

Enable syntax highlighting in vi

Vi supports syntax highlighting for many types of files including programming language and configuration files. You can turn it on and off whenever you need it.

May 21

Require wheel membership to su

Learn how to limit access to su and make it more difficult to guess your root password.

May 20

Backup & Restore your Master Boot Record (MBR)

Learn how to backup and restore your hard drives' Master Boot Record (MBR) using Linux.

May 19

Creating tinydns (djbdns) records

Creating DNS records for tinydns is pretty easy using the included scripts. Detailed explanation and examples on using each one. One final example putting everything together.

May 18

Install tinydns (djbdns) and its requirements

Tinydns (djbdns) is a DNS server designed for security. It has a smaller memory footprint than BIND. Learn how to install it and its prerequisites from source.

May 17

Vi show/hide line numbers

Vi can display line numbers to the left of each line. Learn how to show and hide those numbers.

May 17

Vim basic modes

Vim has 6 basic modes each serving a different purpose with different commands available. Learn the basics and differences of each mode.