Thursday, August 30, 2012

Linux command 'Less' short list of commands

Linux command 'Less' short commands:
source, source2.

h - show help

f - scroll page forward
b - scroll page backward
g or "<" - go to begin of the file
G or ">" - go to end of the file

/PATERN - search
n - search for next appearance
N - search for previous appearance


tail mode:

Press Shift-F. This will take you to the end of the file, and continuously display new contents. In other words, it behaves just like tail -f.
To start less in the tail mode, execute:
$ less +F /var/log/messages
To scroll backwards, you must first exit the follow mode by pressing Control-c.

reload latest lines from file, one time 'tail mode':
Shift+G - got to the end of file
Shift + ">" - load till the end of file, press few times if you expect changes to file.

Friday, August 3, 2012

Quick Notes application for Ubuntu 12.04 with Unity support


I used gnote for a while - it is good but it lacks a Unity support in Ubuntu 12.04 that is inconvenience.
Googling over internet  .... point to interesting application ZIM (http://zim-wiki.org/)

Just install "sudo apt-get install zim",
launch it and Menu Edit -> Preferences ... tab "Plugin" , enable  plugin "Tray Icon".

video tutorial

Beware of bug that make it slow to open: https://bugs.launchpad.net/zim/+bug/995919
You need to install latest version from ppa:
sudo add-apt-repository ppa:jaap.karssenberg/zim
sudo apt-get update
sudo apt-get install zim

To launch Zim notes on Ubuntu start-up, in tray, create shell script zim-in-tray.
echo -e '#!/usr/bin/bash\nzim --plugin trayicon' > zim-in-tray
chmod ugo+rx zim-in-tray

Open "Startup Applications" from Dash, create new launch configuration and point to zim-in-tray.