How to Disable or Completely Delete Linux Server Users

Disabling a user account can be very useful if the account has been compromised, the user has left but may return in the future, or for punitive purposes. To disable a user on a Linux system, you can use the following command string:
# usermod –lock –expiredate 1970-01-01 <username>
Replace <username> with the actual user’s […]

How to Manage Users in Webmin

On a dedicated server, managing users does not have to be a difficult affair. While the command-line tools are not overly complicated, you may at times want to use a graphical interface or run batch user operations. Webmin’s “Users and Groups” module may be exactly what you need.
You can find the Users and Groups module […]

Useful Keyboard Shortcuts for Bash

When you manage a dedicated server, you will almost certainly spend a considerable amount of time working from the command line, probably via SSH. If so, you will encounter Bash or a shell similar to it. While you can accomplish pretty much anything with various commands, you can increase efficiency by learning some of the […]

Server End of Year Tasks 3: Remove Deactivated Accounts

As we move one day closer to the end of the year, it is increasingly important that you take some time to look at your server and find out what needs improving. You might also want to do some general house keeping, especially if you have neglected these clean-up tasks throughout the course of the […]

How to Delete All the Files in a Directory

On Linux and Unix servers, you can use the “rm” command to delete one file, multiple files, or an entire directory. But what do you do if you want to preserve the directory but delete all the files in it? On a dedicated server, such a feature would be particularly useful if, for example, you […]

File and Directory Removal on a Linux Server

Most of us are accustomed to the comforts of a desktop operating system. Deleting files usually involves clicking on their icons and pressing the delete key or dragging them to the trash. Regardless of which OS you use, you probably rarely drop to the command line to do your deleting.
For a Unix or Linux server […]

How to Delete Users from Your Server

Part of the regular housekeeping of a dedicated server is cleaning out remnants of past users.  The last thing you want is for former users (especially former employees) to continue to log onto your server.  This is especially dangerous if you had given them SSH access.
The solution is to delete users as soon as they […]

How to Delete Linux Files Completely with Shred

Deleting files is probably not something you think about on a regular basis, but you inevitably do it regularly without thinking.  Files come and go, but on a dedicated server, it is sometimes important to make sure the files you have deleted are truly gone.
The “rm” command in Linux is the standard command most sysadmins […]

How to Remove Multiple Files from the Command Line

While web-based control panels are good for some tasks, bulk file management is not one of them.  It is quite a bit slower to have to navigate through various directories, especially if you have a good size dedicated server with many domains attached to it.  Using a web-based file manager can be downright painful.  Fortunately, […]