Find Out When a Unix/Linux User Last Logged In

Keeping track of your users’ activities may seem a little bit intrusive, but it is very necessary for security-conscious system administrators. When users are logged onto the system, you should know, and if a user account is up to anything suspicious, knowing when the user’s logged in might very well save your system. It may […]

How to String Multiple Linux Commands Together

On a Linux dedicated server, the shell provides a powerful arsenal of commands for you to manage your system. Used in isolation, these commands can be very effective. Used in combination, you can truly unlock the power of your system.
There are a few ways to string commands together. One of the most basic tools you […]

How to Simply Display Directory Disk Usage?

On a Unix or Linux server, the “du” command provides a quick and easy method for finding out how much space each directory is using, as well as a summary of total disk usage. For example, if you just typed “du” from the command line, the output might look like this:
624 […]

How to Troubleshoot Using Dmesg

Linux logs can reveal important information about your server. For system boot messages, the dmesg command provides quick and easy access to critical kernel information. When all is going well, you might not spend much time with dmesg, but when something goes wrong, it is an invaluable troubleshooting tool.
If you need to see boot information […]

How to Send Command Output to a File

One of the problems with running Linux commands on a dedicated server or virtual private server (VPS) is that some commands spit out a lot of information. Even something as simple as “ls”, which lists the files in a directory, can go on for pages. In such situations, a terminal program that allows […]