When managing your Linux server, you may encounter lag or other performance issues that lead you to question what files your server might be accessing at a given time. Or you might just want to run routine diagnostics to make sure your server is only running and manage files that it is supposed to run. […]
On Debian-based systems, the APT package management system stores downloaded packages even after you have installed them and keeps the handy in case you want to reinstall without having to re-download. After a certain amount of time, you might decide you no longer need to keep these packages around, especially if they are taking up […]
When you have a dedicated server, it can sometimes be difficult to find the files you need. Tools like “find” and “grep” are always at your disposal, but as they dig through your mountain of data, they can take a good deal of time. Fortunately, Linux and Unix servers have a tool called “locate” that […]
In the early days of the web, site traffic was pretty straightforward. If a person accessed a page and/or images, the web server would display the static content and use bandwidth proportionate to the size of the files. As the web evolved, however, dynamic content became more prominent and today, dominates the web. Accessing a […]
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 […]
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 […]
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 […]
Linux dedicated servers set permissions for every file, including applications. Fortunately, it is very quick and easy to change the permissions of files in order to give specific users access.
First, it is important to understand how ownership and permissions work in Linux. Every file has an owner, and that owner […]
Linux servers and many other servers with Unix-like operating systems rely on archiving and compression tools like tar and gzip to rotate logs, store backups, and even cache websites. In those cases, dedicated server’s software will automatically make use of those tools. If, however, you ever need to extract data from those archives or make […]
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, […]
On this blog, I previously covered file synchronization with rsync. The benefit of rsync is that it allows for incremental synchronization of files and directories and is very fast and secure over local and remote connections. The drawback of rsync is that it only syncs files one way or the other. […]
For occasional downloads, it is usually sufficient to manually download the files you need to your computer and then upload them to your server via FTP, SFTP, or SCP. However, when you need to move large files or multiple files, these methods become cumbersome.
Using a Linux command line tool, such as wget, you can […]
Monitoring the security and stability of a Linux server can become a full time job, so a smart system administrator will welcome any task that can simplify the process. We have covered a few different methods of searching that can take the pain out of trying to find things. All of these commands: […]
Running Linux on a server is a great way to find out about the inner workings of a computer. Linux provides numerous tools to help you learn important system information. In a previous post, I highlighted some of the Linux tools you can use to find out critical information about your server’s […]
File permission settings may very well be the most important thing you ever learn in Linux server management. When file permissions on a dedicated server are correct, no one notices, and everything runs smoothly. When even one file permission is wrong, it can result in an error or, even worse, a security hole.
While many search tools like “locate” search filenames, grep searching everything in the contents of files. This makes grep one of the most powerful tools for finding information on a Linux or Unix server. Grep (global regular expression print) can be used for both simple and complex searches. You can also use […]
For the next couple of days, we will focus on searching. There are a few ways to search for files on a Linux server. Some are more in-depth than others. The tool called locate relies on a database backend for fast searching. The database must index the filesystem, and then the […]
A common occurrence on a Linux dedicated server is the moving, deleting, copying, and renaming of files. The end result is that you often will end up with duplicates of files or even entire directories. With any server, disk space is important, and unnecessary files take up valuable space in a business where […]