xev – Check the X keyboard events

xev man page

xev – print contents of X events

So other day I was checking why my play key was not working and wanted to check if it maps to one of the X default mappings for the keyboard and was stuck on how to check this. And finally found that I can try this:

 

xev -event keyboard

Pretty neat 🙂

ranger – try terminal file manager

ranger is a terminal file manager, just install and run and have some fun.

Tip: You might want to try it on uxrvt terminal and in Photos folder once.

 

Name : ranger
Version : 1.7.2
Release : 8.fc28
Arch : noarch
Size : 1.2 M
Source : ranger-1.7.2-8.fc28.src.rpm
Repo : @System
From repo : fedora
Summary : A flexible console file manager
URL : http://savannah.nongnu.org/projects/ranger/
License : GPLv3+
Description : Ranger is a free console file manager that gives you greater flexibility and a
: good overview of your files without having to leave your *nix console. It
: visualizes the directory tree in two dimensions: the directory hierarchy on
: one, lists of files on the other, with a preview to the right so you know where
: you’ll be going.

Display IP address in console login screen

Here is one liner that will add the current IP address in the console login screen (if you are not running X as is case for servers):

 (ip -o -4 a| awk '$2 !="lo" {print "\nIP Address ::"$4}' |tr '\n' ',';echo)>>/etc/issue

Just execute the above command as root. It will add the required code in “/etc/issue” to display the IP address. BTW, you can also use “\4” or “\6” instead of that command to get the IP but that will not work with some old versions of Linux.