Advice for everyday Unix systems administration and some clever ways to approach more challenging problems.
There are many options you can use to find files on Linux, including searching by file name (or partial name), age, owner, group, size, type and inode number.
There's a lot more to printing from the Linux command line than the lp command. Check out some of the many available options.
Converting text between uppercase and lowercase can be very tedious, especially when you want to avoid inadvertent misspellings. Fortunately, Linux provides a handful of commands that can make the job very easy.
The pv command is especially helpful when you are running tasks that take a long time to complete and you want some feedback that displays your progress.
Running processes in the background can be convenient when you want to use your terminal window for something else while you wait for the first task to complete.
Case statements can allow you to simplify the logic of your scripts.
The zip command lets you compress files to preserve them or back them up, and you can require a password to extract the contents of a zip file.
These AND and OR equivalents are often used in scripts to make decisions about what happens next. In this post, we’ll take a look at how they work at a very basic level and some ways they are often used in scripts.
The shred command is a good option for removing files from a Linux system in a way that makes them virtually impossible to recover.
If you manage Linux servers, it’s a good idea to understand how much they're being used and which users are making the heaviest use of them. A few Linux commands offer different ways to see which users are logging into your Linux servers, ....
Directories provide a hierarchical way to organize your files, and you can categorize them to suit your needs.
Aliases provide an easy way to reuse complicated or often-used commands.
Leap years are not quite as regular as we might have believed. A fairly simple Linux script can tell you whether a year will be a leap year or not.
Requiring password changes is a common security practice, and Linux systems admins can use the chage command to view and change password expiration information.
You can use the stat command to view dates and times associated with Linux files, and the date command can do some handy conversions if you’d like to display the current time in the epoch format.
Configuring and managing Linux accounts is fairly easy once you get used to a handful of commands.
Installing and updating the OS, managing user accounts, and looking after security are just a few of the primary responsibilities of a Linux systems administrator.
With the right command, you can do anything from simple math to fairly complex calculations on Linux.
Linux tricks can help you get work done faster, especially when they're easy. Here are some ways to find files, reuse prior commands, stop processes and more.
Sponsored Links