Linux

Linux Mint 18.2

Clement Lefebvre has announced the availability of a new release of Linux Mint. The new version, Linux Mint 18.2, is the latest update in the 18.x series and is built upon a base of Ubuntu…


Fedora’s Atomic Host gets new life cycle

The Fedora distribution maintains several editions and one of the lesser talked about editions is Atomic Host. The Atomic Host edition is a lightweight platform for running containers. Due to Atomic Host’s minimal and fast-moving…


Zero those log files

Some programs write to multiple log files in a directory and need to be zeroed out sometimes to save diskspace. The following ksh shell script will zero out all files with the “.log” extension in…


Bash Hotkeys

Bash provides many hot keys to ease use. ctrl-l — clear screen ctrl-r — does a search in the previously given commands so that you don’t have to repeat long command. ctrl-u — clears the typing before…


Efficient commands

I cringe anytime I see someone code inefficiently. Here are three of the most common mistakes, followed by a better way to do the same thing. Bad: cat somefile | grep something Better: grep something…


Maintaining log and tmp file

If you need to maintain an application that generate a lot of logfiles or tmp files with running numbers as part of the filename and uses a common extension. These two command together will help to maintain…


Tracking of logins and logouts on Linux/Unix distros

In the .login file add the commands: —————————— echo login time `date` >> .daylogs/masterlog grep -i “sun” .daylogs/masterlog > .daylogs/sunday.log grep -i “mon” .daylogs/masterlog > .daylogs/monday.log grep -i “tue” .daylogs/masterlog > .daylogs/tuesday.log grep -i “wen”…


How do I scan my Linux system for rootkits, worms, trojans, etc.?

Either with ckrootkit or with rkhunter. chkrootkit: Either install the package that comes with your distribution (on Debian you would run apt-get install chkrootkit ), or download the sources from www.chkrootkit.org and install manually: wget –passive-ftp ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz tar xvfz chkrootkit.tar.gz…


Basic Linux Commands

Here are the list of basic linux commands that you can practice. alias    Create an alias awk      Find and Replace text, database sort/validate/index break    Exit from a loop builtin  Run a shell builtin cal      Display a calendar…