Find files with setuid or setgid
setuid and setgid permissions are very useful, however, they can be used to attack a system. Only files that absolutely need these ...
How long did that command take
If you want to know how long a command took to execute, you can use the Bash built-in command time. Simply prepend your ...
Save the output of commands
You can save the output of most Linux commands to files using output redirection. All you need to do it is add a greater ...
The power of grep
Intro to grep
The grep command allows you to search the output of a command or files for a given string or ...
Watching your logs in real time
Sometimes when setting up new services or when troubleshooting a problem, you want to watch your log files as they grow. You want to ...
Intro to piping
In the Linux terminal, you can send output from one command to another, instead of displaying it to the screen. This allows programs to ...
How many lines is this?
If you want to know how many lines a certain command outputs or how many lines are in a file, you can use the ...
Intro to setuid and setgid
What are setuid and setgid
setuid and setgid are linux file permissions. When a file has one or both of these ...
Enable syntax highlighting in vi
Turn on syntax highlighting in vi
- Make sure you are in Normal mode. If you are unsure, press Esc.
- Type ...
Require wheel membership to su
su allows you to switch to another user (typically root). Unfortunately, your users can attempt to guess the root password this way. You ...
Backup & Restore your Master Boot Record (MBR)
All hard drives have a Master Boot Record (MBR). This record is used when booting your computer. It also holds information about the hard ...
Creating tinydns (djbdns) records
Tinydns records are created using a text configuration file. It also comes with some helper scripts to make it easier to create some basic ...
Install tinydns (djbdns) and its requirements
In order to install almost any program from source, you will first need to install gcc and make. How you install these will depend ...
Vi show/hide line numbers
Show vi line numbers
- Make sure you are in Normal mode. If you are unsure, press Esc.
- Type the following ...
Vim basic modes
Normal/Command
This is the default mode when you start vim. In this mode you can move the cursor around using the arrow ...


