Tag: command line

Use forefiles.exe and 7zip to archive files older than X number of days

On a Microsoft Windows server, there is a folder that contains 1000s of logfiles. Each logfile varies by name and size. I wanted a script that would compress all logfiles into a single zip file that were older than seven days. After the compression is completed and the zip file is created, all logs older than seven days will be…

Read More »

SendEmail on Linux – Send SMTP Mail from the Command Line

SendEmail is a lightweight, command line SMTP email client. It was designed to be used in bash scripts, batch files, Perl programs and web sites, but is quite adaptable. SendEmail is written in Perl and requires no modules. SendEmail is licensed under the GNU GPL, either version 2 of the License or (at your option) any later version. Although it…

Read More »

Linux Command Tips – Nautilus

This is part of my series, useful Linux commands and tips. Nautilus is the official file manager for the GNOME desktop. The name is a play on words, evoking the shell of a nautilus to represent an operating system shell. Like all applications that run under Linux, Nautilus has it’s own command line options. To view the command-line options A…

Read More »

Linux command tips – ifconfig

This is part of my series, useful Linux commands and tips. The ifconfig (short for interface configurator), a system administration utility to configure, control, and query TCP/IP network interface parameters, is located in the system’s /sbin directory. /sbin is not usually included in the user’s PATH environment variable. For this reason, when you attempt to execute ifconfig, bash can not…

Read More »